https://redmine.ruby-lang.org/https://redmine.ruby-lang.org/favicon.ico?17113305112010-01-25T15:04:39ZRuby Issue Tracking SystemRuby master - Bug #2641: Seg fault running miniruby during ruby build on Haikuhttps://redmine.ruby-lang.org/issues/2641?journal_id=78262010-01-25T15:04:39Zkallisti5 (Alexander von Gluck)kallisti5@unixzen.com
<ul></ul><p>=begin<br>
and just to make sure it's not Haiku's fault...</p>
<p><a href="http://dev.haiku-os.org/ticket/5321" class="external">http://dev.haiku-os.org/ticket/5321</a><br>
=end</p> Ruby master - Bug #2641: Seg fault running miniruby during ruby build on Haikuhttps://redmine.ruby-lang.org/issues/2641?journal_id=79012010-01-27T05:26:01Zkallisti5 (Alexander von Gluck)kallisti5@unixzen.com
<ul></ul><p>=begin<br>
a quick note.. still not sure if it is a Haiku or Ruby issue. Here is a gdb backtrace of the seg fault...</p>
<p>GNU gdb 6.3<br>
Copyright 2004 Free Software Foundation, Inc.<br>
GDB is free software, covered by the GNU General Public License, and you are<br>
welcome to change it and/or distribute copies of it under certain conditions.<br>
Type "show copying" to see the conditions.<br>
There is absolutely no warranty for GDB. Type "show warranty" for details.<br>
This GDB was configured as "i586-pc-haiku"...<br>
[tcsetpgrp failed in terminal_inferior: Invalid Argument]<br>
Thread 8823 caused an exception: Segment violation<br>
Reading symbols from /boot/system/runtime_loader...done.<br>
Loaded symbols for /boot/system/runtime_loader<br>
Reading symbols from /boot/system/lib/gcc4/libroot.so...done.<br>
Loaded symbols for /boot/system/lib/gcc4/libroot.so<br>
[tcsetpgrp failed in terminal_inferior: Invalid Argument]<br>
[Switching to team ./miniruby -I./lib -I.ext/common -I./- -r./ext/purelib.rb ./too (8822) thread pthread func (8823)]<br>
0x002471ee in report_bug (file=0xffffffff <Address 0xffffffff out of bounds>,<br>
line=-1, fmt=0x365d05 "%s: %s (%s)", args=0x70004f38 "S\2068")<br>
at error.c:216<br>
216 {<br>
(gdb) bt<br>
#0 0x002471ee in report_bug (<br>
file=0xffffffff <Address 0xffffffff out of bounds>, line=-1,<br>
fmt=0x365d05 "%s: %s (%s)", args=0x70004f38 "S\2068") at error.c:216<br>
#1 0x00247392 in rb_bug (fmt=0x365d05 "%s: %s (%s)") at error.c:245<br>
#2 0x0024797b in rb_bug_errno (mesg=0x388653 "thread_timer/timedwait",<br>
errno_arg=3704403) at error.c:259<br>
#3 0x0035ed6f in thread_timer (dummy=0x0) at thread_pthread.c:769<br>
#4 0x004020fb in pthread_thread_entry () from /boot/system/lib/gcc4/libroot.so<br>
#5 0x70004fec in ?? ()<br>
=end</p> Ruby master - Bug #2641: Seg fault running miniruby during ruby build on Haikuhttps://redmine.ruby-lang.org/issues/2641?journal_id=79052010-01-27T07:20:47Zrogerdpack (Roger Pack)rogerpack2005@gmail.com
<ul></ul><p>=begin<br>
are you really using 1.8.4? What about trunk?</p>
<p>-r<br>
=end</p> Ruby master - Bug #2641: Seg fault running miniruby during ruby build on Haikuhttps://redmine.ruby-lang.org/issues/2641?journal_id=79082010-01-27T08:35:13Zkallisti5 (Alexander von Gluck)kallisti5@unixzen.com
<ul></ul><p>=begin<br>
trying to use an older binary version of 1.8 for BeOS to compile 1.9 on Haiku.</p>
<p>(compiling ruby requires ruby which is kind of silly but whatever)</p>
<p>It seems like miniruby is locking up accessing BUFSIZ...</p>
<p>adding the following to the top of the rb_bug function in error.c causes to lockup to happen on the second printf instead of when report_bug references it.</p>
<p>printf("rb_bug!!\n\n");<br>
printf("buffer size: %i",BUFSIZE);</p>
<p>Tested the same code outsize of error.c in a simple app on Haiku and it works as expected with a buffer size of 8192.<br>
=end</p> Ruby master - Bug #2641: Seg fault running miniruby during ruby build on Haikuhttps://redmine.ruby-lang.org/issues/2641?journal_id=79242010-01-27T14:33:09Znaruse (Yui NARUSE)naruse@airemix.jp
<ul></ul><p>=begin<br>
The gdb backtrace says, Haiku's pthread_cond_timedwait returns 3704403, but the value is not ETIMEDOUT nor EINTR.</p>
<p>-- Ruby accepts only 0, EINTR, ETIMEDOUT<br>
<a href="http://redmine.ruby-lang.org/repositories/entry/ruby-19/thread_pthread.c" class="external">http://redmine.ruby-lang.org/repositories/entry/ruby-19/thread_pthread.c</a></p>
<p>-- Haiku returns various values<br>
<a href="http://dev.haiku-os.org/browser/haiku/trunk/src/system/libroot/posix/pthread/pthread_cond.c" class="external">http://dev.haiku-os.org/browser/haiku/trunk/src/system/libroot/posix/pthread/pthread_cond.c</a></p>
<p>So this is Ruby's issue while Haiku is on POSIX.<br>
=end</p> Ruby master - Bug #2641: Seg fault running miniruby during ruby build on Haikuhttps://redmine.ruby-lang.org/issues/2641?journal_id=80582010-01-31T08:02:25Zkallisti5 (Alexander von Gluck)kallisti5@unixzen.com
<ul><li><strong>File</strong> <a href="/attachments/834">patch.diff</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/834/patch.diff">patch.diff</a> added</li></ul><p>=begin<br>
Still working on the SegFault issues, there was some previous work for Ruby on Haiku done below by augiedoggie here: <a href="http://ports.haiku-files.org/wiki/dev-lang/ruby/1.9.1/1" class="external">http://ports.haiku-files.org/wiki/dev-lang/ruby/1.9.1/1</a></p>
<p>I applied his patches (that weren't included in my previous patches) to a more recent source tree. They are attached but unfortunately don't help this crash issue in mainline on Haiku.<br>
=end</p> Ruby master - Bug #2641: Seg fault running miniruby during ruby build on Haikuhttps://redmine.ruby-lang.org/issues/2641?journal_id=81482010-02-04T18:05:49Znaruse (Yui NARUSE)naruse@airemix.jp
<ul></ul><p>=begin<br>
The patch seems for the signal problem which was mentioned before.<br>
This seems different problem...</p>
<p>Anyway can you find the commit which breaks compile on Haiku?<br>
You could compile it ten days ago.<br>
=end</p> Ruby master - Bug #2641: Seg fault running miniruby during ruby build on Haikuhttps://redmine.ruby-lang.org/issues/2641?journal_id=110822010-05-18T20:59:38Zmame (Yusuke Endoh)mame@ruby-lang.org
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Feedback</i></li><li><strong>Priority</strong> changed from <i>Normal</i> to <i>3</i></li><li><strong>Target version</strong> set to <i>2.0.0</i></li></ul><p>=begin<br>
I set this ticket to Low priority because there is no maintainer<br>
for Haiku. Contribution is welcome.</p>
<p>--<br>
Yusuke Endoh <a href="mailto:mame@tsg.ne.jp" class="email">mame@tsg.ne.jp</a><br>
=end</p> Ruby master - Bug #2641: Seg fault running miniruby during ruby build on Haikuhttps://redmine.ruby-lang.org/issues/2641?journal_id=148802010-12-26T15:04:37Znaruse (Yui NARUSE)naruse@airemix.jp
<ul></ul><p>=begin<br>
What's going on?<br>
=end</p> Ruby master - Bug #2641: Seg fault running miniruby during ruby build on Haikuhttps://redmine.ruby-lang.org/issues/2641?journal_id=182792011-06-26T14:42:57Znaruse (Yui NARUSE)naruse@airemix.jp
<ul><li><strong>Status</strong> changed from <i>Feedback</i> to <i>Rejected</i></li></ul><p>timeout</p>