Public bug reported:

I cannot use the nix-bin package on Ubuntu 25.10 because the invocation
of any of the commands `nix`, `nix-env`, `nix-store` (and possibly
others) immediately crashes with a segmentation fault:

```
$ nix
Segmentation fault (core dumped)

$ nix-store 
Segmentation fault (core dumped)

$ nix-env 
Segmentation fault (core dumped)
```

Package version:

```
$ apt-cache policy nix-bin
nix-bin:
  Installed: 2.26.3+dfsg-1ubuntu4
  Candidate: 2.26.3+dfsg-1ubuntu4
  Version table:
 *** 2.26.3+dfsg-1ubuntu4 500
        500 http://archive.ubuntu.com/ubuntu questing/universe amd64 Packages
        100 /var/lib/dpkg/status
```

My environment:

```
$ lsb_release -rd
Description:    Ubuntu 25.10
Release:        25.10

$ uname -a
Linux aedcd5658204 6.17.0-6-generic #6-Ubuntu SMP PREEMPT_DYNAMIC Tue Oct  7 
13:34:17 UTC 2025 x86_64 GNU/Linux
```

Unfortunately, I couldn't find any debug symbols for the package from
debuginfod.ubuntu.com. Therefore I rebuilt the package from source. It
also crashes, with the following backtrace:

```
$ export DEBUGINFOD_URLS="https://debuginfod.ubuntu.com";
$ echo "set debuginfod enabled on" >> ~/.gdbinit
$ gdb -q nix
Reading symbols from nix...
Reading symbols from 
/usr/lib/debug/.build-id/ab/5a0c54811d3dc4d06bc48b316a122ae2ee8d59.debug...
(gdb) run
Starting program: /usr/bin/nix 
warning: Error disabling address space randomization: Operation not permitted
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7e910cdfa6c0 (LWP 12183)]
[New Thread 0x7e90f45a96c0 (LWP 12184)]
[Thread 0x7e90f45a96c0 (LWP 12184) exited]

Thread 1 "nix" received signal SIGSEGV, Segmentation fault.
0x000061a46cd4e250 in ?? ()
(gdb) bt
#0  0x000061a46cd4e250 in ?? ()
#1  0x00007e910dfb41d8 in ?? () from /lib/x86_64-linux-gnu/libgcc_s.so.1
#2  0x00007e910dfb4c35 in _Unwind_Resume () from 
/lib/x86_64-linux-gnu/libgcc_s.so.1
#3  0x000061a462e35623 in nix::ProgressBar::logEI (this=<optimized out>, 
ei=...) at ../src/libmain/progress-bar.cc:165
#4  0x000061a462e37c29 in nix::Logger::logEI (this=<optimized out>, 
lvl=<optimized out>, ei=..., this=<optimized out>, lvl=<optimized out>, ei=...) 
at ../src/libutil/logging.hh:95
#5  nix::handleExceptions (programName="/usr/bin/nix", fun=...) at 
../src/libmain/shared.cc:339
#6  0x000061a462e4480f in main (argc=<optimized out>, argv=<optimized out>) at 
../src/nix/main.cc:567

```

** Affects: nix (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2131164

Title:
  nix-bin binaries crash with segmentation fault

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nix/+bug/2131164/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to