#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@…):
same version, another coredump:
{{{
bastian@server1:~/openwrt$ scripts/remote-gdb
r43589.ar71xx.netifd.1829.11.1418526054.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 1829]
Core was generated by `/sbin/netifd'.
Program terminated with signal 11, Segmentation fault.
#0 0x77a96e34 in malloc (bytes=<optimized out>) at libc/stdlib/malloc-
standard/malloc.c:957
957 if (size == nb) {
(gdb) bt full
#0 0x77a96e34 in malloc (bytes=<optimized out>) at libc/stdlib/malloc-
standard/malloc.c:957
__infunc_pthread_cleanup_buffer = {__routine = 0x77aa04ac
<pthread_mutex_unlock>, __arg = 0x77ab8280 <__malloc_lock>, __canceltype =
4340756, __prev = 0x2}
av = 0x77abcfec <__malloc_state>
nb = 640
idx = 37
bin = <optimized out>
fb = <optimized out>
victim = 0xb73358
size = 8
victim_index = <optimized out>
remainder = <optimized out>
remainder_size = <optimized out>
block = <optimized out>
bit = <optimized out>
map = <optimized out>
fwd = <optimized out>
bck = 0xb
retval = <optimized out>
#1 0x77af9440 in blobmsg_format_json_with_cb (attr=0xb6e1d0, list=true,
cb=0x0, priv=0x0, indent=-1) at /home/bastian/openwrt/build_dir/target-
mips_34kc_uClibc-0.9.33.2/libubox-2014-11-23/blobmsg_json.c:299
s = {len = 632, pos = 11965288, buf = 0xb69374 "\203",
custom_format = 0x40bed7 <blobmsg_add_blob+42>, priv = 0x423c14 <b>,
indent = false, indent_level = 11965294}
array = <optimized out>
#2 0x0040c27a in blobmsg_format_json (list=true, attr=<optimized out>) at
/home/bastian/openwrt/staging_dir/target-
mips_34kc_uClibc-0.9.33.2/usr/include/libubox/blobmsg_json.h:37
No locals.
#3 wireless_device_run_handler (wdev=wdev@entry=0xb6a380,
up=up@entry=false) at /home/bastian/openwrt/build_dir/target-
mips_34kc_uClibc-0.9.33.2/netifd-2014-12-08/wireless.c:244
action = 0x4107f0 "teardown"
argv = {0x0, 0x0, 0xe <Address 0xe out of bounds>, 0x77a7d2e8
<__GI_sprintf+56> "\217\277", 0xb6a380 "", 0x40bdd7
<wireless_close_script_proc_fd+22> "@\230\214\032"}
i = 0
fds = {-1, -1}
__func__ = "wireless_device_run_handler"
#4 0x0040c4b0 in __wireless_device_set_down (wdev=0xb6a380) at
/home/bastian/openwrt/build_dir/target-
mips_34kc_uClibc-0.9.33.2/netifd-2014-12-08/wireless.c:355
wdev = 0xb6a380
#5 0x0040c4ee in wireless_device_retry_setup (wdev=<optimized out>) at
/home/bastian/openwrt/build_dir/target-
mips_34kc_uClibc-0.9.33.2/netifd-2014-12-08/wireless.c:384
wdev = <optimized out>
#6 0x0040c562 in wireless_device_check_script_tasks (timeout=0xb6a4d4) at
/home/bastian/openwrt/build_dir/target-
mips_34kc_uClibc-0.9.33.2/netifd-2014-12-08/wireless.c:620
wdev = 0xb6a380
proc = 0xb6a4c0
tmp = 0xb6a4c0
restart = true
__func__ = "wireless_device_check_script_tasks"
#7 0x77b4e764 in uloop_process_timeouts (tv=<optimized out>) at
/home/bastian/openwrt/build_dir/target-
mips_34kc_uClibc-0.9.33.2/libubox-2014-11-23/uloop.c:622
t = 0xb6a4d4
#8 uloop_run () at /home/bastian/openwrt/build_dir/target-
mips_34kc_uClibc-0.9.33.2/libubox-2014-11-23/uloop.c:658
recursive_calls = 1
tv = {tv_sec = 86354, tv_usec = 470196}
#9 0x00402466 in main (argc=<optimized out>, argv=<optimized out>) at
/home/bastian/openwrt/build_dir/target-
mips_34kc_uClibc-0.9.33.2/netifd-2014-12-08/main.c:340
socket = <optimized out>
ch = <optimized out>
(gdb)
}}}
--
Ticket URL: <https://dev.openwrt.org/ticket/18204#comment:11>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets