https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=289625

            Bug ID: 289625
           Summary: rpcbind crashes when rpcinfo run.
           Product: Base System
           Version: 15.0-CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: [email protected]
          Reporter: [email protected]

To test this, I'm running on:

FreeBSD vr.home.dclg.ca 15.0-PRERELEASE FreeBSD 15.0-PRERELEASE #0
main-n279821-f13a042a5711: Tue Aug 26 18:50:10 EDT 2025    
[email protected]:/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG amd64

I run:

rpcbind -d

Then I run:

rpcinfo localhost

[2:25:325]root@vr:/vr1/backup/Acronis> rpcinfo localhost
rpcinfo: can't contact rpcbind: : RPC: Unable to receive; errno = Connection
reset by peer

coming back to rpcbind, it says:

[2:51:351]root@vr:~> rpcbind -d
rpcbind debugging enabled.
Segmentation fault (core dumped)

... so I: 

[2:52:352]root@vr:~> gdb rpcbind rpcbind.core
GNU gdb (GDB) 15.1 [GDB v15.1 for FreeBSD]
Copyright (C) 2024 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 "x86_64-portbld-freebsd14.2".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from rpcbind...
Reading symbols from /usr/lib/debug//usr/sbin/rpcbind.debug...
[New LWP 731146]
Core was generated by `rpcbind -d'.
Program terminated with signal SIGSEGV, Segmentation fault.
Address not mapped to object.
#0  ?? () at /usr/src/lib/libc/amd64/string/strlen.S:95 from /lib/libc.so.7
95              pcmpeqb (%rdi), %xmm1                   # compare head (with
junk before string)
(gdb) bt
#0  ?? () at /usr/src/lib/libc/amd64/string/strlen.S:95 from /lib/libc.so.7
#1  0x00001d9c3c5273a8 in xdr_string (xdrs=xdrs@entry=0x3ba5fb06f808,
cpp=cpp@entry=0x3ba5fb047460, maxsize=maxsize@entry=9000)
    at /usr/src/lib/libc/xdr/xdr.c:701
#2  0x00001d9c3c51b841 in xdr_rpcb (xdrs=0x3ba5fb06f808, objp=0x3ba5fb047450)
at /usr/src/lib/libc/rpc/rpcb_prot.c:63
#3  0x00001d9c3c528df2 in xdr_reference (xdrs=xdrs@entry=0x3ba5fb06f808,
pp=pp@entry=0x1d9418ba7140 <list_rbl>,
    size=size@entry=40, proc=proc@entry=0x1d9c3c51b7f0 <xdr_rpcb>) at
/usr/src/lib/libc/xdr/xdr_reference.c:92
#4  0x00001d9c3c51b943 in xdr_rpcblist_ptr (xdrs=0x3ba5fb06f808,
rp=0x1d9418ba7140 <list_rbl>)
    at /usr/src/lib/libc/rpc/rpcb_prot.c:124
#5  0x00001d9c3c5205e4 in svc_vc_reply (xprt=0x3ba5fb0208c0,
msg=0x1d9c39a3d618) at /usr/src/lib/libc/rpc/svc_vc.c:646
#6  0x00001d9c3c51c7ee in svc_sendreply (xprt=0x0, xprt@entry=0x3ba5fb0208c0,
    xdr_results=xdr_results@entry=0x1d9c3c51b870 <xdr_rpcblist_ptr>,
xdr_location=0x2328) at /usr/src/lib/libc/rpc/svc.c:368
#7  0x00001d9418ba0f52 in rpcb_service_3 (rqstp=0x1d9c39a3d740,
transp=0x3ba5fb0208c0)
    at /usr/src/usr.sbin/rpcbind/rpcb_svc.c:175
#8  0x00001d9c3c51d08d in svc_getreq_common (fd=<optimized out>) at
/usr/src/lib/libc/rpc/svc.c:664
#9  0x00001d9c3c51d118 in svc_getreq_poll (pfdp=pfdp@entry=0x1d9c39a3dcf0,
pollretval=1) at /usr/src/lib/libc/rpc/svc.c:732
#10 0x00001d9418ba3069 in my_svc_run () at
/usr/src/usr.sbin/rpcbind/rpcb_svc_com.c:1167
#11 0x00001d9418b9f835 in main (argc=<optimized out>, argv=0x1d9c39a40000) at
/usr/src/usr.sbin/rpcbind/rpcbind.c:286

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

Reply via email to