July 6, 200520 yr fgfs 0.98 and js_demo crashes with Segmentation Fault as soon as a Joystick is connected.loho_# dmesg|grep Joystick #looks okinput: USB HID v1.10 Joystick [Logitech Logitech Freedom 2.4] on usb-0000:00:10.0-2/dev/input/js0 exists an can be probed by jstestI got freedom2-4.xml from cvs and added a refference for it joysticks.xml :loho_# ldd /usr/bin/js_demo linux-gate.so.1 => (0xffffe000) libdl.so.2 => /lib/libdl.so.2 (0x00690000) libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x00a9b000) libm.so.6 => /lib/tls/libm.so.6 (0x0066b000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00931000) libc.so.6 => /lib/tls/libc.so.6 (0x00542000) /lib/ld-linux.so.2 (0x00529000)fc3, 2.6.10 vanillathanks for any hint ...
July 7, 200520 yr >fgfs 0.98 and js_demo crashes with Segmentation Fault as soon>as a Joystick is connected.As "a" js is connected (any one?), or only with this Freedom thingy? >I got freedom2-4.xml from cvs and added a refference for it>joysticks.xml :>Looks good so far, but the flaps wouldn't work. Drivers from cvs don't necessarily work with older fgfs versions. But this doesn't justify a crash, especially not a js_demo crash.>loho_# ldd /usr/bin/js_demoThis doesn't really help. What might help is a stacktrace, but only if js_demo has been compiled with debug symbols. Run js_demo in gdb, and post the first few lines of the backtrace (bt): $ gdb js_demo ... (gdb) run ... (gdb) btPS: I consider this unofficial forum highly unsuited for any serious fgfs support. The flightgear-users list is a better place, or even the IRC channel.
July 10, 200520 yr thanks for your reply, mfranz. gdb-session is short, however. (gdb) runStarting program: /usr/bin/js_demoReading symbols from shared object read from target memory...(no debugging symbols found)...done.Loaded system supplied DSO at 0xffffe000(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...Program received signal SIGSEGV, Segmentation fault.0x00000000 in ?? ()(gdb) bt#0 0x00000000 in ?? ()
July 11, 200520 yr you should use an executable WITH debugging information not being stripped, anything else is unlikely to yield any relevant information easily.
July 11, 200520 yr thanks, hfitz.the problem exists with prebuilt binaries as well as with with sourcecode-build executables : - FlightGear-0.9.8 - openal-050707-cvs - plib-1.8.4 - SimGear-0.3.8 - freeglut-devel-2.2.0-14, freeglut-2.2.0-14)# gdb ./js_demoGNU gdb Red Hat Linux (6.1post-1.20040607.43rh)Copyright 2004 Free Software Foundation, Inc.GDB is free software, covered by the GNU General Public License, and you arewelcome to change it and/or distribute copies of it under certain conditions.Type "show copying" to see the conditions.There is absolutely no warranty for GDB. Type "show warranty" for details.This GDB was configured as "i386-redhat-linux-gnu"...Using host libthread_db library "/lib/tls/libthread_db.so.1".(gdb) runStarting program: /usr/local/FlightGear/bin/js_demoReading symbols from shared object read from target memory...done.Loaded system supplied DSO at 0xffffe000Program received signal SIGSEGV, Segmentation fault.0x00000000 in ?? ()(gdb) bt#0 0x00000000 in ?? ()# strace ./js_demoexecve("./js_demo", ["./js_demo"], [/* 42 vars */]) = 0uname({sys="Linux", node="samsara", ...}) = 0brk(0) = 0x804b000access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)open("/usr/X11R6/lib/tls/i686/libdl.so.2", O_RDONLY) = -1 ENOENT (No such file ordirectory)stat64("/usr/X11R6/lib/tls/i686", 0xbfffed98) = -1 ENOENT (No such file or directory)open("/usr/X11R6/lib/tls/libdl.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)stat64("/usr/X11R6/lib/tls", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0open("/usr/X11R6/lib/i686/libdl.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)stat64("/usr/X11R6/lib/i686", 0xbfffed98) = -1 ENOENT (No such file or directory)open("/usr/X11R6/lib/libdl.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)stat64("/usr/X11R6/lib", {st_mode=S_IFDIR|0755, st_size=12288, ...}) = 0open("/etc/ld.so.cache", O_RDONLY) = 3fstat64(3, {st_mode=S_IFREG|0644, st_size=105388, ...}) = 0old_mmap(NULL, 105388, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7fe6000close(3) = 0open("/lib/libdl.so.2", O_RDONLY) = 3read(3, "177ELF11100000000030301000260vi"..., 512) = 512fstat64(3, {st_mode=S_IFREG|0755, st_size=16908, ...}) = 0old_mmap(0x690000, 12388, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0)= 0x690000old_mmap(0x692000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1000) = 0x692000close(3) = 0open("/usr/X11R6/lib/tls/libstdc++.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)open("/usr/X11R6/lib/libstdc++.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)open("/usr/lib/libstdc++.so.6", O_RDONLY) = 3read(3, "177ELF11100000000030301000300272"..., 512) = 512fstat64(3, {st_mode=S_IFREG|0755, st_size=811744, ...}) = 0old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7fe5000old_mmap(0x97e000, 832180, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x97e000old_mmap(0xa3f000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xc1000) = 0xa3f000old_mmap(0xa44000, 21172, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xa44000close(3) = 0open("/usr/X11R6/lib/tls/libm.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)open("/usr/X11R6/lib/libm.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)open("/lib/tls/libm.so.6", O_RDONLY) = 3read(3, "177ELF111000000000303010000343f"..., 512) = 512fstat64(3, {st_mode=S_IFREG|0755, st_size=215248, ...}) = 0old_mmap(0x66b000, 139424, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x66b000old_mmap(0x68c000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x20000) = 0x68c000close(3) = 0open("/usr/X11R6/lib/tls/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such file ordirectory)open("/usr/X11R6/lib/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)open("/lib/libgcc_s.so.1", O_RDONLY) = 3read(3, "177ELF11100000000030301000f%223"..., 512) = 512fstat64(3, {st_mode=S_IFREG|0755, st_size=30856, ...}) = 0old_mmap(0x931000, 32184, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0)= 0x931000old_mmap(0x938000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x6000) = 0x938000close(3) = 0open("/usr/X11R6/lib/tls/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)open("/usr/X11R6/lib/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)open("/lib/tls/libc.so.6", O_RDONLY) = 3read(3, "177ELF11100000000030301000 oU000"..., 512) = 512fstat64(3, {st_mode=S_IFREG|0755, st_size=1512400, ...}) = 0old_mmap(0x542000, 1207532, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0)= 0x542000old_mmap(0x663000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x120000) = 0x663000old_mmap(0x667000, 7404, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x667000close(3) = 0old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7fe4000mprotect(0x663000, 8192, PROT_READ) = 0mprotect(0x68c000, 4096, PROT_READ) = 0mprotect(0x692000, 4096, PROT_READ) = 0mprotect(0x53e000, 4096, PROT_READ) = 0set_thread_area({entry_number:-1 -> 6, base_addr:0xb7fe4940, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0munmap(0xb7fe6000, 105388) = 0brk(0) = 0x804b000brk(0x806c000) = 0x806c000access("/dev/input/js0", F_OK) = 0open("/dev/input/js0", O_RDONLY) = 3ioctl(3, JSIOCGAXES, 0xbffff47f) = 0ioctl(3, JSIOCGBUTTONS, 0xbffff47f) = 0ioctl(3, 0x80806a13, 0x804b014) = 30fcntl64(3, F_SETFL, O_RDONLY|O_NONBLOCK) = 0ioctl(3, JSIOCGCORR, 0xbffff480) = 0ioctl(3, JSIOCSCORR, 0xbffff480) = 0--- SIGSEGV (Segmentation fault) @ 0 (0) ---+++ killed by SIGSEGV +++
July 13, 200520 yr this issue has been solved on the Flightgear-users-mailinglist. thanks to Mathias Fr
Create an account or sign in to comment