LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 03-15-2007, 11:03 AM   #1
CloudyWizzard
Member
 
Registered: Jul 2004
Location: Belgium
Distribution: Debian Squeeze
Posts: 194

Rep: Reputation: 31
Segmentation fault errors ?


Hi,

I'm running Debian on 3 systems (2 desktops, one with SID and one with Etch and a laptop with Etch).
when I running Etch on the desktop it seems to work perfectly, but with a bunch of programs I keep getting a "Segmentation Fault" error when I try to start them.

this happens with both software I installed with APT and with 3rd party software (like the game Uplink for example).

I tried these programs on the other desktop with SID and there they all work flawless and also on the Laptop with the exact same branch and both with the same updates (allthough installed packages might not be exactly the same) they also work well.

does anybody here know what might cause this problem ?
 
Old 03-16-2007, 10:49 AM   #2
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 52
Quote:
this happens with both software I installed with APT and with 3rd party software (like the game Uplink for example).
Can you identify one that always segfault. Try to take the simplest application among all these (name a few if you are not sure).
Then try to see if any dynamic library could be missing:
ldd `which myapp`
look if there are no "Not found" lines.

Also strace can help you. Still with a simple application, launch it through strace:
strace -f myapp

And then look carefully the last lines (or post the result).
Entries like NOENT or EACCESS can give an idea maybe.

That's only a start..
 
Old 03-16-2007, 12:09 PM   #3
CloudyWizzard
Member
 
Registered: Jul 2004
Location: Belgium
Distribution: Debian Squeeze
Posts: 194

Original Poster
Rep: Reputation: 31
Thanks for the reply!

The strace output gives me this :

