[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#598932: /usr/bin/info segmentation fault



* Hilmar Preusse [2010-10-06 18:51:05 +0200]:
> On 06.10.10 Norbert Preining (preining@logic.at) wrote:
> > Can someone please compile info with debug symbols and produce a
> > backtrace? I cannot reproduce it and I am a bit in the dark what
> > the reason could be.
> > 
> Short question: what is "with debug symbols". Simply not strip the
> binary or something different?

Not stripping the binary, I'd say.

However, that may not now be necessary. I've managed to convince myself
that the fault occurs somewhere in info/nodes.c:info_node_of_file_buffer_tags()
--- more precisely in the (inlined) call to adjust_nodestart(). The pointer
that causes the segfault when dereferenced is node_body.buffer[0]. A comparison
of the source code:
  if (node_body.buffer[0] != INFO_COOKIE && min > 2)
    node_body.buffer -= 3;
with the disassembly I posted earlier should convince anyone. Note the
#define INFO_COOKIE '\037'
in info/nodes.h.



Reply to: