birdc 2.0.0 crashes

Ondrej Zajicek santiago at crfreenet.org
Thu Dec 14 23:13:24 CET 2017


On Thu, Dec 14, 2017 at 04:48:37PM +0100, Clemens Schrimpe wrote:
> > And "p history_offset"? Should be 0.
> 
> Nope - it is 2:
> 
> Program received signal SIGSEGV, Segmentation fault.
> 0x00007ffff79b6a0b in previous_history () at /build/readline6-RKA9OI/readline6-6.3/history.c:185
> 185	/build/readline6-RKA9OI/readline6-6.3/history.c: No such file or directory.
> (gdb) p history_offset
> $1 = 2
> (gdb) p *(the_history[2])
> Cannot access memory at address 0x10
> 
> We are up to something! :-)

Hi

Perhaps it is just missing initialization? Please try attached patch.

-- 
Elen sila lumenn' omentielvo

Ondrej 'Santiago' Zajicek (email: santiago at crfreenet.org)
OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net)
"To err is human -- to blame it on a computer is even more so."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: init_history.patch
Type: text/x-diff
Size: 277 bytes
Desc: not available
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20171214/7ec63990/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20171214/7ec63990/attachment.asc>


More information about the Bird-users mailing list