#18204: netifd crash / r43027 / ar71xx
-----------------------+------------------------
 Reporter:  bittorf@…  |      Owner:  developers
     Type:  defect     |     Status:  new
 Priority:  normal     |  Milestone:
Component:  packages   |    Version:  Trunk
 Keywords:             |
-----------------------+------------------------
 {{{
 bastian@server1:~/openwrt$ scripts/remote-gdb
 r43027.ar71xx.netifd.1658.11.1414029994.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 1658]
 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:1124
 1124                    goto DONE;
 (gdb) bt full
 #0  malloc (bytes=<optimized out>) at libc/stdlib/malloc-
 standard/malloc.c:1124
         __infunc_pthread_cleanup_buffer = {__routine = 0x76fd84ac
 <pthread_mutex_unlock>, __arg = 0x76ff0280 <__malloc_lock>, __canceltype =
 7939, __prev = 0x0}
         av = 0x76ff4fec <__malloc_state>
         nb = 4104
         idx = <optimized out>
         bin = <optimized out>
         fb = <optimized out>
         victim = 0xbcc0f8
         size = <optimized out>
         victim_index = <optimized out>
         remainder = 0xbcd100
         remainder_size = 796024684
         block = <optimized out>
         bit = 2147483648
         map = <optimized out>
         fwd = <optimized out>
         bck = 0x76ff5310 <__malloc_state+804>
         retval = 0xbcc100
 #1  0x76fb69fc in _stdio_fopen (fname_or_mode=<optimized out>,
 mode=<optimized out>, stream=0xbc69a0, filedes=<optimized out>) at
 libc/stdio/_fopen.c:177
         open_mode = <optimized out>
         i = <optimized out>
 #2  0x7705c41e in uci_open_stream (ctx=<optimized out>,
 filename=<optimized out>, origfilename=<optimized out>, pos=<optimized
 out>, write=false, create=false) at /home/bastian/openwrt/build_dir
 /target-mips_34kc_uClibc-0.9.33.2/uci-2014-04-11.1/util.c:226
         statbuf = {st_dev = 7939, st_pad1 = {0, 0}, st_ino = 123, st_mode
 = 33152, st_nlink = 1, st_uid = 0, st_gid = 0, st_rdev = 0, st_pad2 = {0},
 st_size = 1160, st_pad3 = 0, st_atim = {tv_sec = 1413986727, tv_nsec = 0},
 st_mtim = {tv_sec = 1413986727, tv_nsec = 0}, st_ctim = {tv_sec =
 1413986727, tv_nsec = 0}, st_blksize = 4096, st_blocks = 3, st_pad5 = {0
 <repeats 14 times>}}
         file = 0x0
         fd = 15
         ret = <optimized out>
         flags = <optimized out>
         mode = 384
         name = <optimized out>
         filename2 = 0x0
 #3  0x7705bee4 in uci_file_load (ctx=<optimized out>, name=0x410394
 "network") at /home/bastian/openwrt/build_dir/target-
 mips_34kc_uClibc-0.9.33.2/uci-2014-04-11.1/file.c:867
         __old_trap = {{__jmpbuf = {{__pc = 0x77059f79 <uci_load+52>, __sp
 = 0x7f95c878, __regs = {12335400, 4340636, 2140523472, 1996225600,
 2141594080, 0, 0, 0}, __fp = 0x7fa62190, __gp = 0x76ff83a0, __fpc_csr = 0,
 __fpregs = {0, 0, 0, 0, 0, 0}}}, __mask_was_saved = 0, __saved_mask =
 {__val = {0, 0, 0, 0}}}}
         __val = 0
         package = 0x0
         filename = 0xbc46d0 "/etc/config/network"
         confdir = true
         file = 0x0
 #4  0x77059fae in uci_load (ctx=0xbc3928, name=0x410394 "network",
 package=0x7f95c8b4) at /home/bastian/openwrt/build_dir/target-
 mips_34kc_uClibc-0.9.33.2/uci-2014-04-11.1/libuci.c:215
         p = <optimized out>
 #5  0x0040797a in config_init_package (config=config@entry=0x410394
 "network") at /home/bastian/openwrt/build_dir/target-
 mips_34kc_uClibc-0.9.33.2/netifd-2014-10-20/config.c:234
         ctx = 0xbc3928
         p = 0xbc4110
 #6  0x00407d1c in config_init_all () at /home/bastian/openwrt/build_dir
 /target-mips_34kc_uClibc-0.9.33.2/netifd-2014-10-20/config.c:403
 No locals.
 #7  0x00402770 in netifd_reload () at /home/bastian/openwrt/build_dir
 /target-mips_34kc_uClibc-0.9.33.2/netifd-2014-10-20/main.c:216
 No locals.
 #8  0x0040a020 in netifd_handle_reload (ctx=<optimized out>,
 obj=<optimized out>, req=<optimized out>, method=<optimized out>,
 msg=0xbb2098) at /home/bastian/openwrt/build_dir/target-
 mips_34kc_uClibc-0.9.33.2/netifd-2014-10-20/ubus.c:47
 No locals.
 #9  0x77070f3c 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 = 1832604497, peer = 3839590586, seq = 2, deferred =
 false, fd = -1}
         method = 1
         ret = <optimized out>
         no_reply = false
 #10 0x77071094 in ubus_process_obj_msg (ctx=<optimized out>, buf=0xbb2068)
 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 = 0xbb2068
         attrbuf = 0x770825c0 <attrbuf>
         objid = 1832604497
         prev_data = 0xbb2080
 #11 0x770703fe in ubus_process_msg (ctx=0xbb2008, buf=0xbb2068,
 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.
 #12 0x77070c78 in ubus_handle_data (u=0xbb2034, 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 = 0xbb2008
         recv_fd = -1
 #13 0x770867d6 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 = 0xbb2034, events = 0}
         events = <optimized out>
         cur = <optimized out>
         fd = 0xbb2034
 #14 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 = 43139, tv_usec = 563622}
 #15 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-20/main.c:340
         socket = <optimized out>
         ch = <optimized out>
 (gdb)
 }}}

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