Quote:
0xb7f68000, 4096) = 0
open("/usr/share/locale/nl_BE.UTF-8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/nl_BE.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT ( No such file or directory)
open("/usr/share/locale/nl_BE/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No su ch file or directory)
open("/usr/share/locale/nl.UTF-8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/nl.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/nl/LC_MESSAGES/libc.mo", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=114192, ...}) = 0
mmap2(NULL, 114192, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7c9b000
close(3) = 0
write(2, "./defcon: line 46: 19597 Segment"..., 79./defcon: line 46: 19597 Segme ntatie fout $here/lib/defcon.bin.x86 "$@"
) = 79
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
--- SIGCHLD (Child exited) @ 0 (0) ---
waitpid(-1, 0xbf9bd8dc, WNOHANG) = -1 ECHILD (No child processes)
sigreturn() = ? (mask now [])
rt_sigaction(SIGINT, {SIG_DFL}, {0x807b920, [], 0}, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
read(255, "", 1190) = 0
exit_group(139) = ?
Process 19591 detached
this is the defcon beta client for Linux (I used this one since it always gives a segfault).

I have not much knowledge but it looks like a problem with the locales ? since libc.mo is a part of the "locales" package (acroding to the search on de Debian website).

this could be possible since my laptop uses English (GB) as default locales but this desktop has Dutch (Belgium) as the default and the GB isn't even installed.

I'm doing a "dpkg-reconfigure locales" at this moment to see if installing US and GB locales will do anything.

and I guess I will eighter need to reload X or reboot since the new locales have to be loading first (and they don't seem to be loaded at this moment).

Edit: seems like I can't reload X just yet since another process that I must allow to finish is still running (forgot all about it) so it will take at least a few hours before I can check.

I'll post a reply with the result (or someone must see that there is another problem and that the locales are nog the problem, and I guess the locale shouldn't cause these problems).

Last edited by CloudyWizzard; 03-16-2007 at 12:13 PM.
 
Old 03-17-2007, 12:02 PM   #4
CloudyWizzard
Member
 
Registered: Jul 2004
Location: Belgium
Distribution: Debian Squeeze
Posts: 194

Original Poster
Rep: Reputation: 31
As I expected changing the locales didn't fix it.

on of the stange things in the strace that I notice is that it claims it can't find the file : libXdmcp.so.6 it should be present in the libxdmcp6 package and that IS installed on my system

and there is a lot that it can't find (I can't even copy everything because the gnome-terminal doesn't allow me to scroll up to the top of the output).

Code:
[pid  7485] open("sse2/libnvidia-tls.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
[pid  7485] open("cmov/libnvidia-tls.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
[pid  7485] open("libnvidia-tls.so.1", O_RDONLY) = -1 ENOENT (No such file or di rectory)
[pid  7485] access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or dire ctory)
[pid  7485] open("/usr/lib/libnvidia-tls.so.1", O_RDONLY) = 3
[pid  7485] read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0P\3\0\000".. ., 512) = 512
[pid  7485] lseek(3, 1304, SEEK_SET)    = 1304
[pid  7485] read(3, "\4\0\0\0\20\0\0\0\1\0\0\0GNU\0\0\0\0\0\2\0\0\0\2\0\0\0"...,  32) = 32
[pid  7485] fstat64(3, {st_mode=S_IFREG|0755, st_size=2352, ...}) = 0
[pid  7485] mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, - 1, 0) = 0xb71c0000
[pid  7485] mmap2(NULL, 5588, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,  0) = 0xb71be000
[pid  7485] mmap2(0xb71bf000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED| MAP_DENYWRITE, 3, 0) = 0xb71bf000
[pid  7485] close(3)                    = 0
[pid  7485] open("./lib/tls/i686/sse2/cmov/libXext.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
[pid  7485] open("./lib/tls/i686/sse2/libXext.so.6", O_RDONLY) = -1 ENOENT (No s uch file or directory)
[pid  7485] open("./lib/tls/i686/cmov/libXext.so.6", O_RDONLY) = -1 ENOENT (No s uch file or directory)
[pid  7485] open("./lib/tls/i686/libXext.so.6", O_RDONLY) = -1 ENOENT (No such f ile or directory)
[pid  7485] open("./lib/tls/sse2/cmov/libXext.so.6", O_RDONLY) = -1 ENOENT (No s uch file or directory)
[pid  7485] open("./lib/tls/sse2/libXext.so.6", O_RDONLY) = -1 ENOENT (No such f ile or directory)
[pid  7485] open("./lib/tls/cmov/libXext.so.6", O_RDONLY) = -1 ENOENT (No such f ile or directory)
[pid  7485] open("./lib/tls/libXext.so.6", O_RDONLY) = -1 ENOENT (No such file o r directory)
[pid  7485] open("./lib/i686/sse2/cmov/libXext.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
[pid  7485] open("./lib/i686/sse2/libXext.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
[pid  7485] open("./lib/i686/cmov/libXext.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
[pid  7485] open("./lib/i686/libXext.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
[pid  7485] open("./lib/sse2/cmov/libXext.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
[pid  7485] open("./lib/sse2/libXext.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
[pid  7485] open("./lib/cmov/libXext.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
[pid  7485] open("./lib/libXext.so.6", O_RDONLY) = -1 ENOENT (No such file or di rectory)
[pid  7485] open("tls/i686/sse2/cmov/libXext.so.6", O_RDONLY) = -1 ENOENT (No su ch file or directory)
[pid  7485] open("tls/i686/sse2/libXext.so.6", O_RDONLY) = -1 ENOENT (No such fi le or directory)
[pid  7485] open("tls/i686/cmov/libXext.so.6", O_RDONLY) = -1 ENOENT (No such fi le or directory)
[pid  7485] open("tls/i686/libXext.so.6", O_RDONLY) = -1 ENOENT (No such file or  directory)
[pid  7485] open("tls/sse2/cmov/libXext.so.6", O_RDONLY) = -1 ENOENT (No such fi le or directory)
[pid  7485] open("tls/sse2/libXext.so.6", O_RDONLY) = -1 ENOENT (No such file or  directory)
[pid  7485] open("tls/cmov/libXext.so.6", O_RDONLY) = -1 ENOENT (No such file or  directory)
[pid  7485] open("tls/libXext.so.6", O_RDONLY) = -1 ENOENT (No such file or dire ctory)
[pid  7485] open("i686/sse2/cmov/libXext.so.6", O_RDONLY) = -1 ENOENT (No such f ile or directory)
[pid  7485] open("i686/sse2/libXext.so.6", O_RDONLY) = -1 ENOENT (No such file o r directory)
[pid  7485] open("i686/cmov/libXext.so.6", O_RDONLY) = -1 ENOENT (No such file o r directory)
[pid  7485] open("i686/libXext.so.6", O_RDONLY) = -1 ENOENT (No such file or dir ectory)
[pid  7485] open("sse2/cmov/libXext.so.6", O_RDONLY) = -1 ENOENT (No such file o r directory)
[pid  7485] open("sse2/libXext.so.6", O_RDONLY) = -1 ENOENT (No such file or dir ectory)
[pid  7485] open("cmov/libXext.so.6", O_RDONLY) = -1 ENOENT (No such file or dir ectory)
[pid  7485] open("libXext.so.6", O_RDONLY) = -1 ENOENT (No such file or director y)
[pid  7485] access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or dire ctory)
[pid  7485] open("/usr/lib/libXext.so.6", O_RDONLY) = 3
[pid  7485] read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`&\0\000"... , 512) = 512
[pid  7485] fstat64(3, {st_mode=S_IFREG|0644, st_size=52848, ...}) = 0
[pid  7485] mmap2(NULL, 56060, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3 , 0) = 0xb71b0000
[pid  7485] mmap2(0xb71bd000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED| MAP_DENYWRITE, 3, 0xc) = 0xb71bd000
[pid  7485] close(3)                    = 0
[pid  7485] open("./lib/tls/i686/sse2/cmov/libX11.so.6", O_RDONLY) = -1 ENOENT ( No such file or directory)
[pid  7485] open("./lib/tls/i686/sse2/libX11.so.6", O_RDONLY) = -1 ENOENT (No su ch file or directory)
[pid  7485] open("./lib/tls/i686/cmov/libX11.so.6", O_RDONLY) = -1 ENOENT (No su ch file or directory)
[pid  7485] open("./lib/tls/i686/libX11.so.6", O_RDONLY) = -1 ENOENT (No such fi le or directory)
[pid  7485] open("./lib/tls/sse2/cmov/libX11.so.6", O_RDONLY) = -1 ENOENT (No su ch file or directory)
[pid  7485] open("./lib/tls/sse2/libX11.so.6", O_RDONLY) = -1 ENOENT (No such fi le or directory)
[pid  7485] open("./lib/tls/cmov/libX11.so.6", O_RDONLY) = -1 ENOENT (No such fi le or directory)
[pid  7485] open("./lib/tls/libX11.so.6", O_RDONLY) = -1 ENOENT (No such file or  directory)
[pid  7485] open("./lib/i686/sse2/cmov/libX11.so.6", O_RDONLY) = -1 ENOENT (No s uch file or directory)
[pid  7485] open("./lib/i686/sse2/libX11.so.6", O_RDONLY) = -1 ENOENT (No such f ile or directory)
[pid  7485] open("./lib/i686/cmov/libX11.so.6", O_RDONLY) = -1 ENOENT (No such f ile or directory)
[pid  7485] open("./lib/i686/libX11.so.6", O_RDONLY) = -1 ENOENT (No such file o r directory)
[pid  7485] open("./lib/sse2/cmov/libX11.so.6", O_RDONLY) = -1 ENOENT (No such f ile or directory)
[pid  7485] open("./lib/sse2/libX11.so.6", O_RDONLY) = -1 ENOENT (No such file o r directory)
[pid  7485] open("./lib/cmov/libX11.so.6", O_RDONLY) = -1 ENOENT (No such file o r directory)
[pid  7485] open("./lib/libX11.so.6", O_RDONLY) = -1 ENOENT (No such file or dir ectory)
[pid  7485] open("tls/i686/sse2/cmov/libX11.so.6", O_RDONLY) = -1 ENOENT (No suc h file or directory)
[pid  7485] open("tls/i686/sse2/libX11.so.6", O_RDONLY) = -1 ENOENT (No such fil e or directory)
[pid  7485] open("tls/i686/cmov/libX11.so.6", O_RDONLY) = -1 ENOENT (No such fil e or directory)
[pid  7485] open("tls/i686/libX11.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
[pid  7485] open("tls/sse2/cmov/libX11.so.6", O_RDONLY) = -1 ENOENT (No such fil e or directory)
[pid  7485] open("tls/sse2/libX11.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
[pid  7485] open("tls/cmov/libX11.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
[pid  7485] open("tls/libX11.so.6", O_RDONLY) = -1 ENOENT (No such file or direc tory)
[pid  7485] open("i686/sse2/cmov/libX11.so.6", O_RDONLY) = -1 ENOENT (No such fi le or directory)
[pid  7485] open("i686/sse2/libX11.so.6", O_RDONLY) = -1 ENOENT (No such file or  directory)
[pid  7485] open("i686/cmov/libX11.so.6", O_RDONLY) = -1 ENOENT (No such file or  directory)
[pid  7485] open("i686/libX11.so.6", O_RDONLY) = -1 ENOENT (No such file or dire ctory)
[pid  7485] open("sse2/cmov/libX11.so.6", O_RDONLY) = -1 ENOENT (No such file or  directory)
[pid  7485] open("sse2/libX11.so.6", O_RDONLY) = -1 ENOENT (No such file or dire ctory)
[pid  7485] open("cmov/libX11.so.6", O_RDONLY) = -1 ENOENT (No such file or dire ctory)
[pid  7485] open("libX11.so.6", O_RDONLY) = -1 ENOENT (No such file or directory )
[pid  7485] access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or dire ctory)
[pid  7485] open("/usr/lib/libX11.so.6", O_RDONLY) = 3
[pid  7485] read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0@L\1\000"... , 512) = 512
[pid  7485] fstat64(3, {st_mode=S_IFREG|0644, st_size=965952, ...}) = 0
[pid  7485] mmap2(NULL, 966364, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb70c4000
[pid  7485] mmap2(0xb71ac000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED |MAP_DENYWRITE, 3, 0xe8) = 0xb71ac000
[pid  7485] close(3)                    = 0
[pid  7485] open("./lib/tls/i686/sse2/cmov/libvorbis.so.0", O_RDONLY) = -1 ENOEN T (No such file or directory)
[pid  7485] open("./lib/tls/i686/sse2/libvorbis.so.0", O_RDONLY) = -1 ENOENT (No  such file or directory)
[pid  7485] open("./lib/tls/i686/cmov/libvorbis.so.0", O_RDONLY) = -1 ENOENT (No  such file or directory)
[pid  7485] open("./lib/tls/i686/libvorbis.so.0", O_RDONLY) = -1 ENOENT (No such  file or directory)
[pid  7485] open("./lib/tls/sse2/cmov/libvorbis.so.0", O_RDONLY) = -1 ENOENT (No  such file or directory)
[pid  7485] open("./lib/tls/sse2/libvorbis.so.0", O_RDONLY) = -1 ENOENT (No such  file or directory)
[pid  7485] open("./lib/tls/cmov/libvorbis.so.0", O_RDONLY) = -1 ENOENT (No such  file or directory)
[pid  7485] open("./lib/tls/libvorbis.so.0", O_RDONLY) = -1 ENOENT (No such file  or directory)
[pid  7485] open("./lib/i686/sse2/cmov/libvorbis.so.0", O_RDONLY) = -1 ENOENT (N o such file or directory)
[pid  7485] open("./lib/i686/sse2/libvorbis.so.0", O_RDONLY) = -1 ENOENT (No suc h file or directory)
[pid  7485] open("./lib/i686/cmov/libvorbis.so.0", O_RDONLY) = -1 ENOENT (No suc h file or directory)
[pid  7485] open("./lib/i686/libvorbis.so.0", O_RDONLY) = -1 ENOENT (No such fil e or directory)
[pid  7485] open("./lib/sse2/cmov/libvorbis.so.0", O_RDONLY) = -1 ENOENT (No suc h file or directory)
[pid  7485] open("./lib/sse2/libvorbis.so.0", O_RDONLY) = -1 ENOENT (No such fil e or directory)
[pid  7485] open("./lib/cmov/libvorbis.so.0", O_RDONLY) = -1 ENOENT (No such fil e or directory)
[pid  7485] open("./lib/libvorbis.so.0", O_RDONLY) = 3
[pid  7485] read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0*\0\000".. ., 512) = 512
[pid  7485] fstat64(3, {st_mode=S_IFREG|0755, st_size=176424, ...}) = 0
[pid  7485] getcwd("/home/patrick/Stuff/Defcon/Linux/defcon-v1.4-beta2b", 128) =  52
[pid  7485] mmap2(NULL, 162932, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb709c000
[pid  7485] mmap2(0xb70b5000, 61440, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED |MAP_DENYWRITE, 3, 0x19) = 0xb70b5000
[pid  7485] close(3)                    = 0
[pid  7485] open("./lib/tls/i686/sse2/cmov/libXau.so.6", O_RDONLY) = -1 ENOENT ( No such file or directory)
[pid  7485] open("./lib/tls/i686/sse2/libXau.so.6", O_RDONLY) = -1 ENOENT (No su ch file or directory)
[pid  7485] open("./lib/tls/i686/cmov/libXau.so.6", O_RDONLY) = -1 ENOENT (No su ch file or directory)
[pid  7485] open("./lib/tls/i686/libXau.so.6", O_RDONLY) = -1 ENOENT (No such fi le or directory)
[pid  7485] open("./lib/tls/sse2/cmov/libXau.so.6", O_RDONLY) = -1 ENOENT (No su ch file or directory)
[pid  7485] open("./lib/tls/sse2/libXau.so.6", O_RDONLY) = -1 ENOENT (No such fi le or directory)
[pid  7485] open("./lib/tls/cmov/libXau.so.6", O_RDONLY) = -1 ENOENT (No such fi le or directory)
[pid  7485] open("./lib/tls/libXau.so.6", O_RDONLY) = -1 ENOENT (No such file or  directory)
[pid  7485] open("./lib/i686/sse2/cmov/libXau.so.6", O_RDONLY) = -1 ENOENT (No s uch file or directory)
[pid  7485] open("./lib/i686/sse2/libXau.so.6", O_RDONLY) = -1 ENOENT (No such f ile or directory)
[pid  7485] open("./lib/i686/cmov/libXau.so.6", O_RDONLY) = -1 ENOENT (No such f ile or directory)
[pid  7485] open("./lib/i686/libXau.so.6", O_RDONLY) = -1 ENOENT (No such file o r directory)
[pid  7485] open("./lib/sse2/cmov/libXau.so.6", O_RDONLY) = -1 ENOENT (No such f ile or directory)
[pid  7485] open("./lib/sse2/libXau.so.6", O_RDONLY) = -1 ENOENT (No such file o r directory)
[pid  7485] open("./lib/cmov/libXau.so.6", O_RDONLY) = -1 ENOENT (No such file o r directory)
[pid  7485] open("./lib/libXau.so.6", O_RDONLY) = -1 ENOENT (No such file or dir ectory)
[pid  7485] open("tls/i686/sse2/cmov/libXau.so.6", O_RDONLY) = -1 ENOENT (No suc h file or directory)
[pid  7485] open("tls/i686/sse2/libXau.so.6", O_RDONLY) = -1 ENOENT (No such fil e or directory)
[pid  7485] open("tls/i686/cmov/libXau.so.6", O_RDONLY) = -1 ENOENT (No such fil e or directory)
[pid  7485] open("tls/i686/libXau.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
[pid  7485] open("tls/sse2/cmov/libXau.so.6", O_RDONLY) = -1 ENOENT (No such fil e or directory)
[pid  7485] open("tls/sse2/libXau.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
[pid  7485] open("tls/cmov/libXau.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
[pid  7485] open("tls/libXau.so.6", O_RDONLY) = -1 ENOENT (No such file or direc tory)
[pid  7485] open("i686/sse2/cmov/libXau.so.6", O_RDONLY) = -1 ENOENT (No such fi le or directory)
[pid  7485] open("i686/sse2/libXau.so.6", O_RDONLY) = -1 ENOENT (No such file or  directory)
[pid  7485] open("i686/cmov/libXau.so.6", O_RDONLY) = -1 ENOENT (No such file or  directory)
[pid  7485] open("i686/libXau.so.6", O_RDONLY) = -1 ENOENT (No such file or dire ctory)
[pid  7485] open("sse2/cmov/libXau.so.6", O_RDONLY) = -1 ENOENT (No such file or  directory)
[pid  7485] open("sse2/libXau.so.6", O_RDONLY) = -1 ENOENT (No such file or dire ctory)
[pid  7485] open("cmov/libXau.so.6", O_RDONLY) = -1 ENOENT (No such file or dire ctory)
[pid  7485] open("libXau.so.6", O_RDONLY) = -1 ENOENT (No such file or directory )
[pid  7485] access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or dire ctory)
[pid  7485] open("/usr/lib/libXau.so.6", O_RDONLY) = 3
[pid  7485] read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0\n\0\000". .., 512) = 512
[pid  7485] fstat64(3, {st_mode=S_IFREG|0644, st_size=7220, ...}) = 0
[pid  7485] mmap2(NULL, 10164, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3 , 0) = 0xb7099000
[pid  7485] mmap2(0xb709b000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED| MAP_DENYWRITE, 3, 0x1) = 0xb709b000
[pid  7485] close(3)                    = 0
[pid  7485] open("./lib/tls/i686/sse2/cmov/libXdmcp.so.6", O_RDONLY) = -1 ENOENT  (No such file or directory)
[pid  7485] open("./lib/tls/i686/sse2/libXdmcp.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
[pid  7485] open("./lib/tls/i686/cmov/libXdmcp.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
[pid  7485] open("./lib/tls/i686/libXdmcp.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
[pid  7485] open("./lib/tls/sse2/cmov/libXdmcp.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
[pid  7485] open("./lib/tls/sse2/libXdmcp.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
[pid  7485] open("./lib/tls/cmov/libXdmcp.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
[pid  7485] open("./lib/tls/libXdmcp.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
[pid  7485] open("./lib/i686/sse2/cmov/libXdmcp.so.6", O_RDONLY) = -1 ENOENT (No  such file or directory)
[pid  7485] open("./lib/i686/sse2/libXdmcp.so.6", O_RDONLY) = -1 ENOENT (No such  file or directory)
[pid  7485] open("./lib/i686/cmov/libXdmcp.so.6", O_RDONLY) = -1 ENOENT (No such  file or directory)
[pid  7485] open("./lib/i686/libXdmcp.so.6", O_RDONLY) = -1 ENOENT (No such file  or directory)
[pid  7485] open("./lib/sse2/cmov/libXdmcp.so.6", O_RDONLY) = -1 ENOENT (No such  file or directory)
[pid  7485] open("./lib/sse2/libXdmcp.so.6", O_RDONLY) = -1 ENOENT (No such file  or directory)
[pid  7485] open("./lib/cmov/libXdmcp.so.6", O_RDONLY) = -1 ENOENT (No such file  or directory)
[pid  7485] open("./lib/libXdmcp.so.6", O_RDONLY) = -1 ENOENT (No such file or d irectory)
[pid  7485] open("tls/i686/sse2/cmov/libXdmcp.so.6", O_RDONLY) = -1 ENOENT (No s uch file or directory)
[pid  7485] open("tls/i686/sse2/libXdmcp.so.6", O_RDONLY) = -1 ENOENT (No such f ile or directory)
[pid  7485] open("tls/i686/cmov/libXdmcp.so.6", O_RDONLY) = -1 ENOENT (No such f ile or directory)
[pid  7485] open("tls/i686/libXdmcp.so.6", O_RDONLY) = -1 ENOENT (No such file o r directory)
[pid  7485] open("tls/sse2/cmov/libXdmcp.so.6", O_RDONLY) = -1 ENOENT (No such f ile or directory)
[pid  7485] open("tls/sse2/libXdmcp.so.6", O_RDONLY) = -1 ENOENT (No such file o r directory)
[pid  7485] open("tls/cmov/libXdmcp.so.6", O_RDONLY) = -1 ENOENT (No such file o r directory)
[pid  7485] open("tls/libXdmcp.so.6", O_RDONLY) = -1 ENOENT (No such file or dir ectory)
[pid  7485] open("i686/sse2/cmov/libXdmcp.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
[pid  7485] open("i686/sse2/libXdmcp.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
[pid  7485] open("i686/cmov/libXdmcp.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
[pid  7485] open("i686/libXdmcp.so.6", O_RDONLY) = -1 ENOENT (No such file or di rectory)
[pid  7485] open("sse2/cmov/libXdmcp.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
[pid  7485] open("sse2/libXdmcp.so.6", O_RDONLY) = -1 ENOENT (No such file or di rectory)
[pid  7485] open("cmov/libXdmcp.so.6", O_RDONLY) = -1 ENOENT (No such file or di rectory)
[pid  7485] open("libXdmcp.so.6", O_RDONLY) = -1 ENOENT (No such file or directo ry)
[pid  7485] access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or dire ctory)
[pid  7485] open("/usr/lib/libXdmcp.so.6", O_RDONLY) = 3
[pid  7485] read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0\17\0"...,  512) = 512
[pid  7485] fstat64(3, {st_mode=S_IFREG|0644, st_size=16672, ...}) = 0
[pid  7485] mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, - 1, 0) = 0xb7098000
[pid  7485] mmap2(NULL, 19604, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3 , 0) = 0xb7093000
[pid  7485] mmap2(0xb7097000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED| MAP_DENYWRITE, 3, 0x3) = 0xb7097000
[pid  7485] close(3)                    = 0
[pid  7485] open("./lib/tls/i686/sse2/cmov/libogg.so.0", O_RDONLY) = -1 ENOENT ( No such file or directory)
[pid  7485] open("./lib/tls/i686/sse2/libogg.so.0", O_RDONLY) = -1 ENOENT (No su ch file or directory)
[pid  7485] open("./lib/tls/i686/cmov/libogg.so.0", O_RDONLY) = -1 ENOENT (No su ch file or directory)
[pid  7485] open("./lib/tls/i686/libogg.so.0", O_RDONLY) = -1 ENOENT (No such fi le or directory)
[pid  7485] open("./lib/tls/sse2/cmov/libogg.so.0", O_RDONLY) = -1 ENOENT (No su ch file or directory)
[pid  7485] open("./lib/tls/sse2/libogg.so.0", O_RDONLY) = -1 ENOENT (No such fi le or directory)
[pid  7485] open("./lib/tls/cmov/libogg.so.0", O_RDONLY) = -1 ENOENT (No such fi le or directory)
[pid  7485] open("./lib/tls/libogg.so.0", O_RDONLY) = -1 ENOENT (No such file or  directory)
[pid  7485] open("./lib/i686/sse2/cmov/libogg.so.0", O_RDONLY) = -1 ENOENT (No s uch file or directory)
[pid  7485] open("./lib/i686/sse2/libogg.so.0", O_RDONLY) = -1 ENOENT (No such f ile or directory)
[pid  7485] open("./lib/i686/cmov/libogg.so.0", O_RDONLY) = -1 ENOENT (No such f ile or directory)
[pid  7485] open("./lib/i686/libogg.so.0", O_RDONLY) = -1 ENOENT (No such file o r directory)
[pid  7485] open("./lib/sse2/cmov/libogg.so.0", O_RDONLY) = -1 ENOENT (No such f ile or directory)
[pid  7485] open("./lib/sse2/libogg.so.0", O_RDONLY) = -1 ENOENT (No such file o r directory)
[pid  7485] open("./lib/cmov/libogg.so.0", O_RDONLY) = -1 ENOENT (No such file o r directory)
[pid  7485] open("./lib/libogg.so.0", O_RDONLY) = 3
[pid  7485] read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0P\22\0\000". .., 512) = 512
[pid  7485] fstat64(3, {st_mode=S_IFREG|0755, st_size=38796, ...}) = 0
[pid  7485] getcwd("/home/patrick/Stuff/Defcon/Linux/defcon-v1.4-beta2b", 128) =  52
[pid  7485] mmap2(NULL, 18728, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3 , 0) = 0xb708e000
[pid  7485] mmap2(0xb7092000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED| MAP_DENYWRITE, 3, 0x3) = 0xb7092000
[pid  7485] close(3)                    = 0
[pid  7485] mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, - 1, 0) = 0xb708d000
[pid  7485] mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, - 1, 0) = 0xb708c000
[pid  7485] mprotect(0xb71be000, 4096, PROT_READ|PROT_WRITE) = 0
[pid  7485] mprotect(0xb71be000, 4096, PROT_READ|PROT_EXEC) = 0
[pid  7485] mprotect(0xb71c1000, 9654272, PROT_READ|PROT_WRITE) = 0
[pid  7485] mprotect(0xb71c1000, 9654272, PROT_READ|PROT_EXEC) = 0
[pid  7485] mprotect(0xb7c6f000, 20480, PROT_READ) = 0
[pid  7485] mprotect(0xb7d84000, 12288, PROT_READ) = 0
[pid  7485] mprotect(0xb7e16000, 491520, PROT_READ|PROT_WRITE) = 0
[pid  7485] mprotect(0xb7e16000, 491520, PROT_READ|PROT_EXEC) = 0
[pid  7485] set_thread_area({entry_number:-1 -> 6, base_addr:0xb708c6c0, limit:1 048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_pre sent:0, useable:1}) = 0
[pid  7485] munmap(0xb7eaa000, 96716)   = 0
[pid  7485] set_tid_address(0xb708c708) = 7485
[pid  7485] rt_sigaction(SIGRTMIN, {0xb7b3a4c0, [], SA_SIGINFO}, NULL, 8) = 0
[pid  7485] rt_sigaction(SIGRT_1, {0xb7b3a420, [], SA_RESTART|SA_SIGINFO}, NULL,  8) = 0
[pid  7485] rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
[pid  7485] getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM_INFINITY} ) = 0
[pid  7485] uname({sys="Linux", node="debian", ...}) = 0
[pid  7485] futex(0xb7d8a4fc, FUTEX_WAKE, 2147483647) = 0
[pid  7485] brk(0)                      = 0x81dd000
[pid  7485] brk(0x81fe000)              = 0x81fe000
[pid  7485] futex(0xb7b35070, FUTEX_WAKE, 2147483647) = 0
[pid  7485] gettimeofday({1174150329, 192540}, NULL) = 0
[pid  7485] open("/dev/zero", O_RDWR)   = 3
[pid  7485] mmap2(NULL, 8192, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE, 3, 0)  = 0xb7ec0000
[pid  7485] close(3)                    = 0
[pid  7485] mmap2(NULL, 425984, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,  -1, 0) = 0xb7024000
[pid  7485] --- SIGSEGV (Segmentation fault) @ 0 (0) ---
Process 7479 resumed
Process 7485 detached
<... waitpid resumed> [{WIFSIGNALED(s) && WTERMSIG(s) == SIGSEGV}], 0) = 7485
open("/usr/share/locale/locale.alias", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=2582, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7 f11000
read(3, "# Locale name alias data base.\n#"..., 4096) = 2582
brk(0x8101000)                          = 0x8101000
brk(0x8102000)                          = 0x8102000
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0xb7f11000, 4096)                = 0
open("/usr/share/locale/en_GB/LC_MESSAGES/libc.mo", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=1474, ...}) = 0
mmap2(NULL, 1474, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f11000
close(3)                                = 0
brk(0x8104000)                          = 0x8104000
open("/usr/share/locale/en/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
write(2, "./defcon: line 46:  7485 Segment"..., 79./defcon: line 46:  7485 Segme ntation fault      $here/lib/defcon.bin.x86 "$@"
) = 79
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
--- SIGCHLD (Child exited) @ 0 (0) ---
waitpid(-1, 0xbfef9e2c, WNOHANG)        = -1 ECHILD (No child processes)
sigreturn()                             = ? (mask now [])
rt_sigaction(SIGINT, {SIG_DFL}, {0x807b920, [], 0}, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
read(255, "", 1190)                     = 0
exit_group(139)                         = ?
Process 7479 detached
 
Old 03-18-2007, 11:38 AM   #5
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 52
No, the locales are fine.
xdmcp is fine:
Quote:
[pid 7485] open("/usr/lib/libXdmcp.so.6", O_RDONLY) = 3

Quote:
[pid 7485] open("/dev/zero", O_RDWR) = 3
[pid 7485] mmap2(NULL, 8192, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xb7ec0000
[pid 7485] close(3) = 0
[pid 7485] mmap2(NULL, 425984, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7024000
[pid 7485] --- SIGSEGV (Segmentation fault) @ 0 (0) ---
It's a generic error. Not much info. Could be an error in the app or a problem loading a shared library.

try
Code:
ldd `which application`
Also you could recompile an application that crashes and see if it still crashes. I'm thinking of a STANDARD maintained application.
 
Old 03-18-2007, 12:10 PM   #6
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 114Reputation: 114
Usually, unless you are developing and debugging, a segfault means you have missing libraries or incorrect versions of libraries.

Since you say that you have properly installed packages that are not being found, this suggests that there could be a problem with your library search paths. Take a look at the file /etc/ld.so.conf and make sure that all the important paths are there. What will be there will vary from system to system, but certainly /lib, /usr/lib, /usr/local/lib, and /usr/X11R6/lib should be there, and at the front of the list.

If any of those paths are not there, add them, then run ldconfig. This may cause your problems to vanish, or you may then have to reinstall some packages.

You also should do a locate or a find to determine where the libraries that you have installed are actually located, and you should make sure that the appropriate directory(s) are in ld.so.conf.
 
Old 03-18-2007, 12:41 PM   #7
CloudyWizzard
Member
 
Registered: Jul 2004
Location: Belgium
Distribution: Debian Squeeze
Posts: 194

Original Poster
Rep: Reputation: 31
Hmm, the only 2 paths in that file were /usr/lib/atlas/sse2 and /usr/lib/sse2

I added the ones you sugested but unfortunatly that doesn't fix the problem, the most libraries are located in /usr/lib and I added that one to the config files

I checked that file on my laptop and it contains difrent information, but copying that into the ld.so.conf didn't work eihter.
 
Old 03-18-2007, 12:52 PM   #8
CloudyWizzard
Member
 
Registered: Jul 2004
Location: Belgium
Distribution: Debian Squeeze
Posts: 194

Original Poster
Rep: Reputation: 31
Thumbs up

Ok, after some examining of the output given by the strace -f command (I made it output the lot to a text file and I saw some ld.so.xxx related error messages. So I did a google search and found this command :
Code:
touch /etc/ld.so.nohwcap
after running this as root, the problem seems to be fixed, at least XMMS will now work. The game Defcon still doesn't start but I get a diffrent error message now :

Quote:
./defcon
SDL Version: Compiled against 1.2.11, running with 1.2.11
SDL_SetVideoMode failed with 'Couldn't find matching GLX visual'. Switching to 16-bit Z-Buffer.
SDL_SetVideoMode failed with 'Couldn't find matching GLX visual'. Can't continue.
SDL_SetVideoMode failed with 'Couldn't find matching GLX visual'. Can't continue.
Failed to set screen modeterminate called without an active exception
./defcon: line 46: 31035 Aborted $here/lib/defcon.bin.x86 "$@"
so I guess it's now no longer a segfault error but a display driver error (will need to check if my NVidia stuff is installed correctly I guess).

Thanks for the assistance guys !!
 
Old 07-10-2007, 11:47 AM   #9
danaketh
LQ Newbie
 
Registered: Jul 2007
Location: Czech Republic, Prague
Distribution: Debian (stable)
Posts: 25

Rep: Reputation: 15
hey, I used your suggestion and my problem simply vanished... XMMS, Amarok and some other apps now started without problems... thanks...

Code:
touch /etc/ld.so.nohwcap
worked for me perfect
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
segmentation fault kumarangopi Programming 6 11-29-2006 03:57 AM
segmentation fault guy_ripper Linux - Software 1 11-21-2006 01:10 AM
yast segmentation fault, system freezing - nvidia driver at fault? BaltikaTroika Suse/Novell 2 12-02-2005 09:34 AM
Segmentation Fault redhatnoob Linux - Software 3 11-13-2003 02:11 AM
Segmentation Fault Errors snocked Linux - Hardware 4 07-31-2003 10:25 PM


All times are GMT -5. The time now is 10:03 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration