[Olsr-dev] segfault in tip as of now() in olsr_netlink_addreq

L. Aaron Kaplan (spam-protected)
Sun Dec 14 20:59:01 CET 2008


FYI

(spam-protected):~/olsrd-current/olsrd-henning-unifiedcodeparser$ sudo gdb  
olsrd core
GNU gdb 6.8-debian
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/ 
gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show  
copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu"...

warning: Can't read pathname for load map: Input/output error.
Reading symbols from /lib/libpthread.so.0...done.
Loaded symbols for /lib/libpthread.so.0
Reading symbols from /lib/libdl.so.2...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/ld-linux-x86-64.so.2...done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2
Reading symbols from /usr/lib/olsrd_nameservice.so.0.3...done.
Loaded symbols for /usr/lib64/olsrd_nameservice.so.0.3
Reading symbols from /usr/lib/olsrd_txtinfo.so.0.1...done.
Loaded symbols for /usr/lib64/olsrd_txtinfo.so.0.1
Reading symbols from /usr/lib/olsrd_httpinfo.so.0.1...done.
Loaded symbols for /usr/lib64/olsrd_httpinfo.so.0.1
Core was generated by `./olsrd -f /etc/olsrd.conf'.
Program terminated with signal 11, Segmentation fault.
[New process 9293]
#0  0x00007f4dbe7cdd25 in memcpy () from /lib/libc.so.6
(gdb) bt
#0  0x00007f4dbe7cdd25 in memcpy () from /lib/libc.so.6
#1  0x000000000042bde9 in olsr_netlink_addreq (req=0x7fffc70ef300,  
type=4, data=0x9c, len=4)
     at src/linux/kernel_routes.c:62
#2  0x000000000042c19f in olsr_netlink_route (rt=0x7139d0, family=2  
'\002', rttable=254 'รพ', cmd=25)
     at src/linux/kernel_routes.c:116
#3  0x000000000042c59a in olsr_ioctl_del_route (rt=0x7139d0) at src/ 
linux/kernel_routes.c:254
#4  0x00000000004250d3 in olsr_delete_kernel_route (rt=0x7139d0) at  
src/process_routes.c:162
#5  0x00000000004251dd in olsr_del_kernel_routes (head_node=0x640030)  
at src/process_routes.c:285
#6  0x000000000042588d in olsr_update_kernel_routes () at src/ 
process_routes.c:389
#7  0x0000000000420660 in olsr_calculate_routing_table () at src/ 
olsr_spf.c:494
#8  0x00000000004181d3 in olsr_process_changes () at src/olsr.c:175
#9  0x0000000000428ccc in olsr_scheduler () at src/scheduler.c:389
#10 0x0000000000413bb7 in main (argc=3, argv=0x7fffc70f09b8) at src/ 
main.c:358

(gdb) up
#1  0x000000000042bde9 in olsr_netlink_addreq (req=0x7fffc70ef300,  
type=4, data=0x9c, len=4)
     at src/linux/kernel_routes.c:62
62        memcpy(RTA_DATA(rta), data, len);
(gdb) p data
$1 = (const void *) 0x9c
(gdb) p len
$2 = 4
(gdb) p rta
$3 = (struct rtattr *) 0x7fffc70ef334
(gdb) p *rta
$4 = {rta_len = 8, rta_type = 4}
(gdb)
(spam-protected):~/olsrd-current/olsrd-henning-unifiedcodeparser$ ps auxww  
| grep olsr
aaron    12850  0.0  0.0   3944   648 pts/3    S+   20:54   0:00 grep  
olsr
(spam-protected):~/olsrd-current/olsrd-henning-unifiedcodeparser$ 



More information about the Olsr-dev mailing list