segfaulting on startup

Jeffrey M. Vinocur jeff at litech.org
Mon Mar 11 06:02:27 UTC 2002


On Mon, 11 Mar 2002, Jeffrey M. Vinocur wrote:

> Nope -- Groups get malloc'd, and then through no fashion I can see gets
> set to zero and later to -1.

Provided I haven't gotten myself confused, I've found the problem.  I just
don't understand how this code could have gotten generated.

(gdb) print &ME
$6 = (SITE *) 0x80ae500
(gdb) print sizeof(SITE)
$7 = 240

(gdb) print &Groups
$10 = (NEWSGROUP **) 0x80ae5e8

(gdb) print (char*)&Groups - (char*)&ME
$12 = 232


Which would explain why assigning to ME causes Groups to be modified.
But, uh, how did this happen?


-- 
Jeffrey M. Vinocur
jeff at litech.org



More information about the inn-workers mailing list