[MacRuby-devel] [MacRuby] #463: Intermitent crashes with MacRuby 0.5 HEAD (2009/11/26), Ruby threads and RestClient/Net:HTTP

MacRuby ruby-noreply at macosforge.org
Thu Nov 26 10:58:41 PST 2009

#463: Intermitent crashes with MacRuby 0.5 HEAD (2009/11/26), Ruby threads and
 Reporter:  sergio@…           |       Owner:  lsansonetti@…        
     Type:  defect             |      Status:  new                  
 Priority:  minor              |   Milestone:  MacRuby 0.5          
Component:  MacRuby            |    Keywords:                       

 I'm experiencing random crashes in a MacRuby app currently in development

 Adding lot's of debugging code, I've traced the crash to happen always on
 the same place: a call to RestClient.get inside a Ruby thread (canasto.rb
 source file).

 It's my first Cocoa app and my concurrent programming skills are quite
 poor, so I'm probably not skilled enough to solve the threading problem
 the right way...

 Anyway, I'm gonna paste the backtrace below and the crash report is

 BTW: Thank you guys. Your work and talent give us, the ruby developers,
 OSX superpowers!

 terminate called without an active exception

 [Session started at 2009-11-26 19:28:50 +0100.]
 GNU gdb 6.3.50-20050815 (Apple version gdb-966) (Tue Mar 10 02:43:13 UTC
 Copyright 2004 Free Software Foundation, Inc.
 GDB is free software, covered by the GNU General Public License, and you
 welcome to change it and/or distribute copies of it under certain
 Type "show copying" to see the conditions.
 There is absolutely no warranty for GDB.  Type "show warranty" for
 This GDB was configured as "i386-apple-darwin".sharedlibrary apply-load-
 rules all
 Attaching to process 15794.
 [Switching to process 15794 thread 0x7a0f]
 [Switching to process 15794 thread 0x7a0f]
 (gdb) backtrace
 #0  0x93c2462e in __abort ()
 #1  0x93c2468a in abort ()
 #2  0x92baf005 in __gnu_cxx::__verbose_terminate_handler ()
 #3  0x92bad10c in __gxx_personality_v0 ()
 #4  0x92bad14b in std::terminate ()
 #5  0x92bad261 in __cxa_throw ()
 #6  0x01020caa in rb_vm_thread_destructor (userdata=0x2b5e890) at
 #7  0x93b6bb9a in _pthread_exit ()
 #8  0x93b3f437 in _pthread_testcancel ()
 #9  0x93b69e5a in _pthread_cond_wait ()
 #10 0x93b8f9f8 in pthread_cond_timedwait$UNIX2003 ()
 #11 0x01028cd2 in rb_thread_wait_for (time={tv_sec = 60, tv_usec = 0}) at
 #12 0x00f4c176 in rb_f_sleep (recv=179689232, sel=0x1774a0, argc=1,
 argv=0xb0537c80) at process.c:2919
 #13 0x0101a67c in rb_vm_dispatch (cache=0xab61790, top=179689232,
 self=179689232, sel=<value temporarily unavailable, due to optimizations>,
 block=0x0, opt=2 '\002', argc=1) at dispatcher.cpp:415
 #14 0x01f3ab2a in ?? ()
 #15 0x010295ec in rb_vm_thread_run (thread=45475984) at vm.cpp:4156
 #16 0x93b69155 in _pthread_start ()
 #17 0x93b69012 in thread_start ()

Ticket URL: <http://www.macruby.org/trac/ticket/463>
MacRuby <http://macruby.org/>

More information about the MacRuby-devel mailing list