Hello Miklos, hello Jurij, Also, sprach Miklos Szeredi am Samstag, den 30. Dezember 2006 um 01:02: > I don't know what else could it be. Can you compile fuse with > debugging enabled (DEB_BUILD_OPTS=nostrip,noopt) and repeat the > experiment? The backtrace should then give a more detailed > analysis.
Also, sprach Jurij Smakov am Freitag, den 29. Dezember 2006 um 14:02: > Can you also grab the libfuse2 deb, built with debugging symbols, > from > > http://www.wooyd.org/debian/sshfs/ > > install it and repeat the gdb procedure? I did do both and here are the results: 1) I rebuilt the fuse source code (with the patch from Miklos applied!) 1.1) These variables concerning the build process were set: $ set | grep DEB_ DEB_BUILD_OPTIONS=nostrip,noopt DEB_BUILD_OPTS=nostrip,noopt 1.2) This was used to build the package: $ dpkg-buildpackage -b -rfakeroot -us -uc 1.3) This is how libfuse.so.2* looked (just so you can see I am not using the original versions): $ ls /usr/lib/libfuse.so.2* lrwxrwxrwx 1 root root 16 2006-12-30 11:13 /usr/lib/libfuse.so.2 -> libfuse.so.2.5.3 -rw-r--r-- 1 root root 197861 2006-12-30 11:11 /usr/lib/libfuse.so.2.5.3 1.4) gdb galore! $ gdb sshfs GNU gdb 6.4.90-debian Copyright (C) 2006 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome 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 "sparc-linux-gnu"...Using host libthread_db library "/lib/v9/libthread_db.so.1". (gdb) set args [EMAIL PROTECTED]:/home/smc phobos/ (gdb) run Starting program: /usr/bin/sshfs [EMAIL PROTECTED]:/home/smc phobos/ [Thread debugging using libthread_db enabled] [New Thread 16384 (LWP 10406)] Program received signal SIGBUS, Bus error. [Switching to Thread 16384 (LWP 10406)] 0xf7f65c14 in receive_fd (fd=8) at mount.c:161 161 if (!cmsg->cmsg_type == SCM_RIGHTS) { (gdb) backtrace #0 0xf7f65c14 in receive_fd (fd=8) at mount.c:161 #1 0xf7f66194 in fuse_mount_compat22 (mountpoint=0x300b8 "phobos/", opts=0x31938 "[EMAIL PROTECTED]:/home/smc,max_read=65536") at mount.c:258 #2 0xf7f66304 in fuse_mount (mountpoint=0x300b8 "phobos/", args=0xffcc32b4) at mount.c:283 #3 0xf7f65398 in fuse_setup_common (argc=4, argv=0x31800, op=0x2e938, op_size=140, mountpoint=0xffcc334c, multithreaded=0xffcc3348, fd=0xffcc3344, compat=0) at helper.c:206 #4 0xf7f655e0 in fuse_main_common (argc=4, argv=0x31800, op=0x2e938, op_size=140, compat=0) at helper.c:265 #5 0xf7f656cc in fuse_main_real (argc=4, argv=0x31800, op=0x2e938, op_size=140) at helper.c:285 #6 0x000191a0 in main (argc=3, argv=0xffcc3514) at sshfs.c:2514 (gdb) 1.5) And for completeness sake, the obligatory unaligned access Kernel unaligned access at TPC[5d3770] scm_detach_fds_compat+0x74/0x16c Kernel unaligned access at TPC[5d37dc] scm_detach_fds_compat+0xe0/0x16c Kernel unaligned access at TPC[5d37f8] scm_detach_fds_compat+0xfc/0x16c Kernel unaligned access at TPC[5d3810] scm_detach_fds_compat+0x114/0x16c ================================================ 2) These is what happened with the debs from http://www.wooyd.org/debian/sshfs/ 2.1) Again, details about the libfuses: $ ls /usr/lib/libfuse.so.2* lrwxrwxrwx 1 root root 16 2006-12-30 11:21 /usr/lib/libfuse.so.2 -> libfuse.so.2.5.3 -rw-r--r-- 1 root root 197905 2006-12-29 22:52 /usr/lib/libfuse.so.2.5.3 2.2) And now gdb's output: $ gdb sshfs GNU gdb 6.4.90-debian Copyright (C) 2006 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome 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 "sparc-linux-gnu"...Using host libthread_db library "/lib/v9/libthread_db.so.1". (gdb) set args [EMAIL PROTECTED]:/home/smc phobos/ (gdb) run Starting program: /usr/bin/sshfs [EMAIL PROTECTED]:/home/smc phobos/ [Thread debugging using libthread_db enabled] [New Thread 16384 (LWP 4593)] Program received signal SIGBUS, Bus error. [Switching to Thread 16384 (LWP 4593)] 0xf7f89c14 in receive_fd (fd=8) at mount.c:160 160 mount.c: Datei oder Verzeichnis nicht gefunden. in mount.c (gdb) backtrace #0 0xf7f89c14 in receive_fd (fd=8) at mount.c:160 #1 0xf7f8a170 in fuse_mount_compat22 (mountpoint=0x300b8 "phobos/", opts=0x31938 "[EMAIL PROTECTED]:/home/smc,max_read=65536") at mount.c:256 #2 0xf7f8a2e0 in fuse_mount (mountpoint=0x300b8 "phobos/", args=0xffed1374) at mount.c:281 #3 0xf7f89398 in fuse_setup_common (argc=4, argv=0x31800, op=0x2e938, op_size=140, mountpoint=0xffed140c, multithreaded=0xffed1408, fd=0xffed1404, compat=0) at helper.c:206 #4 0xf7f895e0 in fuse_main_common (argc=4, argv=0x31800, op=0x2e938, op_size=140, compat=0) at helper.c:265 #5 0xf7f896cc in fuse_main_real (argc=4, argv=0x31800, op=0x2e938, op_size=140) at helper.c:285 #6 0x000191a0 in main (argc=3, argv=0xffed15d4) at sshfs.c:2514 (gdb) 2.3) And it would not be complete without the unaligned accesses (yes, I know, they are somewhat subordinate right now, but, well, it would not be complete ;)): Kernel unaligned access at TPC[5d3770] scm_detach_fds_compat+0x74/0x16c Kernel unaligned access at TPC[5d37dc] scm_detach_fds_compat+0xe0/0x16c Kernel unaligned access at TPC[5d37f8] scm_detach_fds_compat+0xfc/0x16c Kernel unaligned access at TPC[5d3810] scm_detach_fds_compat+0x114/0x16c I hope this helps a bit more than the previous mails! Greetings, P.S.: I am away, probably until tomorrow noon, paying a friend a birthday visit. I do not know exactly when I will return tomorrow, and if I am of any help then, so it may well be that I am only able to reply in the new year. -- : Sebastian Fontius : www.fsfe.org : www.fsfe.org/en/fellows/smc `--------+----------+--------------+-----------------------------------. [] | "They that can give up essential liberty to obtain a little | [][][] | temporary safety deserve neither liberty nor safety." | || : Benjamin Franklin, 1759 :
signature.asc
Description: Digital signature

