#18118: netifd crash / ppp + tap involved / r42852
-----------------------+------------------------
Reporter: bittorf@… | Owner: developers
Type: defect | Status: new
Priority: normal | Milestone:
Component: packages | Version: Trunk
Keywords: |
-----------------------+------------------------
it happened on a node with running ppp-connection and a manual run of
"ifup mytunnel" which is defined like:
{{{
network.mytunnel=interface
network.mytunnel.ifname=tap0
network.mytunnel.proto=static
network.mytunnel.ipaddr=10.63.21.121
network.mytunnel.netmask=255.255.255.252
network.mytunnel.mtu=1450
}}}
here the remote-gdb backtrace:
{{{
bastian@server1:~/openwrt$ scripts/remote-gdb
r42852.ar71xx.netifd.1680.11.1413208663.core staging_dir/target-
mips_34kc_uClibc-0.9.33.2/root-ar71xx/sbin/netifd
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "de_DE.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Using target mips_34kc (uClibc-0.9.33.2)
GNU gdb (Linaro GDB) 7.6-2013.05
Copyright (C) 2013 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 "--host=x86_64-linux-gnu --target=mips-openwrt-
linux-uclibc".
For bug reporting instructions, please see:
<http://bugs.launchpad.net/gdb-linaro/>...
Reading symbols from /home/bastian/openwrt/staging_dir/target-
mips_34kc_uClibc-0.9.33.2/root-ar71xx/sbin/netifd...done.
[New LWP 1680]
Core was generated by `/sbin/netifd'.
Program terminated with signal 11, Segmentation fault.
#0 __GI_strcmp (p1=<optimized out>, p2=<optimized out>) at
libc/string/generic/strcmp.c:36
36 if (c1 == '\0')
(gdb) bt full
#0 __GI_strcmp (p1=<optimized out>, p2=<optimized out>) at
libc/string/generic/strcmp.c:36
s1 = 0x98b011 "ac80211"
s2 = 0x1 <Address 0x1 out of bounds>
c1 = 109 'm'
c2 = 32 ' '
#1 0x77dc619e in avl_strcmp (k1=<optimized out>, k2=<optimized out>,
ptr=<optimized out>) at /home/bastian/openwrt/build_dir/target-
mips_34kc_uClibc-0.9.33.2/libubox-2014-08-04/avl-cmp.c:22
No locals.
#2 0x77dc5ac2 in avl_find_rec (node=<optimized out>, key=<optimized out>,
comp=0x411b60 <ubus_add_object@plt>, cmp_ptr=<optimized out>,
cmp_result=0x7ff9bfa8) at /home/bastian/openwrt/build_dir/target-
mips_34kc_uClibc-0.9.33.2/libubox-2014-08-04/avl.c:357
diff = <optimized out>
#3 0x77dc5ea4 in avl_find (tree=0x423e78 <wireless_drivers>,
key=<optimized out>) at /home/bastian/openwrt/build_dir/target-
mips_34kc_uClibc-0.9.33.2/libubox-2014-08-04/avl.c:122
node = <optimized out>
diff = 10006512
#4 0x00407e7e in __avl_find_element (offset=0, mode=AVL_FIND_EQUAL,
key=<optimized out>, tree=0x423e78 <wireless_drivers>) at
/home/bastian/openwrt/staging_dir/target-
mips_34kc_uClibc-0.9.33.2/usr/include/libubox/avl.h:218
node = 0x0
#5 config_parse_wireless_device (s=0x988118) at
/home/bastian/openwrt/build_dir/target-
mips_34kc_uClibc-0.9.33.2/netifd-2014-10-02/config.c:304
driver_name = <optimized out>
#6 config_init_wireless () at /home/bastian/openwrt/build_dir/target-
mips_34kc_uClibc-0.9.33.2/netifd-2014-10-02/config.c:340
s = 0x988118
wdev = <optimized out>
e = 0x988118
dev_name = <optimized out>
#7 config_init_all () at /home/bastian/openwrt/build_dir/target-
mips_34kc_uClibc-0.9.33.2/netifd-2014-10-02/config.c:394
No locals.
#8 0x00402770 in netifd_reload () at /home/bastian/openwrt/build_dir
/target-mips_34kc_uClibc-0.9.33.2/netifd-2014-10-02/main.c:216
No locals.
#9 0x00409f60 in netifd_handle_reload (ctx=<optimized out>,
obj=<optimized out>, req=<optimized out>, method=<optimized out>,
msg=0x9977c0) at /home/bastian/openwrt/build_dir/target-
mips_34kc_uClibc-0.9.33.2/netifd-2014-10-02/ubus.c:47
No locals.
#10 0x77db1f3c in ubus_process_invoke (ctx=<optimized out>, hdr=<optimized
out>, obj=0x423604 <main_object>, attrbuf=<optimized out>) at
/home/bastian/openwrt/build_dir/target-
mips_34kc_uClibc-0.9.33.2/ubus-2014-09-17/libubus-obj.c:84
req = {object = 2790813388, peer = 1481792577, seq = 2, deferred =
false, fd = -1}
method = 1
ret = <optimized out>
no_reply = false
#11 0x77db2094 in ubus_process_obj_msg (ctx=<optimized out>, buf=0x978068)
at /home/bastian/openwrt/build_dir/target-
mips_34kc_uClibc-0.9.33.2/ubus-2014-09-17/libubus-obj.c:130
cb = <optimized out>
hdr = 0x978068
attrbuf = 0x77dc35c0 <attrbuf>
objid = 2790813388
prev_data = 0x9977a8
#12 0x77db13fe in ubus_process_msg (ctx=0x978008, buf=0x978068,
fd=<optimized out>) at /home/bastian/openwrt/build_dir/target-
mips_34kc_uClibc-0.9.33.2/ubus-2014-09-17/libubus.c:106
No locals.
#13 0x77db1c78 in ubus_handle_data (u=0x978034, events=<optimized out>) at
/home/bastian/openwrt/build_dir/target-
mips_34kc_uClibc-0.9.33.2/ubus-2014-09-17/libubus-io.c:308
ctx = 0x978008
recv_fd = -1
#14 0x77dc78f2 in uloop_run_events (timeout=<optimized out>) at
/home/bastian/openwrt/build_dir/target-
mips_34kc_uClibc-0.9.33.2/libubox-2014-08-04/uloop.c:359
stack_cur = {next = 0x0, fd = 0x978034, events = 0}
events = <optimized out>
cur = <optimized out>
fd = 0x978034
#15 uloop_run () at /home/bastian/openwrt/build_dir/target-
mips_34kc_uClibc-0.9.33.2/libubox-2014-08-04/uloop.c:660
recursive_calls = 1
tv = {tv_sec = 42250, tv_usec = 600253}
#16 0x00402226 in main (argc=<optimized out>, argv=<optimized out>) at
/home/bastian/openwrt/build_dir/target-
mips_34kc_uClibc-0.9.33.2/netifd-2014-10-02/main.c:340
socket = <optimized out>
ch = <optimized out>
(gdb)
}}}
--
Ticket URL: <https://dev.openwrt.org/ticket/18118>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets