Tom Lane wrote: > Itai Zukerman <[EMAIL PROTECTED]> writes: > > After recompiling with --enable-cassert, nserting into an empty table, > > I get: > > > TRAP: FailedAssertion("!((VfdCache[0].fd == (-1)))", File: "fd.c", Line: 1113) > > Begins to look like a plain old wild store: ain't *nothing* should ever > write into VfdCache[0].fd. If that's repeatable, you could try homing > in on the place that is clobbering that variable by stepping through > major routines with gdb.
If this is a system that supports hardware watchpoints (like Linux on x86), then you should be able to do a "watch VfdCache[0].fd". In fact, if you know the specific value it's going to be set to, you can do a conditional watchpoint: "watch VfdCache[0].fd if VfdCache[0] == <value>" (you can set the condition to be pretty much anything). The program will stop on the statement immediately following the one that scribbled on the area you're watching when the condition you specify is met. Note, though, that the condition is tested *after* the modification happens. -- Kevin Brown [EMAIL PROTECTED] ---------------------------(end of broadcast)--------------------------- TIP 3: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to [EMAIL PROTECTED] so that your message can get through to the mailing list cleanly