Ticket #1 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

convertdb.rb segfaults after first set of conversions

Reported by: deveiant Owned by: deveiant
Priority: critical Milestone: Updates
Component: Version: 0.02
Keywords: convertdb segfault Cc:

Description

Running the conversion on WordNet?-2.1 data files:

$ ./convertdb.rb 
WordNet Lexicon Converter
This program will convert WordNet data files into databases
used by Ruby-WordNet. This will not affect existing WordNet files,
but will require up to 40Mb of disk space.
Continue? [y]: 
Where can I find the WordNet data files?
Data directory [/usr/local/WordNet-2.0/dict]: /usr/local/WordNet-2.1/dict
Converting index files...
    index.noun..../convertdb.rb:217: [BUG] Segmentation fault
ruby 1.8.3 (2005-09-21) [powerpc-darwin8.3.0]

Abort trap

Stacktrace is:

Date/Time:      2005-11-11 07:44:43.793 -0500
OS Version:     10.4.3 (Build 8F46)
Report Version: 3

Command: ruby
Path:    /usr/bin/ruby
Parent:  bash [6541]

Version: ??? (???)

PID:    9881
Thread: 0

Exception:  EXC_BAD_ACCESS (0x0001)
Codes:      KERN_INVALID_ADDRESS (0x0001) at 0x0439fa0c

Thread 0 Crashed:
0   libruby.dylib 	0x00237b4c rb_newobj + 48 (gc.c:384)
1   libruby.dylib 	0x00206220 ary_alloc + 32 (array.c:104)
2   libruby.dylib 	0x0020629c ary_new + 32 (array.c:120)
3   libruby.dylib 	0x00221b84 rb_eval + 11208 (eval.c:3702)
4   libruby.dylib 	0x00221530 rb_eval + 9588 (eval.c:3543)
5   libruby.dylib 	0x002200bc rb_eval + 4352 (eval.c:3187)
6   libruby.dylib 	0x00223304 rb_call0 + 2264 (eval.c:5806)
7   libruby.dylib 	0x0022cf8c method_call + 204 (eval.c:8973)
8   libruby.dylib 	0x00222dd0 rb_call0 + 932 (eval.c:5672)
9   libruby.dylib 	0x002237c4 rb_call + 548 (eval.c:5901)
10  libruby.dylib 	0x002209b0 rb_eval + 6644 (eval.c:3372)
11  libruby.dylib 	0x0021ff84 rb_eval + 4040 (eval.c:3159)
12  libruby.dylib 	0x002214e4 rb_eval + 9512 (eval.c:3536)
13  libruby.dylib 	0x00227828 rb_yield_0 + 1452 (eval.c:4877)
14  libruby.dylib 	0x00206dc4 rb_ary_each + 56 (array.c:1124)
15  libruby.dylib 	0x00222dd0 rb_call0 + 932 (eval.c:5672)
16  libruby.dylib 	0x002237c4 rb_call + 548 (eval.c:5901)
17  libruby.dylib 	0x002209b0 rb_eval + 6644 (eval.c:3372)
18  libruby.dylib 	0x0021fc20 rb_eval + 3172 (eval.c:3100)
19  libruby.dylib 	0x00227828 rb_yield_0 + 1452 (eval.c:4877)
20  libruby.dylib 	0x00206dc4 rb_ary_each + 56 (array.c:1124)
21  libruby.dylib 	0x00222dd0 rb_call0 + 932 (eval.c:5672)
22  libruby.dylib 	0x002237c4 rb_call + 548 (eval.c:5901)
23  libruby.dylib 	0x002209b0 rb_eval + 6644 (eval.c:3372)
24  libruby.dylib 	0x0021fc20 rb_eval + 3172 (eval.c:3100)
25  libruby.dylib 	0x00227828 rb_yield_0 + 1452 (eval.c:4877)
26  libruby.dylib 	0x00206dc4 rb_ary_each + 56 (array.c:1124)
27  libruby.dylib 	0x00222dd0 rb_call0 + 932 (eval.c:5672)
28  libruby.dylib 	0x002237c4 rb_call + 548 (eval.c:5901)
29  libruby.dylib 	0x002209b0 rb_eval + 6644 (eval.c:3372)
30  libruby.dylib 	0x0021fc20 rb_eval + 3172 (eval.c:3100)
31  libruby.dylib 	0x00223304 rb_call0 + 2264 (eval.c:5806)
32  libruby.dylib 	0x002237c4 rb_call + 548 (eval.c:5901)
33  libruby.dylib 	0x00220ca4 rb_eval + 7400 (eval.c:3393)
34  libruby.dylib 	0x0022ff0c ruby_exec_internal + 172 (eval.c:1545)
35  libruby.dylib 	0x0022ff54 ruby_exec + 24 (eval.c:1564)
36  libruby.dylib 	0x0022ff9c ruby_run + 56 (eval.c:1574)
37  ruby          	0x00002cd8 0x1000 + 7384
38  ruby          	0x00002508 _start + 344 (crt.c:272)
39  ruby          	0x000023ac start + 60

