Bug #5973
closedBus Error in simple project requiring YARD
Description
Hi, I've created a simple sample project that reliably triggers a bus error in Ruby 1.9.2p290 on Mac OS X. It seems to be triggered simply by requiring the YARD gem.
I've posted the sample project to reproduce the error here:
https://github.com/ggilder/ruby_segfault_test
And I've attached the error message generated, and the CrashReporter log.
Thanks,
-Gabriel
Files
Updated by ggilder (Gabriel Gilder) almost 13 years ago
- File ruby-1.9.2-p290.log ruby-1.9.2-p290.log added
Error message attached
Updated by naruse (Yui NARUSE) almost 13 years ago
How did you install the ruby-1.9.2?
You built it with clang, didn't it?
Updated by naruse (Yui NARUSE) almost 13 years ago
- Status changed from Open to Feedback
Could you try build ruby-1.9.2 with gcc-4.2, or build ruby-1.9.3-head (p26 or later),
and run the test with it?
Updated by ggilder (Gabriel Gilder) almost 13 years ago
Sorry for the delay, I did not receive any email notification of an update on this thread.
I've just tried with ruby 1.9.3p0 and it does work fine. However, I did see the same issue with 1.9.3 in a larger project... sorry, I know that's not really enough to go on.
I believe you are probably correct that my ruby versions are built with clang — I am building them with RVM on Mac OS X Lion, so I think clang/LLVM is the default.
Are there known issues building ruby with LLVM/clang?
Updated by naruse (Yui NARUSE) almost 13 years ago
Gabriel Gilder wrote:
Sorry for the delay, I did not receive any email notification of an update on this thread.
I've just tried with ruby 1.9.3p0 and it does work fine. However, I did see the same issue with 1.9.3 in a larger project... sorry, I know that's not really enough to go on.
I believe you are probably correct that my ruby versions are built with clang — I am building them with RVM on Mac OS X Lion, so I think clang/LLVM is the default.
Are there known issues building ruby with LLVM/clang?
As I wrote in [ruby-core:42390], ruby 1.9.3-p26 fixes some bugs around LLVM/clang's optimization.
So your issue should be fixed until it is derived from known LLVM/clang bugs.
Please try 1.9.3-p125.
Updated by ggilder (Gabriel Gilder) almost 13 years ago
Thanks, I tried with 1.9.3-p125 and the problem does seem to be resolved.
Updated by naruse (Yui NARUSE) over 12 years ago
- Status changed from Feedback to Closed