Re: [Bmf-user] Segmentation fault with text database.
Status: Beta
Brought to you by:
t-m
From: Jan J. <jan...@we...> - 2003-05-09 01:42:24
|
On Thu, May 08, 2003 at 08:18:08AM -0700, Tom Marshall wrote: >When the file is opened, what is its size? Can you run under gdb and print >the value of "st"? I noticed that if I edit the Makefile to use -DDEBUG instead of -DNDEBUG it does no longer crash. I am not very good with gdb is this what you wanted? Breakpoint 1, dbtext_db_opentable (pthis=0x3c007030, table=0x3c0005ee "spamlist", rdonly=false) at dbtext.c:122 122 { (gdb) p st $1 = {st_dev = 0, st_ino = 1543520153, st_mode = 16384, st_nlink = 31746, st_uid = 8192, st_gid = 1, st_rdev = 1543519934, st_atimespec = {tv_sec = 2080523604, tv_nsec = -809513188}, st_mtimespec = {tv_sec = -809510075, tv_nsec = 1543520169}, st_ctimespec = {tv_sec = 5, tv_nsec = 5}, st_size = 4323579106949544558, st_blocks = 22481471657, st_blksize = 1543977198, st_flags = 2080523604, st_gen = 3485454108, st_lspare = 5, st_qspare = {6629298822478495783, -3476832664655242427}} (gdb) c Continuing. Breakpoint 1, dbtext_db_opentable (pthis=0x3c007030, table=0x3c000611 "goodlist", rdonly=false) at dbtext.c:122 122 { (gdb) p st $2 = {st_dev = 3, st_ino = 114832, st_mode = 33188, st_nlink = 1, st_uid = 12045, st_gid = 12045, st_rdev = 0, st_atimespec = {tv_sec = 1052304680, tv_nsec = 360000000}, st_mtimespec = {tv_sec = 1052304680, tv_nsec = 360000000}, st_ctimespec = {tv_sec = 1052304680, tv_nsec = 360000000}, st_size = 0, st_blocks = 0, st_blksize = 8192, st_flags = 0, st_gen = 0, st_lspare = -410296452, st_qspare = { -1765099222123675648, 1232655613952}} (gdb) c Continuing. Breakpoint 2, 0x5c04769c in sscanf () (gdb) c Continuing. Program received signal SIGSEGV, Segmentation fault. 0x5c0476b6 in sscanf () |