[resolved] segmentation fault ./ryzom_client

Added by angelus over 4 years ago

Hello,

I try ryzom_client on Slackware 64 with multilib32 but I have a segmentation fault.

Here the result with ld command :

# ld ryzom_client
ld: i386 architecture of input file `ryzom_client' is incompatible with i386:x86-64 output
ld: error in ryzom_client(.eh_frame); no .eh_frame_hdr table will be created.
ld: warning: cannot find entry symbol _start; defaulting to 000000000083b970
zsh: exit 1 ld ryzom_client

And strace command :

#strace ryzom_client
execve("./ryzom_client", ["ryzom_client"], [/* 56 vars */]) = 0
[ Process PID=11330 runs in 32 bit mode. ]
brk(0) = 0xa042000
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xfffffffff7738000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=136159, ...}) = 0
mmap2(NULL, 136159, PROT_READ, MAP_PRIVATE, 3, 0) = 0xfffffffff7716000
close(3) = 0
open("/usr/lib/libGL.so.1", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\260\371\2\0004\0\0\0\304"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=757572, ...}) = 0
mmap2(NULL, 822528, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xfffffffff764d000
mmap2(0xf76e9000, 122880, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x9b) = 0xfffffffff76e9000
mmap2(0xf7707000, 60672, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xfffffffff7707000
close(3) = 0
open("/usr/lib/libXxf86vm.so.1", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\340\n\0\0004\0\0\0D"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=15916, ...}) = 0
mmap2(NULL, 18752, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xfffffffff7648000
mmap2(0xf764c000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3) = 0xfffffffff764c000
close(3) = 0
open("/usr/lib/libXrandr.so.2", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\260\21\0\0004\0\0\0\34"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=25780, ...}) = 0
mmap2(NULL, 28608, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xfffffffff7641000
mmap2(0xf7647000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x5) = 0xfffffffff7647000
close(3) = 0
open("/usr/lib/libXrender.so.1", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 \23\0\0004\0\0\0\330"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=31128, ...}) = 0
mmap2(NULL, 33804, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xfffffffff7638000
mmap2(0xf7640000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x7) = 0xfffffffff7640000
close(3) = 0
open("/lib/libdl.so.2", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 \n\0\0004\0\0\0L"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=12980, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xfffffffff7637000
mmap2(NULL, 12408, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xfffffffff7633000
mmap2(0xf7635000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1) = 0xfffffffff7635000
close(3) = 0
open("/lib/librt.so.1", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\240\30\0\0004\0\0\0\250"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=38496, ...}) = 0
mmap2(NULL, 33360, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xfffffffff762a000
mmap2(0xf7631000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x6) = 0xfffffffff7631000
close(3) = 0
open("/lib/libpthread.so.0", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0@I\0\0004\0\0\0\334"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=116309, ...}) = 0
mmap2(NULL, 98784, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xfffffffff7611000
mmap2(0xf7626000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x14) = 0xfffffffff7626000
mmap2(0xf7628000, 4576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xfffffffff7628000
close(3) = 0
open("/usr/lib/libX11.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0?\1\0004\0\0\0l"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1159764, ...}) = 0
mmap2(NULL, 1156456, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xfffffffff74f6000
mmap2(0xf760d000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x116) = 0xfffffffff760d000
close(3) = 0
open("/usr/lib/libstdc++.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\240\33\4\0004\0\0\0\30"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=950432, ...}) = 0
mmap2(NULL, 979852, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xfffffffff7406000
mmap2(0xf74ea000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xe3) = 0xfffffffff74ea000
mmap2(0xf74ef000, 25484, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xfffffffff74ef000
close(3) = 0
open("/lib/libm.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0@4\0\0004\0\0\0\\"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=174358, ...}) = 0
mmap2(NULL, 151680, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xfffffffff73e0000
mmap2(0xf7404000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x23) = 0xfffffffff7404000
close(3) = 0
open("/lib/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\340l\1\0004\0\0\0<"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1637920, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xfffffffff73df000
mmap2(NULL, 1452296, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xfffffffff727c000
mprotect(0xf73d8000, 4096, PROT_NONE) = 0
mmap2(0xf73d9000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x15c) = 0xfffffffff73d9000
mmap2(0xf73dc000, 10504, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xfffffffff73dc000
close(3) = 0
open("/usr/lib/libgcc_s.so.1", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0p\36\0\0004\0\0\0\360"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=115200, ...}) = 0
mmap2(NULL, 118376, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xfffffffff725f000
mmap2(0xf727b000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1b) = 0xfffffffff727b000
close(3) = 0
open("/usr/lib/libnvidia-tls.so.260.19.21", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0\6\0\0004\0\0\0\374"..., 512) = 512
lseek(3, 3488, SEEK_SET) = 3488
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\5\0\0\0"..., 32) = 32
fstat64(3, {st_mode=S_IFREG|0755, st_size=4436, ...}) = 0
mmap2(NULL, 7968, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xfffffffff725d000
mmap2(0xf725e000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0) = 0xfffffffff725e000
close(3) = 0
open("/usr/lib/libnvidia-glcore.so.260.19.21", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0G5\0004\0\0\0T"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=23726100, ...}) = 0
mmap2(NULL, 23792064, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xfffffffff5bac000
mmap2(0xf71f1000, 376832, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1645) = 0xfffffffff71f1000
mmap2(0xf724d000, 63936, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xfffffffff724d000
close(3) = 0
open("/usr/lib/libXext.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\240&\0\0004\0\0\0\364"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=56540, ...}) = 0
mmap2(NULL, 55328, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xfffffffff5b9e000
mmap2(0xf5bab000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xd) = 0xfffffffff5bab000
close(3) = 0
open("/usr/lib/libxcb.so.1", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0000q\0\0004\0\0\0\364"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=94684, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xfffffffff5b9d000
mmap2(NULL, 97464, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xfffffffff5b85000
mmap2(0xf5b9c000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x16) = 0xfffffffff5b9c000
close(3) = 0
open("/usr/lib/libXau.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\240\t\0\0004\0\0\0\334"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=7580, ...}) = 0
mmap2(NULL, 10336, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xfffffffff5b82000
mmap2(0xf5b84000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1) = 0xfffffffff5b84000
close(3) = 0
open("/usr/lib/libXdmcp.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\320\r\0\0004\0\0\0H"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=17160, ...}) = 0
mmap2(NULL, 19316, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xfffffffff5b7d000
mmap2(0xf5b81000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3) = 0xfffffffff5b81000
close(3) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xfffffffff5b7c000
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xfffffffff5b7b000
set_thread_area(0xffbd92f8) = 0
mprotect(0xf5bac000, 23351296, PROT_READ|PROT_WRITE) = 0
mprotect(0xf5bac000, 23351296, PROT_READ|PROT_EXEC) = 0
mprotect(0xf725d000, 4096, PROT_READ|PROT_WRITE) = 0
mprotect(0xf725d000, 4096, PROT_READ|PROT_EXEC) = 0
mprotect(0xf73d9000, 8192, PROT_READ) = 0
mprotect(0xf7404000, 4096, PROT_READ) = 0
mprotect(0xf74ea000, 16384, PROT_READ) = 0
mprotect(0xf7626000, 4096, PROT_READ) = 0
mprotect(0xf7631000, 4096, PROT_READ) = 0
mprotect(0xf7635000, 4096, PROT_READ) = 0
mprotect(0xf764d000, 638976, PROT_READ|PROT_WRITE) = 0
mprotect(0xf764d000, 638976, PROT_READ|PROT_EXEC) = 0
mprotect(0xf7756000, 4096, PROT_READ) = 0
munmap(0xf7716000, 136159) = 0
set_tid_address(0xf5b7b738) = 11330
set_robust_list(0xf5b7b740, 0xc) = 0
futex(0xffbd9440, FUTEX_WAKE_PRIVATE, 1) = 0
futex(0xffbd9440, 0x189 /* FUTEX_??? */, 1, NULL, ffbd9450) = -1 EAGAIN (Resource temporarily unavailable)
rt_sigaction(SIGRTMIN, {0x4f7615390, [], SA_RESTORER|SA_STACK|SA_RESTART|SA_INTERRUPT|SA_NODEFER|SA_RESETHAND|0x3bd91a0, (nil)}, NULL, 8) = 0
rt_sigaction(SIGRT_1, {0x10000004f7615820, [], SA_RESTORER|SA_STACK|SA_RESTART|SA_INTERRUPT|SA_NODEFER|SA_RESETHAND|0x3bd91a0, (nil)}, NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
getrlimit(RLIMIT_STACK, {rlim_cur=-4286578688, rlim_max=-620810704861003760}) = 0
uname({sys="Linux", node="angel", ...}) = 0
brk(0) = 0xa042000
brk(0xa063000) = 0xa063000
futex(0xf763606c, FUTEX_WAKE_PRIVATE, 2147483647) = 0
gettimeofday({1290462726, 786629}, NULL) = 0
getpid() = 11330
getpid() = 11330
getpid() = 11330
futex(0xf7707678, FUTEX_WAKE_PRIVATE, 2147483647) = 0
--- SIGSEGV (Segmentation fault)
0 (0) ---
++ killed by SIGSEGV ++@

Any help I can get would be great.
Thank you.


Replies (7)

RE: segmentation fault ./ryzom_client - Added by kervala over 4 years ago

And with GDB please ?

RE: segmentation fault ./ryzom_client - Added by angelus over 4 years ago

With GDB :

@GNU gdb (GDB) 7.1
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-slackware-linux".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/local/games/ryzom/ryzom_client...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/local/games/ryzom/ryzom_client
[Thread debugging using libthread_db enabled]

Program received signal SIGSEGV, Segmentation fault.
0xf7f492e6 in ?? () from /usr/lib/libGL.so.1
(gdb) bt
#0 0xf7f492e6 in ?? () from /usr/lib/libGL.so.1
Cannot access memory at address 0xdc7@

GeForce GTX 295
NVIDIA Driver Version: 260.19.21

Thanks for your help.

RE: segmentation fault ./ryzom_client - Added by kervala over 4 years ago

If you're using binary from sourceforge, you should download ryzom_dbg.7z as client with GDB so you will get all symbols :)

RE: segmentation fault ./ryzom_client - Added by angelus over 4 years ago

OK, I test with ryzom_dbg :

@Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-slackware-linux".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/local/games/ryzom_dbg/ryzom_client_dbg...done.
(gdb) run
Starting program: /usr/local/games/ryzom_dbg/ryzom_client_dbg
[Thread debugging using libthread_db enabled]

Program received signal SIGSEGV, Segmentation fault.
0xf7f492e6 in ?? () from /usr/lib/libGL.so.1
(gdb) bt
#0 0xf7f492e6 in ?? () from /usr/lib/libGL.so.1
Cannot access memory at address 0x1159@

Thanks for your help.

RE: segmentation fault ./ryzom_client - Added by kervala over 4 years ago

Hum that's really strange.

Did you check your "log.log" file to see if there is a error ?

RE: segmentation fault ./ryzom_client - Added by angelus over 4 years ago

mmmhhh...

my apologies!!!!

When I installed multilib, the NVIDIA's libraries are replaced and I forgot to reinstall drivers...

Thank you for your help.

(1-7/7)