[Nix-dev] Network problems

Marco Maggesi maggesi at math.unifi.it
Thu Mar 28 08:48:47 CET 2013


Hi,

I was able to generate a core dump.  Here is the output of the command:

$ nix-env -i emacs
...
*** Downloading
‘http://nixos.org/binary-cache/nar/1g14fszfd2986sjcjyhn16vimcirm8chsxc1j3f9v71mysx96l0q.nar.bz2’
to ‘/nix/store/jpxj8z3mc7fjdnby58001k8icisjiis0-lzo-2.06’...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 78256  100 78256    0     0   344k      0 --:--:-- --:--:-- --:--:--  347k

fetching path `/nix/store/jpxj8z3mc7fjdnby58001k8icisjiis0-lzo-2.06'
failed due to signal 11 (Segmentation fault)
fetching path `/nix/store/0pdfk07adfpjxx0hjgdb3mk3qya1kxlg-libungif-4.1.4.tar.gz'...
killing process 700
error: some substitutes for the outputs of derivation
`/nix/store/jq8qd6484m700f19ym1ssk85hh3v4qiv-lzo-2.06.drv' failed; try
`--fallback'

Actually I got two files (I expected only one), I don't know why:

# ls -la /cores/
total 1267808
drwxrwxrwt@  4 root  admin        136 Mar 28 08:37 .
drwxrwxr-x  38 root  admin       1360 Mar 28 08:11 ..
-r--------   1 root  admin  324558848 Mar 28 08:37 core.688
-r--------   1 root  admin  324558848 Mar 28 08:37 core.694


But now I don't know how to get the stack trace.
I assume I should run

  $ gdb <progname> <corefile>
  (gdb) bt

But who is <progname> ?

I can send you the core dumps.
Or I can test some commands if you give me more suggestions.

Hope this can be useful,
Marco



2013/3/25 Eelco Dolstra <eelco.dolstra at logicblox.com>:
> Hi,
>
> On 25/03/13 12:26, Marco Maggesi wrote:
>
>> on OSX I keep getting strange problems when downloading binary substitutes.
>> Usually I have to rerun several time the same command until it succeeds.
>> E.g.,
>>
>> $ nix-build -I nixpkgs=~/Devel/nixpkgs
>> fetching path `/nix/store/zy27vsm8q6pqjb8pipfhimq3k891lj2v-diffutils-3.2'...
>>
>> *** Downloading
>>http://nixos.org/binary-cache/nar/14sg6fz38x5in70w2cjd5qnca83m4z1xa8cfpk4wpn6mhkw0rjaq.nar.bz2’
>> to ‘/nix/store/zy27vsm8q6pqjb8pipfhimq3k891lj2v-diffutils-3.2’...
>>   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
>>                                  Dload  Upload   Total   Spent    Left  Speed
>> 100  201k  100  201k    0     0   309k      0 --:--:-- --:--:-- --:--:--  309k
>>
>> fetching path `/nix/store/zy27vsm8q6pqjb8pipfhimq3k891lj2v-diffutils-3.2'
>
> Hm, very strange that it's saying "fetching path" again.  Can you get a stack
> trace (ulimit -c, gdb, ...)?
>
> --
> Eelco Dolstra | LogicBlox, Inc. | http://nixos.org/~eelco/
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev


More information about the nix-dev mailing list