Re: sudo dumping core on recent current

RVP <[email protected]>
Newsgroups gmane.os.netbsd.current
Message-ID <[email protected]>
On Mon, 15 Dec 2025, Lloyd Parkes wrote:

> I'm running 11.99.4 on a couple of amd64 systems and after I upgraded pkgsrc 
> on them I noticed that sudo now dumps core whenever I run it as an 
> unprivileged user.
>
> I have tried sudo-1.9.17p1 from pkgsrc built and run on a very recent copy of 
> -current and it always dumps core when I run "sudo ls". I have tried building 
> it with the system GCC 14 and the pkgsrc GCC 13 with no change in behaviour.
>

I'm not seeing this with either the sudo-1.9.17p1 binary package from 11.0_2025Q3
or with sudo-1.9.17p2 built from sources:

```
$ head ~/tmp/sudo.config.log 
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by sudo configure 1.9.17p2, which was
generated by GNU Autoconf 2.72.  Invocation command line was

   $ ../sudo-1.9.17p2/configure --prefix=/tmp/S --sysconfdir=/usr/pkg/etc --disable-intercept --disable-root-mailer --with-ignore-dot --with-rundir=/var/run/sudo --with-logpath=/var/log/sudo.log --with-secure-path-value=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/pkg/sbin:/usr/pkg/bin --enable-pie --with-env-editor --with-tty-tickets --enable-env-debug --with-pam=no --without-pam

## --------- ##
## Platform. ##

$
```

1. Can you run the `checkoldver' script to see if you have any old library
    versions lying around?

    /usr/src/lib/checkoldver /lib /lib/i386 /usr/lib /usr/lib/i386 /usr/X11R7/lib

    then move the old files away (note that precompiled pkgsrc binaries may still
    need them!).

2. Run (as root):

    ldd /usr/pkg/bin/sudo
    ldd /usr/pkg/lib/sudo/*.so

    to see if sudo ends up using 2 different versions of the same library.

3. Remove any (corrupted) timestamp file just to be safe (also as root):

    rm -v /var/run/sudo/ts/*


-RVP
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.