You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What Nix version is this? I've seen SQLite segfault if the disk is full, but Nix reserves some disk space (in /nix/var/nix/db/reserved) that it can delete prior to opening the SQLite DB for this reason.
SIGBUS should come mainly from misaligned memory accesses. In x86-64, I think that can happen only using SIMD instructions that require aligned memory pointers with unaligned memory pointers. I don't think there is any SIMD in all what nix runs, apart from glibc's memset or memcpy, that should be properly protected about alignments.
Aragnon, can you disassemble in gdb at the sigbus location, and print 'info registers' to see what happened?
Closing because I can't reproduce. If the reserved file doesn't exist and the disk is full, I get error: setting synchronous mode: disk I/O error from SQLite.
Activity
edolstra commentedon Oct 2, 2012
Can you run "nix-store --gc -vvvv"?
edolstra commentedon Oct 2, 2012
Also, what platform is this?
aragnon commentedon Oct 3, 2012
Do the following to reproduce this:
dd if=/dev/urandom of=/x
(this will exit when your file system is full)
Now do: $ nix-store --gc -vvvv
On my machine this gives no output other than the Bus error mentioned in my first message.
Platform: Ubuntu Precise, x86-64
edolstra commentedon Oct 3, 2012
What Nix version is this? I've seen SQLite segfault if the disk is full, but Nix reserves some disk space (in /nix/var/nix/db/reserved) that it can delete prior to opening the SQLite DB for this reason.
aragnon commentedon Oct 3, 2012
(Nix) 1.1
Have you actually followed my instructions?
viric commentedon Oct 20, 2012
SIGBUS should come mainly from misaligned memory accesses. In x86-64, I think that can happen only using SIMD instructions that require aligned memory pointers with unaligned memory pointers. I don't think there is any SIMD in all what nix runs, apart from glibc's memset or memcpy, that should be properly protected about alignments.
Aragnon, can you disassemble in gdb at the sigbus location, and print 'info registers' to see what happened?
edolstra commentedon Feb 26, 2014
Closing because I can't reproduce. If the reserved file doesn't exist and the disk is full, I get
error: setting synchronous mode: disk I/O errorfrom SQLite.Merge pull request NixOS#58 from obsidiansystems/git-objects-develop-…
Merge pull request #58 from DeterminateSystems/detsys-logo
Merge pull request NixOS#58 from DeterminateSystems/improve-build-fai…
doc/inventory/candidates: cross-reference cleanup branches
libutil: small cleanups in current-process and util.hh
doc/inventory: STATUS — record bidirectional audit + orphan-commit fi…
doc/inventory: Batch D — file new catalog candidates NixOS#227-NixOS#233