Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Nov 2018 09:19:41 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 233431] [bsnmpd] regression on 12-STABLE: crash on start
Message-ID:  <bug-233431-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D233431

            Bug ID: 233431
           Summary: [bsnmpd] regression on 12-STABLE: crash on start
           Product: Base System
           Version: 12.0-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: emz@norma.perm.ru

bsnmpd crashes right after start, was working on 11.x, regression happened
after upgrade to 12.x. 100% reproducible, multiple instances:

FreeBSD san01.bsh-ru.playkey.net 12.0-PRERELEASE FreeBSD 12.0-PRERELEASE
r340754 GENERIC  amd64
FreeBSD san01.boston.playkey.net 12.0-PRERELEASE FreeBSD 12.0-PRERELEASE
r340673 GENERIC  amd6

Backtrace:

# gdb /usr/sbin/bsnmpd bsnmpd.core=20
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain condition=
s.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "amd64-marcel-freebsd"...
Core was generated by `/usr/sbin/bsnmpd -p /var/run/snmpd.pid'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libbegemot.so.4...Reading symbols from
/usr/lib/debug//lib/libbegemot.so.4.debug...done.
done.
Loaded symbols for /lib/libbegemot.so.4
Reading symbols from /usr/lib/libbsnmp.so.6...Reading symbols from
/usr/lib/debug//usr/lib/libbsnmp.so.6.debug...done.
done.
Loaded symbols for /usr/lib/libbsnmp.so.6
Reading symbols from /usr/lib/libwrap.so.6...Reading symbols from
/usr/lib/debug//usr/lib/libwrap.so.6.debug...done.
done.
Loaded symbols for /usr/lib/libwrap.so.6
Reading symbols from /lib/libc.so.7...Reading symbols from
/usr/lib/debug//lib/libc.so.7.debug...done.
done.
Loaded symbols for /lib/libc.so.7
Reading symbols from /lib/libcrypto.so.111...Reading symbols from
/usr/lib/debug//lib/libcrypto.so.111.debug...done.
done.
Loaded symbols for /lib/libcrypto.so.111
Reading symbols from /lib/libthr.so.3...Reading symbols from
/usr/lib/debug//lib/libthr.so.3.debug...done.
done.
Loaded symbols for /lib/libthr.so.3
Reading symbols from /libexec/ld-elf.so.1...Reading symbols from
/usr/lib/debug//libexec/ld-elf.so.1.debug...done.
done.
Loaded symbols for /libexec/ld-elf.so.1
#0  strlen (str=3D0x801062223 <Address 0x801062223 out of bounds>) at
/usr/src/lib/libc/string/strlen.c:101
101             va =3D (*lp - mask01);
[New Thread 8009e5000 (LWP 110269/<unknown>)]
(gdb) bt
#0  strlen (str=3D0x801062223 <Address 0x801062223 out of bounds>) at
/usr/src/lib/libc/string/strlen.c:101
#1  0x00000008003d95a9 in __vfprintf (fp=3D<value optimized out>,
locale=3D0x80044a4e8, fmt0=3D<value optimized out>,=20
    ap=3D<value optimized out>) at /usr/src/lib/libc/stdio/vfprintf.c:854
#2  0x00000008003d71b4 in vfprintf_l (fp=3D0x80067bec0, locale=3D<value opt=
imized
out>, fmt0=3D0x80028e62f "%s %d - - ",=20
    ap=3D0x7fffffffb5b0) at /usr/src/lib/libc/stdio/vfprintf.c:285
#3  0x00000008003deedb in fprintf (fp=3D0x80067bec0, fmt=3D0x80028e62f "%s =
%d - -
")
    at /usr/src/lib/libc/stdio/fprintf.c:57
#4  0x000000080041e16b in vsyslog (pri=3D<value optimized out>, fmt=3D0x200=
963
"error in config file", ap=3D0x7fffffffc510)
    at /usr/src/lib/libc/gen/syslog.c:210
#5  0x000000080041de8d in syslog (pri=3D<value optimized out>, fmt=3D<value
optimized out>)
    at /usr/src/lib/libc/gen/syslog.c:129
#6  0x0000000000213bb1 in main (argc=3D0, argv=3D<value optimized out>)
Current language:  auto; currently minimal
(gdb) bt full
#0  strlen (str=3D0x801062223 <Address 0x801062223 out of bounds>) at
/usr/src/lib/libc/string/strlen.c:101
        p =3D 0x801062223 <Address 0x801062223 out of bounds>
        lp =3D (const long unsigned int *) 0x801062220
        va =3D <value optimized out>
        vb =3D <value optimized out>
#1  0x00000008003d95a9 in __vfprintf (fp=3D<value optimized out>,
locale=3D0x80044a4e8, fmt0=3D<value optimized out>,=20
    ap=3D<value optimized out>) at /usr/src/lib/libc/stdio/vfprintf.c:854
        mbs =3D {__mbstate8 =3D 0x7fffffffb3c0 "\230=EF=BF=BD=EF=BF=BD=EF=
=BF=BD=EF=BF=BD\177", _mbstateL =3D
140737488335768}
        mbseqlen =3D <value optimized out>
        xdigs_lower =3D 0x80029b7e0 "0123456789abcdef0123456789ABCDEF", ' '
<repeats 16 times>, '0' <repeats 16 times>, "=EF=BF=BD=EF=BF=BD\023"
        xdigs_upper =3D 0x80029b7f0 "0123456789ABCDEF", ' ' <repeats 16 tim=
es>,
'0' <repeats 16 times>, "=EF=BF=BD=EF=BF=BD\023"
        expstr =3D 0x7fffffffb3b8 "p"
        buf =3D 0x7fffffffb300 ""
        ox =3D 0x7fffffffb258 ""
        statargtable =3D 0x7fffffffb280
        orgap =3D 0x7fffffffb260
        fmt =3D <value optimized out>
        nextarg =3D <value optimized out>
        saved_errno =3D 2
        ret =3D 0
        decimal_point =3D 0x80028c072 "."
        decpt_len =3D 1
        cp =3D 0x801062223 <Address 0x801062223 out of bounds>
        dtoaresult =3D <value optimized out>
        realsz =3D 24
        size =3D <value optimized out>
        flags =3D 17179171
        ch =3D <value optimized out>
        n =3D <value optimized out>
        dprec =3D Cannot access memory at address 0x0
(gdb)

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-233431-227>