#123 mdb-export segfault in mdb_xfer_bound_data

open
nobody
libmdb (15)
5
2009-05-26
2009-05-26
Kevin Kadow
No

Running mdb-export to export a table with very long lines, using the same input file and command line, the mdb-export program will sometimes die with a segmentation fault, and sometimes succeed.

Core was generated by `mdb-export us_courses.mdb descriptions'.
Program terminated with signal 11, Segmentation fault.
[New process 8474]
#0 0x00581b90 in strcpy () from /lib/libc.so.6
(gdb) bt
#0 0x00581b90 in strcpy () from /lib/libc.so.6
#1 0x00c9ab49 in mdb_xfer_bound_data (mdb=0x8145c00, start=1762,
col=0x8148ad0, len=8) at data.c:142
#2 0x00c9ac52 in _mdb_attempt_bind (mdb=0x8145c00, col=0x8148ad0,
isnull=<value optimized out>, offset=1762, len=8) at data.c:363
#3 0x00c9aedd in mdb_read_row (table=0x81487f0, row=0) at data.c:247
#4 0x00c9b1cc in mdb_fetch_row (table=0x81487f0) at data.c:495
#5 0x08048c04 in main (argc=Cannot access memory at address 0x74cb86c
) at mdb-export.c:102

Discussion