[Nix-dev] nix killed by 11

Marc Weber marco-oweber at gmx.de
Fri Sep 11 00:46:28 CEST 2009


Hi,

I tried rewriting the jobs in nixos using an attrset so that settings
can be overwritten easily.

Eg 
services.sshd.enable = true
services.sshd.startOn = "never"

The purpose is to add sshd to nixos-install so that you can start it by
start sshd

However when instantiating the system derivation nix is killed
(segfault).

I talked to niksnut briefly. He said that this is probably the fault of
nix.
Which is the best way tracking down the cause?

valgrind looks like this:
These Conditional jump or move depending on uninitialised values should
be fixed, should they?

Is this a way to start finding this bug?
I've uploaded the full valgrind log here:
http://mawercer.de/~marc/all.log.gz

So does this look like a bug in aterm? If so how to proceed? Is there an
upstream version I should try first?

  zsh: command not found: -A
   marc i%valgrind  nix-instantiate /pr/system/nixos/default.nix -A system -K -k --show-trace                                                            /home/marc nixos   
  ==20485== Memcheck, a memory error detector.
  ==20485== Copyright (C) 2002-2008, and GNU GPL'd, by Julian Seward et al.
  ==20485== Using LibVEX rev 1884, a library for dynamic binary translation.
  ==20485== Copyright (C) 2004-2008, and GNU GPL'd, by OpenWorks LLP.
  ==20485== Using valgrind-3.4.1, a dynamic binary instrumentation framework.
  ==20485== Copyright (C) 2000-2008, and GNU GPL'd, by Julian Seward et al.
  ==20485== For more details, rerun with: -v
  ==20485== 
  ==20485== Conditional jump or move depends on uninitialised value(s)
  ==20485==    at 0x5FC6E8E: mark_phase_young (in /nix/store/2iw8ifif02cmaqpr8wimlnd5qyqww0a8-aterm-2.4.2-fixes-r2/lib/libATerm)
  ==20485==    by 0x5FC71D3: AT_collect_minor (in /nix/store/2iw8ifif02cmaqpr8wimlnd5qyqww0a8-aterm-2.4.2-fixes-r2/lib/libATerm)
  ==20485==    by 0x5FCCB7A: AT_allocate (in /nix/store/2iw8ifif02cmaqpr8wimlnd5qyqww0a8-aterm-2.4.2-fixes-r2/lib/libATerm)
  ==20485== 
  ==20485== Conditional jump or move depends on uninitialised value(s)
  ==20485==    at 0x5FC6E9A: mark_phase_young (in /nix/store/2iw8ifif02cmaqpr8wimlnd5qyqww0a8-aterm-2.4.2-fixes-r2/lib/libATerm)
  ==20485==    by 0x5FC71D3: AT_collect_minor (in /nix/store/2iw8ifif02cmaqpr8wimlnd5qyqww0a8-aterm-2.4.2-fixes-r2/lib/libATerm)
  ==20485==    by 0x5FCCB7A: AT_allocate (in /nix/store/2iw8ifif02cmaqpr8wimlnd5qyqww0a8-aterm-2.4.2-fixes-r2/lib/libATerm)
  ==20485==    by 0x5FCE181: ATmakeApplArray (in /nix/store/2iw8ifif02cmaqpr8wimlnd5qyqww0a8-aterm-2.4.2-fixes-r2/lib/libATerm)
  ==20485==    by 0x5047842: nix::substitute(nix::Substitution const&, _ATerm*) (in /nix/store/qsqkakb92p5wlnkqp0zpbqsm24xv0pka-nix-0.13pre16857-debug-coercion-failure-patch-patched/lib/nix/libexpr.so.0.0.0)
  j=20485== 
  ==20485== Conditional jump or move depends on uninitialised value(s)
  ==20485==    at 0x5FBB683: AT_isValidSymbol (in /nix/store/2iw8ifif02cmaqpr8wimlnd5qyqww0a8-aterm-2.4.2-fixes-r2/lib/libATerm)
  ==20485==    by 0x5FC6E54: mark_phase_young (in /nix/store/2iw8ifif02cmaqpr8wimlnd5qyqww0a8-aterm-2.4.2-fixes-r2/lib/libATerm)
  ==20485==    by 0x5FC71D3: AT_collect_minor (in /nix/store/2iw8ifif02cmaqpr8wimlnd5qyqww0a8-aterm-2.4.2-fixes-r2/lib/libATerm)
  ==20485==    by 0x5FCCB7A: AT_allocate (in /nix/store/2iw8ifif02cmaqpr8wimlnd5qyqww0a8-aterm-2.4.2-fixes-r2/lib/libATerm)
  ==20485== 
  ==20485== Conditional jump or move depends on uninitialised value(s)
  ==20485==    at 0x5FBB68E: AT_isValidSymbol (in /nix/store/2iw8ifif02cmaqpr8wimlnd5qyqww0a8-aterm-2.4.2-fixes-r2/lib/libATerm)
  ==20485==    by 0x5FC6E54: mark_phase_young (in /nix/store/2iw8ifif02cmaqpr8wimlnd5qyqww0a8-aterm-2.4.2-fixes-r2/lib/libATerm)
  ==20485==    by 0x5FC71D3: AT_collect_minor (in /nix/store/2iw8ifif02cmaqpr8wimlnd5qyqww0a8-aterm-2.4.2-fixes-r2/lib/libATerm)
  ==20485==    by 0x5FCCB7A: AT_allocate (in /nix/store/2iw8ifif02cmaqpr8wimlnd5qyqww0a8-aterm-2.4.2-fixes-r2/lib/libATerm)
  ==20485== 
  ==20485== Use of uninitialised value of size 8
  ==20485==    at 0x5FBB6A2: AT_isValidSymbol (in /nix/store/2iw8ifif02cmaqpr8wimlnd5qyqww0a8-aterm-2.4.2-fixes-r2/lib/libATerm)
  ==20485==    by 0x5FC6E54: mark_phase_young (in /nix/store/2iw8ifif02cmaqpr8wimlnd5qyqww0a8-aterm-2.4.2-fixes-r2/lib/libATerm)
  ==20485==    by 0x5FC71D3: AT_collect_minor (in /nix/store/2iw8ifif02cmaqpr8wimlnd5qyqww0a8-aterm-2.4.2-fixes-r2/lib/libATerm)
  ==20485==    by 0x5FCCB7A: AT_allocate (in /nix/store/2iw8ifif02cmaqpr8wimlnd5qyqww0a8-aterm-2.4.2-fixes-r2/lib/libATerm)

Marc Weber



More information about the nix-dev mailing list