#18212: odhcp6c is crashing on ar71xx / r43027
------------------------+------------------------
Reporter: bittorf@… | Owner: developers
Type: defect | Status: reopened
Priority: normal | Milestone:
Component: packages | Version: Trunk
Resolution: | Keywords:
------------------------+------------------------
Comment (by bittorf@…):
another one with r44011 - seems it happens at 4.04 o'clock - when pppoe
reconnects nightly (german telekom), but the crash is not reliable. uptime
is 7 days and it only happens 1 time.
{{{
bastian@gcc20:~/openwrt$ scripts/remote-gdb
r44011.ar71xx.odhcp6c.28064.6.1421723058.core staging_dir/target-
mips_34kc_uClibc-0.9.33.2/root-ar71xx/usr/sbin/odhcp6c
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/usr/sbin/odhcp6c...done.
[New LWP 28064]
Core was generated by `odhcp6c -s /lib/netifd/dhcpv6.script -P0 -t120
pppoe-wan'.
Program terminated with signal 6, Aborted.
#0 0x77d2f7d0 in __GI_raise (sig=6) at
libpthread/nptl/sysdeps/unix/sysv/linux/raise.c:67
67 int res = INLINE_SYSCALL (tgkill, 3, pid, selftid, sig);
(gdb) bt full
#0 0x77d2f7d0 in __GI_raise (sig=6) at
libpthread/nptl/sysdeps/unix/sysv/linux/raise.c:67
err = 0
result_var = 0
pd = 0x77d87000
pid = 28064
selftid = 28064
res = <optimized out>
#1 0x77d287c8 in __GI_abort () at libc/stdlib/abort.c:89
sigs = {__val = {32, 0, 0, 0}}
#2 0x77d1e48c in map_newlink (idx=<optimized out>, ifas=0xad05f0,
map=0x7f80eae8, max=8) at libc/inet/ifaddrs.c:339
i = <optimized out>
#3 0x77d1eeb0 in __GI_getifaddrs (ifap=0x7f80eba0) at
libc/inet/ifaddrs.c:579
ifam = 0xad0178
rta = <optimized out>
rtasize = <optimized out>
ifa_index = 0
nlh = 0xad0168
size = 512
nh = {fd = 8, pid = -4337, seq = 1421723059, nlm_list = 0xacd050,
end_ptr = 0xad05c8}
nlp = 0xad0158
ifas = 0xad05f0
i = <optimized out>
newlink = 8
newaddr = <optimized out>
newaddr_idx = 0
map_newlink_data = 0x7f80eae8
ifa_data_size = <optimized out>
ifa_data_ptr = 0xad1428 ""
result = 0
#4 0x00404c14 in ra_process () at /home/bastian/openwrt/build_dir/target-
mips_34kc_uClibc-0.9.33.2/odhcp6c-2014-12-10/src/ra.c:265
ifaddr = 0x0
ifa = <optimized out>
found = false
changed = false
has_lladdr = false
buf =
"\000\000\000\000\000\000\000\003\000\000\000\000\000\000\000\004\000\000\000\000\000\000\000\066\000\000\000\000\000\000\000D",
'\000' <repeats 152 times>,
"\002\220\000\032\000x\000\002\000t\000\001\000\000\000\001"...
cmsg_buf = '\000' <repeats 20 times>,
"\177\200\362H\000\000\000\016\000\254\320\060\000\000\000\032\177\200\362\200\000\000\000\000\000\254\320\030\000\000\000\016\000\000\000\000\000\000\000\000\177\200\362`",
'\000' <repeats 12 times>, "\177\200\362\\", '\000' <repeats 12 times>,
"\177\200\362l\000\000\000\004\177\200\357\210\000\000\000\024\177\200\362\070\000\000\000\020\177\200\357H\000\000\000\000\177\200\357H"
adv = 0x7f80eba0
entry = {router = {__in6_u = {__u6_addr8 = '\000' <repeats 15
times>, __u6_addr16 = {0, 0, 0, 0, 0, 0, 0, 0}, __u6_addr32 = {0, 0, 0,
0}}}, length = 0, priority = 0, target = {__in6_u = {__u6_addr8 = '\000'
<repeats 15 times>, __u6_addr16 = {0, 0, 0, 0, 0, 0, 0, 0}, __u6_addr32 =
{0, 0, 0, 0}}}, valid = 0, preferred = 0, t1 = 0, t2 = 0, class = 0, iaid
= 0}
any = {__in6_u = {__u6_addr8 = '\000' <repeats 15 times>,
__u6_addr16 = {0, 0, 0, 0, 0, 0, 0, 0}, __u6_addr32 = {0, 0, 0, 0}}}
#5 0x00402232 in odhcp6c_signal_process () at
/home/bastian/openwrt/build_dir/target-
mips_34kc_uClibc-0.9.33.2/odhcp6c-2014-12-10/src/odhcp6c.c:484
ra_updated = <optimized out>
#6 0x00403b04 in dhcpv6_request (type=type@entry=DHCPV6_MSG_SOLICIT) at
/home/bastian/openwrt/build_dir/target-
mips_34kc_uClibc-0.9.33.2/odhcp6c-2014-12-10/src/dhcpv6.c:574
buf =
"\364#k\227\003\302r\213\177\200\363\020w\327\\Xw\324\340\000w\324\341,w\331\020\000w\327\\Xw\331\020\000\177\200\363\220w\316\020\000wآ\260\177\200\363\070w\327]Hw\324\340\000wء\\\177\200\363Hw\327]Hw\331\020\000\000\000\000\000w\331\020\000w\330p\000w\330p\000wآ\260wآ\230\177\200\363\220\177\200\363pw\327k<wءD\177\200\363\240w\331\020\000w\327k<\000\000\000\000\000\000\000\000w\331\020",
'\000' <repeats 11 times>,
"*\031\000\000\000\000wԃ\260w\316\022\204w\316}\300w\316\064\340", '\000'
<repeats 14 times>,
"*T\000\000\000\020\000\004\370\354\000\000\000\000\000\000*\036\000\000\000\000\000\000\000\000"...
t = <optimized out>
opt_end = <optimized out>
cmsg_buf =
"\177\344\341\250w׆0\000B:p\000Al\320\000Ak\030\177\201\000\240\000\000\000\004\000Ak\004"
msg = {msg_name = 0x7f80fa1c, msg_namelen = 28, msg_iov =
0x7f80fa60, msg_iovlen = 1, msg_control = 0x7f80f9e0, msg_controllen = 32,
msg_flags = 0}
pktinfo = 0x0
opt = <optimized out>
iov = {iov_base = 0x7f80f300, iov_len = 1536}
addr = {sin6_family = 30676, sin6_port = 33408, sin6_flowinfo =
2139159088, sin6_addr = {__in6_u = {__u6_addr8 =
"\000\000\000\034\000\000\000\000\000\000\000\000\000\n\000", __u6_addr16
= {0, 28, 0, 0, 0, 0, 10, 0}, __u6_addr32 = {28, 0, 0, 655360}}},
sin6_scope_id = 0}
tv = {tv_sec = 116, tv_usec = 532000}
round_end = 173006852
rc = 215 '\327'
timeout = <optimized out>
retx = 0x4169f4 <dhcpv6_retx+24>
start = 86563389
round_start = 172961641
elapsed = 86326931
trid = "K\250\026"
len = -1
rto = 116532
#7 0x00401d1e in main (argc=<optimized out>, argv=<optimized out>) at
/home/bastian/openwrt/build_dir/target-
mips_34kc_uClibc-0.9.33.2/odhcp6c-2014-12-10/src/odhcp6c.c:287
mode = <optimized out>
ia_pd_len = <optimized out>
ia_na_len = <optimized out>
server_id_len = <optimized out>
pidfile = 0x0
script = 0x7f810f39 "/lib/netifd/dhcpv6.script"
l = <optimized out>
buf =
"w\324\352\300w\324\374\300\000\000\000\000\000\000\000\000w\330\240\024\000@\021\034\000@\n\325\177\200\377P\000B:p\177\344\341\247\000\000\017\367w\272\247Xw\331\020\000w\327E\000w\327$Hw\327)(\000\000\000\000\000\000\000\000\177\201\017.wԃ\260\000\000\004\205wΧ\211\000\000\004V\000\000\001\377\000\000\017\367w\272\247X\177\200\377\240w\327C\350wΧ\211",
'\000' <repeats 17 times>, "A"
optpos = 0x78fefcf8 <Address 0x78fefcf8 out of bounds>
opttype = 3886
optlen = 32641
ia_na_mode = IA_MODE_TRY
ia_pd_mode = IA_MODE_TRY
ia_pd_iaid_index = <optimized out>
ifid = {__in6_u = {__u6_addr8 = '\000' <repeats 15 times>,
__u6_addr16 = {0, 0, 0, 0, 0, 0, 0, 0}, __u6_addr32 = {0, 0, 0, 0}}}
sol_timeout = 120
verbosity = 0
help = <optimized out>
daemonize = false
logopt = 1
c = <optimized out>
client_options = <optimized out>
ifname = 0x7f810f5d "pppoe-wan"
(gdb)
}}}
--
Ticket URL: <https://dev.openwrt.org/ticket/18212#comment:7>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets