innfeed segfaults on NULL buffer in getBanner() - mine too..

Russ Allbery rra at
Mon Aug 6 21:03:18 UTC 2007

Julien ÉLIE <julien at> writes:
> En réponse à Russ Allbery :

>> prepareRead is responsible for setting up the buffers for the endpoint.
>> It sets the buffers to the passed value of buffers.  Since inBuffer
>> isn't NULL, this must have happened at some point.

> What disconcerts me is:

> (gdb) break prepareRead
> Breakpoint 2 at 0x408e60: file endpoint.c, line 372.
> (gdb) run
> Starting program: /usr/local/news/snapshot/bin/innfeed
> Breakpoint 2, prepareRead (endp=0x0, buffers=0x553300, func=0x553300, clientData=0x0, minlen=0) at endpoint.c:372
> 372     {
> (gdb) print *endp
> Error accessing memory address 0x0: Bad address.

Make sure that you built without any optimization.  Sometimes that can
mess things up and disable asserts.

Russ Allbery (rra at             <>

    Please send questions to the list rather than mailing me directly.
     <> explains why.

More information about the inn-workers mailing list