oscaruser@programmer.net
2006-Jun-10 00:35 UTC
[Xapian-discuss] xapian-compact seg faulting
Folks, Received a seg fault during xapian-compact for flint dbs as follows. The dbs to compact seemed OK during the copydatabase operation. Thanks, -OSC gamma:/svr/hda1/omega/data# gamma:/svr/hda1/omega/data# /home/oscar/xapian/bin/xapian-compact -F -m bsp*/default /svr/hda1/omega/data/default postlist: Reduced by 62.2293% 640728K (1029624K -> 388896K) record: Reduced by 52.3299% 55880K (106784K -> 50904K) termlist: Reduced by 52.9258% 309040K (583912K -> 274872K) Segmentation fault strace shows: stat64("/svr/hda1/omega/data/bsp0149/default/termlist.DB", {st_mode=S_IFREG|0644, st_size=2482176, ...}) = 0 open("/svr/hda1/omega/data/bsp0149/default/termlist.baseA", O_RDONLY|O_LARGEFILE) = 4 read(4, "\366\3\5\200@\255\2\1&\366\3\256\2\0\0\366\3\377\377\377"..., 1024) = 57 read(4, "", 967) = 0 read(4, "", 38) = 0 close(4) = 0 open("/svr/hda1/omega/data/bsp0149/default/termlist.baseB", O_RDONLY|O_LARGEFILE) = 4 read(4, "\365\3\5\200@\254\2\1&\365\3\254\2\0\0\365\3\377\377\377"..., 1024) = 57 read(4, "", 967) = 0 read(4, "", 38) = 0 close(4) = 0 open("/svr/hda1/omega/data/bsp0149/default/termlist.DB", O_RDONLY|O_LARGEFILE) = 4 _llseek(4, 2465792, [2465792], SEEK_SET) = 0 read(4, "\0\0\1\366\1\0203\0203\2c\37\371\37\356\37\343\37\330\37"..., 8192) = 8192 _llseek(4, 8192, [8192], SEEK_SET) = 0 read(4, "\0\0\0\6\0\22D\22D\0\21\37\371\30\240\22U\17\3\7l\2f\0"..., 8192) = 8192 ... read(4, "\0\0\1\366\0\f/\f/\0\23\33\233\26D\20|\fB\10\22\2J\7\304"..., 8192) = 8192 _llseek(3, 281460736, [281460736], SEEK_SET) = 0 write(3, "\0\0\0\1\0\0\0\0\0\0\27\31\377\24\266\17\312\v\312\7d\0"..., 8192) = 8192 close(4) = 0 _llseek(3, 4849664, [4849664], SEEK_SET) = 0 write(3, "\0\0\0\1\2\34K\34K\0\217\37\371\37\355\37\341\37\325\37"..., 8192) = 8192 _llseek(3, 278552576, [278552576], SEEK_SET) = 0 write(3, "\0\0\0\1\1\n\376\v\4\2\327\37\351\37\334\37\317\37\302"..., 8192) = 8192 _llseek(3, 281468928, [281468928], SEEK_SET) = 0 write(3, "\0\0\0\1\0\27\342\27\342\0\17\34,\27\361\17\312\v\312\7"..., 8192) = 8192 fsync(3) = 0 open("/svr/hda1/omega/data/default/termlist.baseB", O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0666) = 4 write(4, "\1\5\200@\320\4\2\307!\373\306\7\267\214\2\0\0\1\377\377"..., 4314) = 4314 fsync(4) = 0 close(4) = 0 _llseek(3, 4849664, [4849664], SEEK_SET) = 0 read(3, "\0\0\0\1\2\34K\34K\0\217\37\371\37\355\37\341\37\325\37"..., 8192) = 8192 stat64("/svr/hda1/omega/data/default/termlist.DB", {st_mode=S_IFREG|0644, st_size=281477120, ...}) = 0 termlist: Reduced by 52.9244% 309032K (583912K -> 274880K) ) = 60 close(3) = 0 --- SIGSEGV (Segmentation fault) @ 0 (0) --- +++ killed by SIGSEGV +++ -- ___________________________________________________ Play 100s of games for FREE! http://games.mail.com/
On Fri, Jun 09, 2006 at 03:34:35PM -0800, oscaruser@programmer.net wrote:> strace shows: > [...] > termlist: Reduced by 52.9244% 309032K (583912K -> 274880K) > ) = 60 > close(3) = 0 > --- SIGSEGV (Segmentation fault) @ 0 (0) --- > +++ killed by SIGSEGV +++That doesn't narrow it down too well. Can you run under gdb: gdb --args /home/oscar/xapian/bin/xapian-compact -F -m bsp*/default /svr/hda1/omega/data/default And then at the "(gdb)" prompt type: run and then once it dies: bt To give a backtrace. Then post the backtrace. Cheers, Olly
oscaruser@programmer.net
2006-Jun-10 21:12 UTC
[Xapian-discuss] xapian-compact seg faulting
gamma:/svr/hda1/xapian/default# gdb /home/oscar/xapian/bin/xapian-compact GNU gdb 6.3-debian Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-linux"...Using host libthread_db library "/lib/tls/libthread_db.so.1". (gdb) set args -F -m /svr/hda1/omega/data/bsp*/default /svr/hda1/xapian/default (gdb) run Starting program: /usr/home/oscar/xapian/bin/xapian-compact -F -m /svr/hda1/omega/data/bsp*/default /svr/hda1/xapian/default postlist: Reduced by 62.2293% 640728K (1029624K -> 388896K) record: Reduced by 52.3299% 55880K (106784K -> 50904K) termlist: Reduced by 52.9244% 309032K (583912K -> 274880K) Program received signal SIGSEGV, Segmentation fault. 0x40337e84 in mallopt () from /lib/tls/libc.so.6 (gdb) bt #0 0x40337e84 in mallopt () from /lib/tls/libc.so.6 #1 0x40336dcb in free () from /lib/tls/libc.so.6 #2 0x4026b681 in operator delete () from /usr/lib/libstdc++.so.6 #3 0x4026b6dc in operator delete[] () from /usr/lib/libstdc++.so.6 #4 0x400bc525 in FlintTable::close (this=0xbfffc730) at flint_table.cc:1626 #5 0x400bc79e in ~FlintTable (this=0xbfffc730) at flint_table.cc:1612 #6 0x0804dd9b in main (argc=274880, argv=0xbfffca74) at ostream.tcc:63 (gdb) frame 4 #4 0x400bc525 in FlintTable::close (this=0xbfffc730) at flint_table.cc:1626 1626 delete [] C[j].p; (gdb) list 1621 if (!dont_close_handle) (void)::close(handle); 1622 handle = -1; 1623 } 1624 1625 for (int j = level; j >= 0; j--) { 1626 delete [] C[j].p; 1627 } 1628 delete [] split_p; 1629 1630 delete [] kt.get_address(); (gdb) p level $1 = 2 (gdb) p j $2 = 134633720 (gdb)> ----- Original Message ----- > From: "Olly Betts" <olly@survex.com> > To: oscaruser@programmer.net > Subject: Re: [Xapian-discuss] xapian-compact seg faulting > Date: Sat, 10 Jun 2006 02:13:04 +0100 > > > On Fri, Jun 09, 2006 at 03:34:35PM -0800, oscaruser@programmer.net wrote: > > strace shows: > > [...] > > termlist: Reduced by 52.9244% 309032K (583912K -> 274880K) > > ) = 60 > > close(3) = 0 > > --- SIGSEGV (Segmentation fault) @ 0 (0) --- > > +++ killed by SIGSEGV +++ > > That doesn't narrow it down too well. > > Can you run under gdb: > > gdb --args /home/oscar/xapian/bin/xapian-compact -F -m bsp*/default > /svr/hda1/omega/data/default > > And then at the "(gdb)" prompt type: > > run > > and then once it dies: > > bt > > To give a backtrace. Then post the backtrace. > > Cheers, > Olly>-- ___________________________________________________ Play 100s of games for FREE! http://games.mail.com/