#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@…):
r43056 seems still affected:
{{{
bastian@server1:~/openwrt$ scripts/remote-gdb
r43056.ar71xx.netifd.1681.11.1414293550.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 1681]
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:34
34 c1 = (unsigned char) *s1++;
(gdb) bt full
#0 __GI_strcmp (p1=<optimized out>, p2=<optimized out>) at
libc/string/generic/strcmp.c:34
s1 = <optimized out>
s2 = <optimized out>
c1 = 0 '\000'
c2 = <optimized out>
#1 0x773ec0e8 in lookup_tzname (key=0x77434f40 <_time_tzinfo+16> "CET")
at libc/misc/time/time.c:745
len = <optimized out>
p = 0x71000c
#2 __time_localtime_tzi (timer=0x7ff65c60, result=0x7ff657f8,
tzi=0x77434f30 <_time_tzinfo>) at libc/misc/time/time.c:750
x = {1414901950}
offset = <optimized out>
days = <optimized out>
dst = 0
#3 0x773ea5ec in __GI_localtime_r (timer=0x7ff65c60, result=0x7ff657f8)
at libc/misc/time/time.c:586
__infunc_pthread_cleanup_buffer = {__routine = 0x774184ac
<pthread_mutex_unlock>, __arg = 0x77430050 <_time_tzlock>, __canceltype =
0, __prev = 0x75}
#4 0x773ea440 in __GI_ctime (t=0x7ff65c60) at libc/misc/time/time.c:484
xtm = {tm_sec = 10, tm_min = 19, tm_hour = 4, tm_mday = 26, tm_mon
= 9, tm_year = 114, tm_wday = 0, tm_yday = 298, tm_isdst = 0, tm_gmtoff =
3600, tm_zone = 0x7741c71c <utc_string> "UTC"}
#5 0x773e9574 in __GI_vsyslog (pri=29, fmt=0x40efc8 "%s (%d): %s\n",
ap=0x7ff65cd0) at libc/misc/syslog/syslog.c:219
__infunc_pthread_cleanup_buffer = {__routine = 0x774184ac
<pthread_mutex_unlock>, __arg = 0x77430ef8 <mylock>, __canceltype =
2146852104, __prev = 0xffffffff}
__infunc_need_locking = 1
p = <optimized out>
last_chr = <optimized out>
head_end = <optimized out>
end = <optimized out>
stdp = <optimized out>
now = 1414293550
fd = <optimized out>
saved_errno = 11
rc = <optimized out>
tbuf =
"\000\000\000\000\000\000\000\000\177\366X\310\000@\373PwC\203\240\000\000\000\bwC\203\240\000\000\000\000\000@\370\375\377\377\377\377\000\000\000\000\000\000\000swC\203\240\000\000\000
\000\000\000\000\000\000\000\001\000\000\000\023\000\000\001\000wC\203\240\000\000\000\bwN\026PwL\244P\000\000\000\b\000\000\000\bwC\203\240wK\n\207wN\026P\177\366Z<wN\026P\000\000\000\000\000\000\000\000\000\300\340$wC\203\240wA\336\204wC\203\240\000\000\000\b\000\000\000\000\000\000\000\000\177\366Z\300wA\312?\000\000\000\004w?\364\244\000\000\000\b\000\000\000\bwC\203\240\000\000\000\000\000\000\000\004\000\000\000\v\177\366ZS\000\000\000\000\000\000\000\000"...
#6 0x004025d6 in netifd_log_message (priority=priority@entry=2,
format=format@entry=0x40efc8 "%s (%d): %s\n") at
/home/bastian/openwrt/build_dir/target-
mips_34kc_uClibc-0.9.33.2/netifd-2014-10-24/main.c:74
vl = 0x7ff65cd0
#7 0x0040264c in netifd_process_log_read_cb (s=0xc0cdbc, bytes=<optimized
out>) at /home/bastian/openwrt/build_dir/target-
mips_34kc_uClibc-0.9.33.2/netifd-2014-10-24/main.c:110
newline = <optimized out>
proc = 0xc0cd98
log_prefix = 0xc0cc24 "cfg104d8f"
data = 0xc09ed8 "Sending renew..."
len = 17
#8 0x774c70ee in ustream_fill_read (s=<optimized out>, len=<optimized
out>) at /home/bastian/openwrt/build_dir/target-
mips_34kc_uClibc-0.9.33.2/libubox-2014-10-14/ustream.c:316
buf = <optimized out>
n = <optimized out>
maxlen = <optimized out>
#9 0x774c7544 in ustream_fd_read_pending (more=<synthetic pointer>,
sf=0xc0cdbc) at /home/bastian/openwrt/build_dir/target-
mips_34kc_uClibc-0.9.33.2/libubox-2014-10-14/ustream-fd.c:76
s = 0xc0cdbc
buflen = 4096
len = <optimized out>
buf = <optimized out>
#10 __ustream_fd_poll (sf=0xc0cdbc, events=<optimized out>) at
/home/bastian/openwrt/build_dir/target-
mips_34kc_uClibc-0.9.33.2/libubox-2014-10-14/ustream-fd.c:119
s = 0xc0cdbc
more = false
#11 0x774c75e2 in ustream_uloop_cb (fd=<optimized out>, events=<optimized
out>) at /home/bastian/openwrt/build_dir/target-
mips_34kc_uClibc-0.9.33.2/libubox-2014-10-14/ustream-fd.c:140
sf = <optimized out>
#12 0x774c67d6 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 = 0xc0ce44, events = 0}
events = <optimized out>
cur = <optimized out>
fd = 0xc0ce44
#13 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 = 52251, tv_usec = 797389}
#14 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:4>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets