Modify

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#18127 closed defect (fixed)

crash odhcp6c / ar71xx / r42852

Reported by: bittorf@… Owned by: developers
Priority: normal Milestone:
Component: packages Version: Trunk
Keywords: Cc:

Description

bastian@server1:~/openwrt$ scripts/remote-gdb r42852.ar71xx.odhcp6c.3780.11.1413252079.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 3780]
Core was generated by `odhcp6c -s /lib/netifd/dhcpv6.script -P0 -t120 pppoe-wan'.
Program terminated with signal 11, Segmentation fault.
#0  0x771b5684 in __sys_recvmsg (flags=0, msg=0x7f86c9b8, sockfd=4) at libc/inet/socketcalls.c:357
357     _syscall3(ssize_t, __sys_recvmsg, int, sockfd, struct msghdr *, msg, int, flags)
(gdb) bt full
#0  0x771b5684 in __sys_recvmsg (flags=0, msg=0x7f86c9b8, sockfd=4) at libc/inet/socketcalls.c:357
        err = 1
        result_var = 4
#1  __libc_recvmsg (sockfd=4, msg=0x7f86c9b8, flags=0) at libc/inet/socketcalls.c:361
        oldtype = <optimized out>
        result = 0
#2  0x004039c0 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-10-12/src/dhcpv6.c:571
        buf = "\226\300\002e\000\000\000\000\177\206\302\310w ]Hw\035\340\000w!q\\\177\206\302\330w ]Hw\"\020\000\000\000\000\000w\"\020\000w!`\000w!`\000w!r\260w!r\230\177\206\303 \177\206\303\000w k<w!qD\177\206\303\060w\"\020\000w k<\000\000\000\000\000\000\000\000w\"\020", '\000' <repeats 11 times>, "*\031\000\000\000\000w\035\203\260w\027\022\204w\027}\300w\027\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\000w\027\250\024w\036\003\240\000\000\000\b", '\000' <repeats 32 times>...
        t = <optimized out>
        opt_end = <optimized out>
        cmsg_buf = "\177\371\276\250w \206\060\000B:`\000Aj\220\000Ah\350\177\206\320\060\000\000\000\004\000Ah\324"
        msg = {msg_name = 0x7f86c9d4, msg_namelen = 28, msg_iov = 0x7f86ca18, msg_iovlen = 1, msg_control = 0x7f86c998, msg_controllen = 32, msg_flags = 0}
        pktinfo = 0x0
        opt = <optimized out>
        iov = {iov_base = 0x7f86c2b8, iov_len = 1536}
        addr = {sin6_family = 30493, sin6_port = 33408, sin6_flowinfo = 2139539944, 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 = 115, tv_usec = 548000}
        round_end = 85708818
        rc = 110 'n'
        timeout = <optimized out>
        retx = 0x4167c4 <dhcpv6_retx+24>
        start = 42259458
        round_start = 85593270
        elapsed = 43333812
        trid = ",\241p"
        len = -1
        rto = 115548
#3  0x00401c5e 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:283
        mode = <optimized out>
        ia_pd_len = <optimized out>
        ia_na_len = <optimized out>
        server_id_len = <optimized out>
        pidfile = 0x0
        script = 0x7f86df39 "/lib/netifd/dhcpv6.script"
        l = <optimized out>
        buf = "\177\206\317\b\000\000\000\000w .L\000\000\000\003w!\221\270\177\206\316\340\177\206\316\350w \204l\177\206\317\b\000\000\000\000w\"\020\000\177\206\321\000w $Hw )(\000\000\000\000\000\000\000\000\177\206\337.w\035\203\260\000\000\004\205w\027\247\211\000\000\004V\000\000\001\377\000\000\017\367w\336\347X\177\206\317\060w C\350w\027\247\211", '\000' <repeats 20 times>, "w\"\020\000\000"
        optpos = 0x7f86d030 ""
        opttype = 31808
        optlen = 30490
        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 = 0x7f86df5d "pppoe-wan"
(gdb) 

Attachments (0)

Change History (2)

comment:1 Changed 3 years ago by cyrus

  • Resolution set to fixed
  • Status changed from new to closed

Might be fixed in r42869. Please reopen if the issues persists.

comment:2 Changed 3 years ago by bittorf@…

unsure about that, because it says: 'odhcp6c: fix parse errors with some dhcpv6 servers'.
i have no dhcpv6-server in the network, so it must be another thing. have flashed a new trunk and will report - thank you.

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.