[Xapian-discuss] xapian-compact seg faulting

Olly Betts olly at survex.com
Tue Jun 13 01:41:45 BST 2006


On Sat, Jun 10, 2006 at 12:11:57PM -0800, oscaruser at programmer.net wrote:
> 1625        for (int j = level; j >= 0; j--) {
> 1626            delete [] C[j].p;
> 1627        }
[...]
> (gdb) p level
> $1 = 2
> (gdb) p j
> $2 = 134633720
> (gdb) 

That's clearly "impossible" by the code logic.  I think there must be some
memory corruption happening.  The other options I can see are a compiler
code generation bug, a hardware fault such as bad non-ECC memory, or gdb
being being confused.  If the error is exactly repeatable that tends to
rule out bad memory.

Have you tried running this under valgrind's memcheck tool?

Cheers,
    Olly



More information about the Xapian-discuss mailing list