NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

lib/59535: inetd(8) core dump with new openssl



>Number:         59535
>Category:       lib
>Synopsis:       inetd(8) core dump with new openssl
>Confidential:   no
>Severity:       non-critical
>Priority:       high
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jul 21 06:10:00 +0000 2025
>Originator:     Martin Husemann
>Release:        NetBSD 10.99.15
>Organization:
The NetBSD Foundation, Inc.
>Environment:
System: NetBSD supremacy.duskware.de 10.99.15 NetBSD 10.99.15 (OCTEON) #34: Sun Jul 20 15:53:56 CEST 2025 martin%seven-days-to-the-wolves.aprisoft.de@localhost:/work/src/sys/arch/evbmips/compile/OCTEON evbmips
Architecture: mipsn64eb
Machine: evbmips
>Description:
>How-To-Repeat:

During first boot after updating to the new openssl I got a core dump frome
inetd:

Core was generated by `inetd'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x000000fff85fc1f8 in _fini () from /usr/lib/libipsec.so.3
(gdb) bt
#0  0x000000fff85fc1f8 in _fini () from /usr/lib/libipsec.so.3
#1  0x000000fff86d9ac0 in _rtld_call_initfini_function (mask=0xffffff65a0, 
    func=0xfff85fc1f8 <_fini>) at /work/src/libexec/ld.elf_so/rtld.c:152
#2  _rtld_call_fini_function (obj=0xfff86cd000, mask=0xffffff65a0, 
    cur_objgen=<optimized out>) at /work/src/libexec/ld.elf_so/rtld.c:167
#3  0x000000fff86da998 in _rtld_call_fini_functions (force=1, 
    mask=0xffffff65a0) at /work/src/libexec/ld.elf_so/rtld.c:213
#4  _rtld_exit () at /work/src/libexec/ld.elf_so/rtld.c:431
#5  0x000000fff83da664 in __cxa_finalize (dso=<optimized out>)
    at /work/src/lib/libc/stdlib/atexit.c:256
#6  0x000000fff83d9fa8 in exit (status=3)
    at /work/src/lib/libc/stdlib/exit.c:58
(gdb) info reg
                  zero               at               v0               v1
 R0   0000000000000000 0000000000000000 0000000000000000 0000000000200000 
                    a0               a1               a2               a3
 R4   0000000000000003 000000ffffff65a0 0000000000000000 0000000000000000 
                    a4               a5               a6               a7
 R8   0000000000000040 0000000000000000 000000fff869c010 000000fff8664380 
                    t0               t1               t2               t3
 R12  0000000000000001 0000000000000000 0000000000000000 000000fff86f8070 
                    s0               s1               s2               s3
 R16  000000fff86cd000 000000ffffff65a0 000000fff85fc1f8 0000000000000002 
                    s4               s5               s6               s7
 R20  000000fff86f0000 000000fff86f05d0 000000fff86d7bd8 000000fff86ca3a0 
                    t8               t9               k0               k1
 R24  000000000000008c 000000fff85fc1f8 0000000000000000 0000000000000000 
                    gp               sp               s8               ra
 R28  000000fff86f8070 000000ffffff6520 000000fff86f0890 000000fff86d9ac0 
                    sr               lo               hi              bad
      000000000000ffb3 00000000006a3692 0000000000000000 000000fff85fc1f8 
                 cause               pc
      0000000000000008 000000fff85fc1f8 
                   fsr              fir
              00000000    <unavailable> 
(gdb) x/16i $pc  
=> 0xfff85fc1f8 <_fini>:        daddiu  sp,sp,-32
   0xfff85fc1fc <_fini+4>:      sd      ra,24(sp)
   0xfff85fc200 <_fini+8>:      sd      gp,8(sp)
   0xfff85fc204 <_fini+12>:     lui     gp,0x3
   0xfff85fc208 <_fini+16>:     addiu   gp,gp,-16104
   0xfff85fc20c <_fini+20>:     daddu   gp,gp,t9
[..]
(gdb) info dll
From                To                  Syms Read   Shared Object Library
0x000000fff86a28c0  0x000000fff86a70f8  Yes         /usr/lib/libwrap.so.1
0x000000fff8670d60  0x000000fff8671e88  Yes         /usr/lib/libblocklist.so.0
0x000000fff8636da0  0x000000fff8644868  Yes         /usr/lib/libutil.so.7
0x000000fff85f3310  0x000000fff85fbf88  Yes         /usr/lib/libipsec.so.3
0x000000fff8271860  0x000000fff8425540  Yes         /usr/lib/libc.so.12
0x000000fff86d28f0  0x000000fff86e1100  Yes         /usr/libexec/ld.elf_so
(gdb) x/16x $sp-8
0xffffff6518:   0x000000ff      0xf86cd000      0x000000ff      0xffff65b0
0xffffff6528:   0x000000ff      0xffff65a0      0x00000000      0x00800000
0xffffff6538:   0x00000000      0x00040000      0x00000000      0x00000002
0xffffff6548:   0x000000ff      0xffff65b0      0x000000ff      0xffff65a0

... which I don't really understand

inetd(8) is running, so I guess this was the parent process exiting after
daemonizing.

>Fix:
n/a



Home | Main Index | Thread Index | Old Index