#18204: netifd crash / r43027 / ar71xx
------------------------+------------------------
  Reporter:  bittorf@…  |      Owner:  developers
      Type:  defect     |     Status:  new
  Priority:  normal     |  Milestone:
 Component:  packages   |    Version:  Trunk
Resolution:             |   Keywords:
------------------------+------------------------

Comment (by bittorf@…):

 another one:

 {{{
 bastian@server1:~/openwrt$ scripts/remote-gdb
 r43056.ar71xx.netifd.1664.11.1414292786.core staging_dir/target-
 mips_34kc_uClibc-0.9.33.2/root-ar71xx/sbin/netifd
 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 1664]
 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 = 0xa29979 "ac80211"
         s2 = 0xf6c6c7a <Address 0xf6c6c7a out of bounds>
         c1 = 109 'm'
         c2 = 32 ' '
 #1  0x77cfb04e 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-10-14/avl-cmp.c:22
 No locals.
 #2  0x77cfa972 in avl_find_rec (node=<optimized out>, key=<optimized out>,
 comp=0x411c60 <ubus_add_object@plt>, cmp_ptr=<optimized out>,
 cmp_result=0x7fc97668) at /home/bastian/openwrt/build_dir/target-
 mips_34kc_uClibc-0.9.33.2/libubox-2014-10-14/avl.c:357
         diff = <optimized out>
 #3  0x77cfad54 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-10-14/avl.c:122
         node = <optimized out>
         diff = 10656088
 #4  0x00407f76 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=0xa29910) at
 /home/bastian/openwrt/build_dir/target-
 mips_34kc_uClibc-0.9.33.2/netifd-2014-10-24/config.c:324
         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-24/config.c:365
         s = 0xa29910
         wdev = <optimized out>
         e = 0xa29910
         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-24/config.c:419
 No locals.
 #8  0x00402790 in netifd_reload () at /home/bastian/openwrt/build_dir
 /target-mips_34kc_uClibc-0.9.33.2/netifd-2014-10-24/main.c:216
 No locals.
 #9  0x0040a040 in netifd_handle_reload (ctx=<optimized out>,
 obj=<optimized out>, req=<optimized out>, method=<optimized out>,
 msg=0xa17098) at /home/bastian/openwrt/build_dir/target-
 mips_34kc_uClibc-0.9.33.2/netifd-2014-10-24/ubus.c:47
 No locals.
 #10 0x77ce6f3c 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 = 4219899756, peer = 4281851990, seq = 2, deferred =
 false, fd = -1}
         method = 1
         ret = <optimized out>
         no_reply = false
 #11 0x77ce7094 in ubus_process_obj_msg (ctx=<optimized out>, buf=0xa17068)
 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 = 0xa17068
         attrbuf = 0x77cf85c0 <attrbuf>
         objid = 4219899756
         prev_data = 0xa17080
 #12 0x77ce63fe in ubus_process_msg (ctx=0xa17008, buf=0xa17068,
 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 0x77ce6c78 in ubus_handle_data (u=0xa17034, 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 = 0xa17008
         recv_fd = -1
 #14 0x77cfc7d6 in uloop_run_events (timeout=<optimized out>) at
 /home/bastian/openwrt/build_dir/target-
 mips_34kc_uClibc-0.9.33.2/libubox-2014-10-14/uloop.c:358
         stack_cur = {next = 0x0, fd = 0xa17034, events = 0}
         events = <optimized out>
         cur = <optimized out>
         fd = 0xa17034
 #15 uloop_run () at /home/bastian/openwrt/build_dir/target-
 mips_34kc_uClibc-0.9.33.2/libubox-2014-10-14/uloop.c:665
         recursive_calls = 1
         tv = {tv_sec = 54166, tv_usec = 745077}
 #16 0x00402246 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-24/main.c:340
         socket = <optimized out>
         ch = <optimized out>
 (gdb)
 }}}

--
Ticket URL: <https://dev.openwrt.org/ticket/18204#comment:5>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets

Reply via email to