[vtk-developers] Java wrapping not working on Mac OS X 10.5?
Sean McBride
sean at rogue-research.com
Thu May 17 12:06:34 EDT 2012
On Wed, 16 May 2012 15:47:26 -0600, David Gobbi said:
># delete the output file
>rm Common/Core/vtkAbstractArrayJava.cxx
># turn on VERBOSE make mode
>export VERBOSE=1
># run "make" again
>make vtkCommonCoreJava
># copy the vtkWrapJava command-line, run it inside gdb
>gdb --args /path/to/vtkWrapJava [args]
David,
I didn't actually use gdb, but fetched the crash log from the logs folder:
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Crashed Thread: 0
Thread 0 Crashed:
0 libSystem.B.dylib 0x00007fff84826b94 __kill + 12
1 libSystem.B.dylib 0x00007fff848b1ab8 __abort + 84
2 libSystem.B.dylib 0x00007fff8487b510 __chk_fail + 92
3 libSystem.B.dylib 0x00007fff848599b4 __strncat_chk + 84
4 vtkWrapJava 0x0000000000006670 __inline_strncat_chk + 52 (_string.h:134)
5 vtkWrapJava 0x0000000000005f68 outputFunction + 976 (vtkWrapJava.c:1062)
6 vtkWrapJava 0x00000000000069f8 vtkParseOutput + 796 (vtkWrapJava.c:1262)
7 vtkWrapJava 0x000000000000832c main + 2072 (vtkParseMain.c:339)
8 vtkWrapJava 0x0000000000002abc start + 64
The '_chk' stuff is because I use -D_FORTIFY_SOURCE=2. I suspect a buffer overrun involving strncat().
(I had not turned fortify on before, which explains why my previous test worked.)
--
____________________________________________________________
Sean McBride, B. Eng sean at rogue-research.com
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
More information about the vtk-developers
mailing list