birdc 2.0.0 crashes

Clemens Schrimpe clemens.schrimpe at gmail.com
Thu Dec 14 13:13:56 CET 2017


> Use "bt full".
> 
> What’s "p the_history" and "p the_history[0]"?

Looks legit:

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) bt full
#0  0x00007ffff79b6a0b in previous_history () at /build/readline6-RKA9OI/readline6-6.3/history.c:185
No locals.
#1  0x00007ffff79b65e5 in rl_get_previous_history (count=<optimized out>, key=<optimized out>) at /build/readline6-RKA9OI/readline6-6.3/misc.c:609
        old_temp = 0x0
        temp = 0x0
        key = <optimized out>
        count = 1
#2  0x00007ffff799b990 in _rl_dispatch_subseq (key=65, map=<optimized out>, got_subseq=0) at /build/readline6-RKA9OI/readline6-6.3/readline.c:832
        r = 0
        newkey = <optimized out>
        func = <optimized out>
        cxt = <optimized out>
#3  0x00007ffff799c202 in _rl_dispatch_callback (cxt=0x61cb10) at /build/readline6-RKA9OI/readline6-6.3/readline.c:736
        nkey = <optimized out>
        r = <optimized out>
#4  0x00007ffff79b27ff in rl_callback_read_char () at /build/readline6-RKA9OI/readline6-6.3/callback.c:188
        line = <optimized out>
        eof = <optimized out>
        jcode = <optimized out>
        olevel = {{__jmpbuf = {6319136, 7997659007791416985, -1, 0, 4212971, 6319559, 7997659007814485657, 7997676843090331289}, __mask_was_saved = 0, 
            __saved_mask = {__val = {0 <repeats 16 times>}}}}
#5  0x0000000000403885 in input_read () at client/birdc.c:219
No locals.
#6  0x00000000004020d3 in select_loop () at client/client.c:375
        select_fds = {__fds_bits = {1, 0 <repeats 15 times>}}
        rv = <optimized out>
#7  main (argc=<optimized out>, argv=<optimized out>) at client/client.c:447
No locals.
(gdb) p the_history
$1 = (HIST_ENTRY **) 0x609470
(gdb) p the_history[0]
$2 = (HIST_ENTRY *) 0x609630
(gdb) p *(the_history[0])
$3 = {line = 0x609650 „show protocols „, timestamp = 0x609610 "", data = 0x0}


Double-plus-weird!

I keep digging … 

	Clemens




More information about the Bird-users mailing list