Opened 16 years ago
Closed 16 years ago
#431 closed defect (fixed)
vector operations crash in 64bit OSX
Reported by: | kyngchaos | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 6.4.0 |
Component: | Vector | Version: | svn-develbranch6 |
Keywords: | Cc: | ||
CPU: | x86-64 | Platform: | MacOSX |
Description
Some vector operations crash on OSX 64bit. This is in both 6.x SVN and 7.0 trunk.
One case is on import, when v.in.ogr gets to the Break Polygons step. There are probably other places where it could happen, since it crashes in the rtree library. OSX crash trace (trunk):
Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at 0x000000000187e204 Crashed Thread: 0 Thread 0 Crashed: 0 libgrass_rtree.dylib 0x00000001000d3433 RTreeInsertRect2 + 86 1 libgrass_rtree.dylib 0x00000001000d34a6 RTreeInsertRect2 + 201 2 libgrass_rtree.dylib 0x00000001000d34a6 RTreeInsertRect2 + 201 3 libgrass_rtree.dylib 0x00000001000d34a6 RTreeInsertRect2 + 201 4 libgrass_rtree.dylib 0x00000001000d36e7 RTreeInsertRect + 164 5 libgrass_rtree.dylib 0x00000001000d3a87 RTreeDeleteRect + 214 6 libgrass_dig2.dylib 0x00000001000c820d dig_spidx_del_line + 175 7 libgrass_dig2.dylib 0x00000001000c45da dig_del_line + 70 8 libgrass_vect.dylib 0x0000000100028712 V2_delete_line_nat + 912 9 libgrass_vect.dylib 0x00000001000275c4 Vect_delete_line + 207 10 libgrass_vect.dylib 0x000000010000c913 Vect_break_polygons + 1920 11 v.in.ogr 0x0000000100003b61 main + 8316 12 v.in.ogr 0x00000001000010a8 start + 52 Thread 0 crashed with X86 Thread State (64-bit): rax: 0x000000010187ed00 rbx: 0x000000010187d720 rcx: 0x00007fff5fbfa8e8 rdx: 0x000000000187e200 rdi: 0x000000010187d720 rsi: 0x000000000000003f rbp: 0x00007fff5fbfa850 rsp: 0x00007fff5fbfa790 r8: 0x0000000000000000 r9: 0x0000000000000118 r10: 0x0000000000000009 r11: 0x0000000000000000 r12: 0x0000000000000000 r13: 0x000000000187e200 r14: 0x00007fff5fbfa8e8 r15: 0x000000000000003f rip: 0x00000001000d3433 rfl: 0x0000000000010246 cr2: 0x000000000187e204
I tried at one time to debug it in Xcode, but it didn't make sense to me, and I don't know much about debugging to know what to look for. Some explicit GDB commands to use, and I could try from a terminal...
Note:
See TracTickets
for help on using tickets.
fixed in trunk r36003 and devbr6 r36049