#18212: odhcp6c is crashing on ar71xx / r43027
-----------------------+------------------------
 Reporter:  bittorf@…  |      Owner:  developers
     Type:  defect     |     Status:  new
 Priority:  normal     |  Milestone:
Component:  packages   |    Version:  Trunk
 Keywords:             |
-----------------------+------------------------
 {{{
 bastian@server1:~/openwrt$ scripts/remote-gdb
 r43027.ar71xx.odhcp6c.20237.6.1414116448.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 20237]
 Core was generated by `odhcp6c -s /lib/netifd/dhcpv6.script -P0 -t120
 eth0.2'.
 Program terminated with signal 6, Aborted.
 #0  0x77d717d0 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  0x77d717d0 in __GI_raise (sig=6) at
 libpthread/nptl/sysdeps/unix/sysv/linux/raise.c:67
         err = 0
         result_var = 0
         pd = 0x77dc9000
         pid = 20237
         selftid = 20237
         res = <optimized out>
 #1  0x77d6a7c8 in __GI_abort () at libc/stdlib/abort.c:89
         sigs = {__val = {32, 0, 0, 0}}
 #2  0x77d69d54 in __malloc_consolidate (av=0x77d8efec <__malloc_state>) at
 libc/stdlib/malloc-standard/free.c:225
         fb = <optimized out>
         maxfb = <optimized out>
         p = <optimized out>
         nextp = <optimized out>
         unsorted_bin = 0x77d8f020 <__malloc_state+52>
         first_unsorted = <optimized out>
         nextchunk = <optimized out>
         size = <optimized out>
         nextsize = <optimized out>
         prevsize = <optimized out>
         nextinuse = <optimized out>
         bck = <optimized out>
         fwd = <optimized out>
 #3  0x77d68d98 in malloc (bytes=<optimized out>) at libc/stdlib/malloc-
 standard/malloc.c:908
         __infunc_pthread_cleanup_buffer = {__routine = 0x77d724ac
 <pthread_mutex_unlock>, __arg = 0x77d8a280 <__malloc_lock>, __canceltype =
 4087, __prev = 0x77e44758}
         av = 0x77d8efec <__malloc_state>
         nb = 264
         idx = 32
         bin = <optimized out>
         fb = <optimized out>
         victim = <optimized out>
         size = <optimized out>
         victim_index = <optimized out>
         remainder = <optimized out>
         remainder_size = <optimized out>
         block = <optimized out>
         bit = <optimized out>
         map = <optimized out>
         fwd = <optimized out>
         bck = <optimized out>
         retval = <optimized out>
 #4  0x77d52778 in __GI_open_memstream (bufloc=0x7ffece34,
 sizeloc=0x7ffece30) at libc/stdio/open_memstream.c:139
         cookie = 0xa44390
         fp = <optimized out>
 #5  0x0040128c in s46_to_env (state=state@entry=STATE_S46_MAPE,
 data=data@entry=0x0, len=<optimized out>) at
 /home/bastian/openwrt/build_dir/target-
 mips_34kc_uClibc-0.9.33.2/odhcp6c-2014-10-12/src/script.c:234
         name = 0x405e38 "MAPE"
         str = 0x77d66120 <__GI___dn_expand+48> "\030@"
         strsize = 2010487872
         fp = <optimized out>
         type = <optimized out>
         odata = <optimized out>
         otype = <optimized out>
         olen = <optimized out>
 #6  0x00405210 in script_call (status=status@entry=0x4058b4 "stopped") at
 /home/bastian/openwrt/build_dir/target-
 mips_34kc_uClibc-0.9.33.2/odhcp6c-2014-10-12/src/script.c:377
         buf = <optimized out>
         dns_len = 0
         search_len = 0
         custom_len = 0
         sntp_ip_len = 0
         ntp_ip_len = 0
         ntp_dns_len = 0
         sip_ip_len = 0
         sip_fqdn_len = 0
         aftr_name_len = 0
         cer_len = 0
         addr_len = 0
         s46_mapt_len = 0
         s46_mape_len = 0
         s46_lw_len = 0
         passthru_len = 0
         addr = <optimized out>
         dns = <optimized out>
         search = <optimized out>
         custom = 0x0
         sntp = 0x0
         ntp = 0x0
         ntp_dns = 0x0
         sip = 0x0
         sip_fqdn = 0x0
         aftr_name = 0x0
         cer = 0x0
         s46_mapt = 0x0
         s46_mape = 0x0
         s46_lw = 0x0
         passthru = 0x0
         prefix_len = 0
         address_len = 0
         ra_pref_len = 0
         ra_route_len = 0
         ra_dns_len = 0
         prefix = 0x0
         address = 0x0
         ra_pref = 0x0
         ra_route = 0x0
         ra_dns = 0x0
 #7  0x00401de2 in main (argc=<optimized out>, argv=<optimized out>) at
 /home/bastian/openwrt/build_dir/target-
 mips_34kc_uClibc-0.9.33.2/odhcp6c-2014-10-12/src/odhcp6c.c:410
         pidfile = 0x0
         script = 0x7ffedf3c "/lib/netifd/dhcpv6.script"
         l = <optimized out>
         buf =
 
"\177\376\324\230\000\000\000\000w\333NL\000\000\000\003w\334\261\270\177\376\324p\177\376\324xw\333\244l\177\376\324\230\000\000\000\000w\335\060\000\177\376\326\220w\333DHw\333I(\000\000\000\000\000\000\000\000\177\376\337\061w\330\243\260\000\000\004\205w\322\307\211\000\000\004V\000\000\001\377\000\000\017\367w\344GX\177\376\324\300w\333c\350w\322\307\211",
 '\000' <repeats 20 times>, "w\335\060\000\000"
         optpos = 0x7ffed5c0 ""
         opttype = 40000
         optlen = 30677
         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
         help = <optimized out>
         daemonize = false
         logopt = 1
         c = <optimized out>
         client_options = <optimized out>
         ifname = 0x7ffedf60 "eth0.2"
 (gdb)
 }}}

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