Thread 0 crashed with PPC Thread State 64:
  srr0: 0x0000000000237b4c srr1: 0x000000000200f030                        vrsave: 0x0000000000000000
    cr: 0x44000224          xer: 0x0000000000000004   lr: 0x0000000000237b24  ctr: 0x0000000000237b1c
    r0: 0x0000000000206220   r1: 0x00000000bfff5fb0   r2: 0x000000000021f048   r3: 0x000000000439fa08
    r4: 0x0000000000000010   r5: 0x0000000000000035   r6: 0x0000000000000020   r7: 0x0000000000000006
    r8: 0x00000000fc0a1260   r9: 0x0000000000221b80  r10: 0x000000000020631c  r11: 0x00000000002acde0
   r12: 0x0000000000237b1c  r13: 0x0000000000000000  r14: 0x0000000000000000  r15: 0x0000000000000000
   r16: 0x0000000000000000  r17: 0x0000000000000000  r18: 0x0000000000000000  r19: 0x0000000000000000
   r20: 0x0000000000000000  r21: 0x0000000000000000  r22: 0x0000000000000000  r23: 0x0000000000000000
   r24: 0x00000000bfff67e0  r25: 0x00000000005569b4  r26: 0x0000000000000001  r27: 0x0000000000000001
   r28: 0x0000000000000000  r29: 0x000000000002fd88  r30: 0x00000000002b7b24  r31: 0x0000000000237b24

Binary Images Description:
    0x1000 -     0x2fff ruby 	/usr/bin/ruby
   0x37000 -    0x3afff strscan.bundle 	/usr/lib/ruby/1.8/powerpc-darwin8.3.0/strscan.bundle
   0x99000 -    0x9cfff readline.bundle 	/usr/lib/ruby/1.8/powerpc-darwin8.3.0/readline.bundle
   0xb8000 -    0xbbfff stringio.bundle 	/usr/lib/ruby/1.8/powerpc-darwin8.3.0/stringio.bundle
   0xc2000 -    0xc4fff etc.bundle 	/usr/lib/ruby/1.8/powerpc-darwin8.3.0/etc.bundle
  0x205000 -   0x2abfff libruby.dylib 	/usr/lib/libruby.dylib
  0x3c0000 -   0x3d5fff syck.bundle 	/usr/lib/ruby/1.8/powerpc-darwin8.3.0/syck.bundle
  0x5a4000 -   0x5c3fff bdb.bundle 	/usr/lib/ruby/site_ruby/1.8/powerpc-darwin8.3.0/bdb.bundle
  0x60e000 -   0x6a7fff libdb-4.2.dylib 	/sw/lib/libdb-4.2.dylib
0x8fe00000 - 0x8fe54fff dyld 44.2	/usr/lib/dyld
0x90000000 - 0x901b3fff libSystem.B.dylib 	/usr/lib/libSystem.B.dylib
0x9020b000 - 0x90210fff libmathCommon.A.dylib 	/usr/lib/system/libmathCommon.A.dylib
0x909bb000 - 0x90a3ffff libobjc.A.dylib 	/usr/lib/libobjc.A.dylib
0x90aee000 - 0x90b00fff libauto.dylib 	/usr/lib/libauto.dylib
0x913ad000 - 0x913b5fff libgcc_s.1.dylib 	/usr/lib/libgcc_s.1.dylib
0x913ba000 - 0x913dbfff libmx.A.dylib 	/usr/lib/libmx.A.dylib
0x968ac000 - 0x968dafff libncurses.5.4.dylib 	/usr/lib/libncurses.5.4.dylib
0x96a43000 - 0x96a59fff libedit.2.dylib 	/usr/lib/libedit.2.dylib

Model: PowerBook5,9, BootROM 4.9.6f0, 1 processors, PowerPC G4 (1.5), 1.67 GHz, 512 MB
Graphics: ATI Mobility Radeon 9700, ATY,RV360M11, AGP, 128 MB
Memory Module: SODIMM0/J20STANDARD, 512 MB, DDR2 SDRAM, PC2-4200S-444
AirPort: AirPort Extreme, 404.2 (3.90.34.0.p16)
Modem: Jump, , V.92, Version 1.0, 
Bluetooth: Version 1.6.6f22, 2 service, 1 devices, 1 incoming serial ports
Network Service: Built-in Ethernet, Ethernet, en0
PCI Card: pci106b,4318, sppci_othernetwork, SLOT-A
PCI Card: TXN,PCIXXXX-00, cardbus, PC Card
PCI Card: usb, usb, USB20
PCI Card: usb, usb, USB20
PCI Card: usb, ehci, USB20
Parallel ATA Device: ST9120821A, 111.79 GB
Parallel ATA Device: MATSHITADVD-R   UJ-846, 
USB Device: Apple Internal Keyboard / Trackpad, Apple Computer, Up to 12 Mb/sec, 500 mA
USB Device: Apple Optical USB Mouse, Mitsumi Electric, Up to 1.5 Mb/sec, 500 mA
USB Device: Bluetooth HCI, , Up to 12 Mb/sec, 500 mA
USB Device: iPod, Apple, Up to 480 Mb/sec, 500 mA

Change History

Changed 3 years ago by deveiant

  • owner set to deveiant
  • status changed from new to assigned

Already have a fix, submitted to me quite a long time ago by someone I probably never thanked adequately.

Changed 3 years ago by deveiant

Found the original report. Thanks to Claus W. Spitzer at University of Waterloo for reporting this nearly a year ago. Sheesh, I should be flogged.

Changed 3 years ago by ged

  • status changed from assigned to closed
  • resolution set to fixed

(In [60]) * Fixed the segfault during conversion. Thanks to Claus W. Spitzer for finding

this and sending me a patch. (Fixes #1)

Note: See TracTickets for help on using tickets.