seven_zip_ruby
seven_zip_ruby copied to clipboard
Test gem against MRI 2.4.x
Got Segmentation fault :x: I guess I will resubmit when 2.4.1 is out
Still got Segment fault But I dunno what's the cause: the gem's C extension or Ruby
Running locally, got error as well, but not sure if it's the same error on Travis build:
ruby /users/pikachuexe/.rvm/gems/ruby-2.4.1/bin/rspec spec/seven_zip_ruby_spec.rb(14054,0x7000005c0000) malloc: *** error for object 0x7fa2f63b3400: incorrect checksum for freed object - object was probably modified after being freed.
*** set a breakpoint in malloc_error_break to debug
[1] 14054 abort bundle exec rspec spec/seven_zip_ruby_spec.rb
Thank you very much for your contribution. I'll also investigate this issue further.
Regards, Murase
Got different error in 2.4.2
..................................../users/pikachuexe/projects/ruby/gems/seven_zip_ruby/lib/seven_zip_ruby/seven_zip_reader.rb:242: [BUG] Segmentation fault at 0x0000000000000048
ruby 2.4.2p198 (2017-09-14 revision 59899) [x86_64-darwin16]
-- Crash Report log information --------------------------------------------
See Crash Report log file under the one of following:
* ~/Library/Logs/DiagnosticReports
* /Library/Logs/DiagnosticReports
for more details.
Don't forget to include the above Crash Report log file in bug reports.
-- Control frame information -----------------------------------------------
c:0009 p:---- s:0042 e:000041 CFUNC :new
c:0008 p:---- s:0039 e:000038 CFUNC :to_s
c:0007 p:---- s:0036 e:000035 CFUNC :open_impl
c:0006 p:0071 s:0030 e:000029 METHOD /users/pikachuexe/projects/ruby/gems/seven_zip_ruby/lib/seven_zip_ruby/seven_zip_reader.rb:242
c:0005 p:0025 s:0024 e:000023 METHOD /users/pikachuexe/projects/ruby/gems/seven_zip_ruby/lib/seven_zip_ruby/seven_zip_reader.rb:103
c:0004 p:0028 s:0016 e:000015 BLOCK /users/pikachuexe/projects/ruby/gems/seven_zip_ruby/spec/seven_zip_ruby_spec.rb:297 [FINISH]
c:0003 p:---- s:0012 e:000011 CFUNC :open
c:0002 p:0026 s:0006 e:000005 BLOCK /users/pikachuexe/projects/ruby/gems/seven_zip_ruby/spec/seven_zip_ruby_spec.rb:287 [FINISH]
c:0001 p:---- s:0003 e:000002 (none) [FINISH]
-- Ruby level backtrace information ----------------------------------------
/users/pikachuexe/projects/ruby/gems/seven_zip_ruby/spec/seven_zip_ruby_spec.rb:287:in `block (5 levels) in <top (required)>'
/users/pikachuexe/projects/ruby/gems/seven_zip_ruby/spec/seven_zip_ruby_spec.rb:287:in `open'
/users/pikachuexe/projects/ruby/gems/seven_zip_ruby/spec/seven_zip_ruby_spec.rb:297:in `block (6 levels) in <top (required)>'
/users/pikachuexe/projects/ruby/gems/seven_zip_ruby/lib/seven_zip_ruby/seven_zip_reader.rb:103:in `open'
/users/pikachuexe/projects/ruby/gems/seven_zip_ruby/lib/seven_zip_ruby/seven_zip_reader.rb:242:in `open'
/users/pikachuexe/projects/ruby/gems/seven_zip_ruby/lib/seven_zip_ruby/seven_zip_reader.rb:242:in `open_impl'
/users/pikachuexe/projects/ruby/gems/seven_zip_ruby/lib/seven_zip_ruby/seven_zip_reader.rb:242:in `to_s'
/users/pikachuexe/projects/ruby/gems/seven_zip_ruby/lib/seven_zip_ruby/seven_zip_reader.rb:242:in `new'
-- Machine register context ------------------------------------------------
rax: 0xccccccccccccd1f8 rbx: 0x00007fec362019d8 rcx: 0x00000000000000a5
rdx: 0x0000000000000002 rdi: 0x00007fec33406840 rsi: 0x0000000000000000
rbp: 0x00007fec361f79f0 rsp: 0x00007fec361f79e0 r8: 0x0000000000000067
r9: 0x0000000000000000 r10: 0x0000000000000000 r11: 0x00007fec361f7d10
r12: 0x00000000000002ad r13: 0x0000000000000997 r14: 0x00007fec33406840
r15: 0x00007fec33406840 rip: 0x000000010e536906 rfl: 0x0000000000010203
-- C level backtrace information -------------------------------------------
I tried running with MRI 2.5.0.rc1 and the test passed! Maybe it's MRI related issue?