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

Comment (by bittorf@…):

 another one for r43738

 {{{
 bastian@gcc20:~/openwrt$ scripts/remote-gdb
 r43738.ar71xx.netifd.1612.11.1419995201.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 1612]
 Core was generated by `/sbin/netifd'.
 Program terminated with signal 11, Segmentation fault.
 #0  malloc (bytes=<optimized out>) at libc/stdlib/malloc-
 standard/malloc.c:998
 998             bck->fd = victim;
 (gdb) bt full
 #0  malloc (bytes=<optimized out>) at libc/stdlib/malloc-
 standard/malloc.c:998
         av = 0x77170fec <__malloc_state>
         nb = 16
         idx = 2
         bin = <optimized out>
         fb = <optimized out>
         victim = 0xa30890
         size = <optimized out>
         victim_index = <optimized out>
         remainder = <optimized out>
         remainder_size = <optimized out>
         block = <optimized out>
         bit = <optimized out>
         map = <optimized out>
         fwd = 0xa336a0
         bck = 0x124
         retval = <optimized out>
 #1  0x7713d8f4 in __GI_strdup (s1=0xa2cb30 "lo") at
 libc/string/strdup.c:24
         s = <optimized out>
         l = 3
 #2  0x771d98ce in uci_array_to_blob (type=<optimized out>, o=0xa2cb10,
 b=0x423b94 <b>) at /home/bastian/openwrt/build_dir/target-
 mips_34kc_uClibc-0.9.33.2/uci-2014-04-11.1/blob.c:78
         e = <optimized out>
         str = <optimized out>
         next = 0x7721d860 <Address 0x7721d860 out of bounds>
         word = <optimized out>
 #3  __uci_element_to_blob (p=<optimized out>, e=<optimized out>,
 b=<optimized out>) at /home/bastian/openwrt/build_dir/target-
 mips_34kc_uClibc-0.9.33.2/uci-2014-04-11.1/blob.c:125
         element_type = <optimized out>
         types = 2
         i = 1
         ret = 0
         attr = <optimized out>
 #4  __uci_to_blob (p=<optimized out>, s=<optimized out>, b=<optimized
 out>) at /home/bastian/openwrt/build_dir/target-
 mips_34kc_uClibc-0.9.33.2/uci-2014-04-11.1/blob.c:147
         e = 0xa2cb10
         ret = 0
 #5  uci_to_blob (b=<optimized out>, s=<optimized out>, p=<optimized out>)
 at /home/bastian/openwrt/build_dir/target-
 mips_34kc_uClibc-0.9.33.2/uci-2014-04-11.1/blob.c:159
         ret = 0
         i = <optimized out>
 #6  0x00407f3a in config_parse_interface (s=0xa2cad8, alias=<optimized
 out>) at /home/bastian/openwrt/build_dir/target-
 mips_34kc_uClibc-0.9.33.2/netifd-2014-12-23/config.c:134
         type = <optimized out>
         config = <optimized out>
         dev = 0xa2e2f8
         iface = <optimized out>
         bridge = false
         alias = false
         s = 0xa2cad8
         disabled = <optimized out>
 #7  0x004080e4 in config_init_interfaces () at
 /home/bastian/openwrt/build_dir/target-
 mips_34kc_uClibc-0.9.33.2/netifd-2014-12-23/config.c:248
         s = 0xa2cad8
         e = 0xa2cad8
 #8  config_init_all () at /home/bastian/openwrt/build_dir/target-
 mips_34kc_uClibc-0.9.33.2/netifd-2014-12-23/config.c:415
 No locals.
 #9  0x00402a00 in netifd_reload () at /home/bastian/openwrt/build_dir
 /target-mips_34kc_uClibc-0.9.33.2/netifd-2014-12-23/main.c:216
 No locals.
 #10 0x0040a4e0 in netifd_dev_status (ctx=0x1, obj=<optimized out>,
 req=<optimized out>, method=<optimized out>, msg=0x20000) at
 /home/bastian/openwrt/build_dir/target-
 mips_34kc_uClibc-0.9.33.2/netifd-2014-12-23/ubus.c:233
         dev = 0x0
         tb = {0x7f959a48}
 #11 0x00000000 in ?? ()
 No symbol table info available.
 (gdb)
 }}}

--
Ticket URL: <https://dev.openwrt.org/ticket/18204#comment:12>
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