[Xapian-discuss] xapian-compact seg faulting

oscaruser at programmer.net oscaruser at programmer.net
Sat Jun 10 21:11:57 BST 2006


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 at survex.com>
> To: oscaruser at 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 at 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/




More information about the Xapian-discuss mailing list