[MacRuby] #930: SIGABRT in MacRuby 0.7 with Sequel + SQLite3-Ruby gem
#930: SIGABRT in MacRuby 0.7 with Sequel + SQLite3-Ruby gem -------------------------------+-------------------------------------------- Reporter: mario@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: MacRuby 0.7 Component: MacRuby | Keywords: -------------------------------+-------------------------------------------- When using MacRuby 0.7 official release, I attempt to cycle through a directory of files with MP3's in them, to gather the MP3 tags from them, using TagLibBundle. The storage Medium I've choosen, is Sequel, and SQLite3. After patching for Kernel#require issue in Sequel, I am able to load both Sequel, and SQLite3, with no problems. But when I attempt to scan through the directory, and start creating new Entries in my Database, it crashes on the first song it runs into. I've tested even with using generic strings, and it still remains the same. Attached, is the Backtrace, and the minimalistic version of the code. Required libraries are Sequel (Patched for Kernel.require, instead of super in Sequel#self.require), and SQLite3-Ruby. Checking through Backtrace, and rb_symbolicate, it seems that it is crashing on the inspect object, in which it returns the printable version of the Instance, specifically line 858: def inspect "#<#{model.name} @values=#{inspect_values}>" <-- this line end -- Ticket URL: <http://www.macruby.org/trac/ticket/930> MacRuby <http://macruby.org/>
#930: SIGABRT in MacRuby 0.7 with Sequel + SQLite3-Ruby gem -------------------------------+-------------------------------------------- Reporter: mario@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: -------------------------------+-------------------------------------------- Changes (by lsansonetti@…): * milestone: MacRuby 0.7 => Comment: Looking at the backtrace, it looks like 32-bit addresses. MacRuby is not entirely stable when ran in 32-bit mode, and we are aware of crashes due to stack unwinding like this one. -- Ticket URL: <http://www.macruby.org/trac/ticket/930#comment:2> MacRuby <http://macruby.org/>
#930: SIGABRT in MacRuby 0.7 with Sequel + SQLite3-Ruby gem -------------------------------+-------------------------------------------- Reporter: mario@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: -------------------------------+-------------------------------------------- Comment(by lsansonetti@…): I tried running your script in my environment, and it worked in both 32-bit and 64-bit mode. {{{ $ DYLD_LIBRARY_PATH=. ./macruby /Users/lrz/Downloads/test_sigabort_crash.rb /Volumes/SL/Users/lrz/Documents/music/Fazil\ Say/Beethoven\ _\ Fazil\ Say\ -\ Appassionata\ Waldstein\ The\ Tempest Starting file scan.... Adding 01 Klaviersonate F-Moll Nr. 23 (Opus 57) _Appassionata_ - Allegro Assai.mp3... Adding 02 Klaviersonate F-Moll Nr. 23 (Opus 57) _Appassionata_ - Andante Con Moto.mp3... Adding 03 Klaviersonate F-Moll Nr. 23 (Opus 57) _Appassionata_ - Allegro Ma Non Troppo.mp3... Adding 04 Klaviersonate C-Dur Nr. 21 (Opus 53) _Sonate Grande_ (_Waldstein___Aurora_) - Allegro Con Brio.mp3... Adding 05 Klaviersonate C-Dur Nr. 21 (Opus 53) _Sonate Grande_ (_Waldstein___Aurora_) - Adagio Molto.mp3... Adding 06 Klaviersonate C-Dur Nr. 21 (Opus 53) _Sonate Grande_ (_Waldstein___Aurora_) - Allegro Moderato. Prestissimo.mp3... Adding 07 Klaviersonate D-Moll Nr. 17 (Opus 31, Nr. 2) _Sturm_ - Largo. Allegro.mp3... Adding 08 Klaviersonate D-Moll Nr. 17 (Opus 31, Nr. 2) _Sturm_ - Adagio.mp3... Adding 09 Klaviersonate D-Moll Nr. 17 (Opus 31, Nr. 2) _Sturm_ - Allegretto.mp3... Reached here, everything is working. $ DYLD_LIBRARY_PATH=. arch -i386 ./macruby /Users/lrz/Downloads/test_sigabort_crash.rb /Volumes/SL/Users/lrz/Documents/music/Fazil\ Say/Beethoven\ _\ Fazil\ Say\ -\ Appassionata\ Waldstein\ The\ Tempest Starting file scan.... Adding 01 Klaviersonate F-Moll Nr. 23 (Opus 57) _Appassionata_ - Allegro Assai.mp3... Adding 02 Klaviersonate F-Moll Nr. 23 (Opus 57) _Appassionata_ - Andante Con Moto.mp3... Adding 03 Klaviersonate F-Moll Nr. 23 (Opus 57) _Appassionata_ - Allegro Ma Non Troppo.mp3... Adding 04 Klaviersonate C-Dur Nr. 21 (Opus 53) _Sonate Grande_ (_Waldstein___Aurora_) - Allegro Con Brio.mp3... Adding 05 Klaviersonate C-Dur Nr. 21 (Opus 53) _Sonate Grande_ (_Waldstein___Aurora_) - Adagio Molto.mp3... Adding 06 Klaviersonate C-Dur Nr. 21 (Opus 53) _Sonate Grande_ (_Waldstein___Aurora_) - Allegro Moderato. Prestissimo.mp3... Adding 07 Klaviersonate D-Moll Nr. 17 (Opus 31, Nr. 2) _Sturm_ - Largo. Allegro.mp3... Adding 08 Klaviersonate D-Moll Nr. 17 (Opus 31, Nr. 2) _Sturm_ - Adagio.mp3... Adding 09 Klaviersonate D-Moll Nr. 17 (Opus 31, Nr. 2) _Sturm_ - Allegretto.mp3... Reached here, everything is working. }}} I will investigate more.. but could you try again on a 64-bit machine? -- Ticket URL: <http://www.macruby.org/trac/ticket/930#comment:3> MacRuby <http://macruby.org/>
#930: SIGABRT in MacRuby 0.7 with Sequel + SQLite3-Ruby gem -------------------------------+-------------------------------------------- Reporter: mario@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: blocker | Milestone: MacRuby 0.7 Component: MacRuby | Resolution: fixed Keywords: | -------------------------------+-------------------------------------------- Changes (by lsansonetti@…): * status: new => closed * resolution: => fixed * milestone: => MacRuby 0.7 Comment: No response for reporter, closing the bug. -- Ticket URL: <http://www.macruby.org/trac/ticket/930#comment:4> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby