#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@…):

 here again with r43589.

 {{{
 bastian@server1:~/openwrt$ scripts/remote-gdb
 r43589.ar71xx.odhcp6c.3444.6.1418695225.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.
 warning: exec file is newer than core file.
 [New LWP 3444]
 Core was generated by `odhcp6c -s /lib/netifd/dhcpv6.script -P0 -t120
 pppoe-wan'.
 Program terminated with signal 6, Aborted.
 #0  0x773d97d0 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  0x773d97d0 in __GI_raise (sig=6) at
 libpthread/nptl/sysdeps/unix/sysv/linux/raise.c:67
         err = 0
         result_var = 0
         pd = 0x77430000
         pid = 3444
         selftid = 3444
         res = <optimized out>
 #1  0x773d27c8 in __GI_abort () at libc/stdlib/abort.c:89
         sigs = {__val = {32, 0, 0, 0}}
 #2  0x773c848c in map_newlink (idx=<optimized out>, ifas=0x8115f0,
 map=0x7ffc6250, max=10) at libc/inet/ifaddrs.c:339
         i = <optimized out>
 #3  0x773c8eb0 in __GI_getifaddrs (ifap=0x7ffc6310) at
 libc/inet/ifaddrs.c:579
         ifam = 0x811540
         rta = <optimized out>
         rtasize = <optimized out>
         ifa_index = 0
         nlh = 0x811530
         size = 144
         nh = {fd = 8, pid = -4102, seq = 1418695226, nlm_list = 0x80e050,
 end_ptr = 0x8115c8}
         nlp = 0x811370
         ifas = 0x8115f0
         i = <optimized out>
         newlink = 10
         newaddr = <optimized out>
         newaddr_idx = 12
         map_newlink_data = 0x7ffc6250
         ifa_data_size = <optimized out>
         ifa_data_ptr = 0x81258c ""
         result = 0
 #4  0x00404bb4 in ra_process () at /home/bastian/openwrt/build_dir/target-
 mips_34kc_uClibc-0.9.33.2/odhcp6c-2014-11-28/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\005\000\000\000\000\000\000\000\066\000\000\000\000\000\000\000\200",
 '\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\374i\270\000\000\000\016\000\200\340\060\000\000\000\032\177\374i\360\000\000\000\000\000\200\340\030\000\000\000\016\000\000\000\000\000\000\000\000\177\374i\320",
 '\000' <repeats 12 times>, "\177\374i\314", '\000' <repeats 12 times>,
 
"\177\374i\334\000\000\000\004\177\374f\370\000\000\000\024\177\374i\250\000\000\000\020\177\374f\270\000\000\000\000\177\374f\270"
         adv = 0x7ffc6310
         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  0x00402222 in odhcp6c_signal_process () at
 /home/bastian/openwrt/build_dir/target-
 mips_34kc_uClibc-0.9.33.2/odhcp6c-2014-11-28/src/odhcp6c.c:486
         ra_updated = <optimized out>
 #6  0x00403aa4 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-11-28/src/dhcpv6.c:563
         buf = "N\251\264i*\r
 
I\177\374j\200wA\374Xw?\200\000w?\201,wC\260\000wA\374XwC\260\000\177\374k\000w8\260\000wC\022\260\177\374j\250wA\375Hw?\200\000wC\021\\\177\374j\270wA\375HwC\260\000\000\000\000\000wC\260\000wC\000\000wC\000\000wC\022\260wC\022\230\177\374k\000\177\374j\340wB\v<wC\021D\177\374k\020wC\260\000wB\v<\000\000\000\000\000\000\000\000wC\260",
 '\000' <repeats 11 times>,
 "*\031\000\000\000\000w?#\260w8\262\204w9\035\300w8\324\340", '\000'
 <repeats 14 times>,
 "*T\000\000\000\020\000\004\370\354\000\000\000\000\000\000"...
         t = <optimized out>
         opt_end = <optimized out>
         cmsg_buf =
 
"\177\322\361xwB&0\000B:p\000Al`\000Aj\250\177\374x\020\000\000\000\004\000Aj\224"
         msg = {msg_name = 0x7ffc718c, msg_namelen = 28, msg_iov =
 0x7ffc71d0, msg_iovlen = 1, msg_control = 0x7ffc7150, msg_controllen = 32,
 msg_flags = 0}
         pktinfo = 0x0
         opt = <optimized out>
         iov = {iov_base = 0x7ffc6a70, iov_len = 1536}
         addr = {sin6_family = 30527, sin6_port = 8832, sin6_flowinfo =
 2147250592, 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 = 127, tv_usec = 404000}
         round_end = 82004544
         rc = 177 '\261'
         timeout = <optimized out>
         retx = 0x416984 <dhcpv6_retx+24>
         start = 76567
         round_start = 81895420
         elapsed = 81800573
         trid = "\177\347\321"
         len = -1
         rto = 127404
 #7  0x00401d10 in main (argc=<optimized out>, argv=<optimized out>) at
 /home/bastian/openwrt/build_dir/target-
 mips_34kc_uClibc-0.9.33.2/odhcp6c-2014-11-28/src/odhcp6c.c:291
         mode = <optimized out>
         ia_pd_len = <optimized out>
         ia_na_len = <optimized out>
         server_id_len = <optimized out>
         pidfile = 0x0
         script = 0x7ffc7f39 "/lib/netifd/dhcpv6.script"
         l = <optimized out>
         buf =
 
"w?\212\300w?\234\300\000\000\000\000\000\000\000\000wC\020\024\000@\020\374\000@\n\301\177\374v\300\000B:p\177\322\361w\000\000\017\367w&WXwC\260\000wA\345\000wA\304HwA\311(\000\000\000\000\000\000\000\000\177\374\177.w?#\260\000\000\004\205w9G\211\000\000\004V\000\000\001\377\000\000\017\367w&WX\177\374w\020wA\343\350w9G\211",
 '\000' <repeats 17 times>, "A"
         optpos = 0x7ffc7f2e "odhcp6c"
         opttype = 4348
         optlen = 64
         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 = 0x7ffc7f5d "pppoe-wan"
 (gdb)
 }}}

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