From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paul van der Walt Subject: Everything segfaults Date: Thu, 09 Jun 2016 17:20:38 +0200 Message-ID: <87bn3a2xtl.fsf@Cage.localdomain> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52323) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bB1lP-0003zb-CJ for help-guix@gnu.org; Thu, 09 Jun 2016 11:20:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bB1lM-0003CU-2r for help-guix@gnu.org; Thu, 09 Jun 2016 11:20:55 -0400 Received: from aibo.runbox.com ([91.220.196.211]:56866) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bB1lL-0003AR-OD for help-guix@gnu.org; Thu, 09 Jun 2016 11:20:52 -0400 Received: from [10.9.9.210] (helo=mailfront10.runbox.com) by bars.runbox.com with esmtp (Exim 4.71) (envelope-from ) id 1bB1lF-0001m1-FK for help-guix@gnu.org; Thu, 09 Jun 2016 17:20:45 +0200 Received: from [89.130.202.122] (helo=Cage.localdomain) by mailfront10.runbox.com with esmtpsa (uid:868861 ) (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.82) id 1bB1lA-0001Xu-0f for help-guix@gnu.org; Thu, 09 Jun 2016 17:20:40 +0200 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: help-guix@gnu.org --=-=-= Content-Type: text/plain Hello Guix (sorry for the cross-post, and thanks Roel for the tip), It's been a while, so i apologise for asking what are probably dumb questions. Quite a while ago i ran into this issue where (it might have been after a system upgrade including libc and such, i'm using git Guix on Arch Linux) all binaries segfault. This is quite a while ago, so it would've definitely been an older kernel version then, but i can't say which one. We're talking like 4 months ago. I didn't really have time to look at it then, and now i'm trying to get back on the Guix-horse. I've done `guix package -i ..` for a few packages, some of which have and some of which haven't been updated in the meantime, but the problem persists. Should i blow away the entire /gnu/store and reinstall Guix from scratch, or can something be debugged/salvaged? My debugging-fu is weak, so i might need pointers. I've taken Roel's suggestion and attached the output of `strace less` which is one of the binaries that segfaults. Hope this isn't too much PEBKAC for one afternoon! Cheers, p. --=-=-= Content-Type: text/plain Content-Disposition: attachment; filename=strace-less.log execve("/home/paul/.guix-profile/bin/less", ["less"], [/* 55 vars */]) = 0 brk(NULL) = 0x1319000 mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f99bd00c000 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) open("/home/paul/GNUstep/Library/Libraries/tls/x86_64/libncursesw.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat("/home/paul/GNUstep/Library/Libraries/tls/x86_64", 0x7ffd3128db80) = -1 ENOENT (No such file or directory) open("/home/paul/GNUstep/Library/Libraries/tls/libncursesw.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat("/home/paul/GNUstep/Library/Libraries/tls", 0x7ffd3128db80) = -1 ENOENT (No such file or directory) open("/home/paul/GNUstep/Library/Libraries/x86_64/libncursesw.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat("/home/paul/GNUstep/Library/Libraries/x86_64", 0x7ffd3128db80) = -1 ENOENT (No such file or directory) open("/home/paul/GNUstep/Library/Libraries/libncursesw.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat("/home/paul/GNUstep/Library/Libraries", 0x7ffd3128db80) = -1 ENOENT (No such file or directory) open("/usr/lib/tls/x86_64/libncursesw.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat("/usr/lib/tls/x86_64", 0x7ffd3128db80) = -1 ENOENT (No such file or directory) open("/usr/lib/tls/libncursesw.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat("/usr/lib/tls", 0x7ffd3128db80) = -1 ENOENT (No such file or directory) open("/usr/lib/x86_64/libncursesw.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat("/usr/lib/x86_64", 0x7ffd3128db80) = -1 ENOENT (No such file or directory) open("/usr/lib/libncursesw.so.6", O_RDONLY|O_CLOEXEC) = 3 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\260u\1\0\0\0\0\0"..., 832) = 832 fstat(3, {st_mode=S_IFREG|0755, st_size=444680, ...}) = 0 mmap(NULL, 2542224, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f99bcb81000 mprotect(0x7f99bcbe8000, 2097152, PROT_NONE) = 0 mmap(0x7f99bcde8000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x67000) = 0x7f99bcde8000 close(3) = 0 open("/usr/lib/libgcc_s.so.1", O_RDONLY|O_CLOEXEC) = 3 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0p*\0\0\0\0\0\0"..., 832) = 832 fstat(3, {st_mode=S_IFREG|0644, st_size=721704, ...}) = 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f99bd00b000 mmap(NULL, 2185552, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f99bc96b000 mprotect(0x7f99bc981000, 2093056, PROT_NONE) = 0 mmap(0x7f99bcb80000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x15000) = 0x7f99bcb80000 close(3) = 0 open("/usr/lib/libc.so.6", O_RDONLY|O_CLOEXEC) = 3 read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0`\10\2\0\0\0\0\0"..., 832) = 832 fstat(3, {st_mode=S_IFREG|0755, st_size=1960968, ...}) = 0 mmap(NULL, 3803440, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f99bc5ca000 mprotect(0x7f99bc761000, 2097152, PROT_NONE) = 0 mmap(0x7f99bc961000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x197000) = 0x7f99bc961000 mmap(0x7f99bc967000, 14640, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f99bc967000 close(3) = 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f99bd00a000 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f99bd009000 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f99bd008000 arch_prctl(ARCH_SET_FS, 0x7f99bd009700) = 0 --- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0} --- +++ killed by SIGSEGV (core dumped) +++ zsh: segmentation fault (core dumped) strace less &> strace-less.log --=-=-=--