Thanks for the debug build.  The 0.9.1 build seems to work fine in all
other cases except for my problem case: importing an "iTunes
Library.xml" file which references files on an ssh mount still causes
a segmentation fault in sshfs. Here is the relevant info:

Using MacFUSE 0.9.1 on intel macbook (2GHz Core 2 Duo with 2GB RAM),
running os x 10.4.10, system.log shows it loading properly:

Sep 29 15:31:32 phoebe kernel[0]: MacFUSE: stopping (version 0.4.0,
Jun  5 2007, 20:59:22)
Sep 29 15:31:32 phoebe kernel[0]: MacFUSE: starting (version 0.9.1,
Sep 28 2007, 13:28:33)

I then mounted a server on my local network with:

./shfs-static-debug [EMAIL PROTECTED]:/raid /Volumes/hearsay/ -o
volname=hearsay -o sshfs_debug -d

I then imports "iTunes Library.xml", which references files in /
Volumes/hearsay. iTunes proceeds to import mp3s, and a few dozen
appear to successfully import. But then Console shows the crash:

Sep 29 19:34:59 phoebe crashdump[18176]: sshfs-static-debug crashed
Sep 29 19:34:59 phoebe crashdump[18176]: crash report written to: /
Users/db/Library/Logs/CrashReporter/sshfs-static-debug.crash.log

The contents of sshfs-static-debug.crash.log are:

Host Name:      phoebe
Date/Time:      2007-09-29 19:34:58.893 -0400
OS Version:     10.4.10 (Build 8R2232)
Report Version: 4

Command: sshfs-static-debug
Path:    /Users/db/Desktop/sshfs-static-debug
Parent:  bash [18158]

Version: ??? (???)

PID:    18168
Thread: 4

Exception:  EXC_BAD_ACCESS (0x0001)
Codes:      KERN_INVALID_ADDRESS (0x0001) at 0x20756165

Thread 0:
0   libSystem.B.dylib   0x900bcb9c __semwait_signal + 12
1   libSystem.B.dylib   0x900860ed pthread_cond_wait$UNIX2003 + 72
2   libfuse.0.dylib     0x00212844 fuse_sem_wait + 104 (fuse_darwin.c:
223)
3   libfuse.0.dylib     0x0020d0ea fuse_session_loop_mt + 196
(fuse_loop_mt.c:208)
4   libfuse.0.dylib     0x0020f753 fuse_loop_mt + 36 (fuse_mt.c:113)
5   libfuse.0.dylib     0x00211190 fuse_main_common + 96 (helper.c:
366)
6   libfuse.0.dylib     0x002111fa fuse_main_real + 53 (helper.c:381)
7   sshfs-static-debug  0x0000899e sshfs_fuse_main + 67 (sshfs.c:2602)
8   sshfs-static-debug  0x00009136 main + 1083 (sshfs.c:2843)
9   sshfs-static-debug  0x000026fa _start + 216
10  sshfs-static-debug  0x00002621 start + 41

Thread 1:
0   libSystem.B.dylib   0x900bcb9c __semwait_signal + 12
1   libSystem.B.dylib   0x900860ed pthread_cond_wait$UNIX2003 + 72
2   libfuse.0.dylib     0x00212844 fuse_sem_wait + 104 (fuse_darwin.c:
223)
3   sshfs-static-debug  0x00004ea9 sftp_request_wait + 53 (sshfs.c:
1371)
4   sshfs-static-debug  0x0000531e sftp_request_iov + 126 (sshfs.c:
1485)
5   sshfs-static-debug  0x00005372 sftp_request + 77 (sshfs.c:1494)
6   sshfs-static-debug  0x0000548b sshfs_getattr + 274 (sshfs.c:1503)
7   sshfs-static-debug  0x000096d2 cache_getattr + 56 (cache.c:229)
8   libfuse.0.dylib     0x002071fc fuse_fs_getattr + 52 (fuse.c:752)
9   libfuse.0.dylib     0x00207edf lookup_path + 116 (fuse.c:1220)
10  libfuse.0.dylib     0x002083c4 fuse_lib_lookup + 203 (fuse.c:1380)
11  libfuse.0.dylib     0x0020dcd1 do_lookup + 37 (fuse_lowlevel.c:
442)
12  libfuse.0.dylib     0x0020f22e fuse_ll_process + 546
(fuse_lowlevel.c:1175)
13  libfuse.0.dylib     0x002104be fuse_session_process + 38
(fuse_session.c:121)
14  libfuse.0.dylib     0x0020cd8a fuse_do_work + 227 (fuse_loop_mt.c:
107)
15  libSystem.B.dylib   0x90024227 _pthread_body + 84

Thread 2:
0   libSystem.B.dylib   0x9000ffec read + 12
1   libfuse.0.dylib     0x002106c1 fuse_chan_recv + 52 (fuse_session.c:
214)
2   libfuse.0.dylib     0x0020ccdf fuse_do_work + 56 (fuse_loop_mt.c:
75)
3   libSystem.B.dylib   0x90024227 _pthread_body + 84

Thread 3:
0   libSystem.B.dylib   0x900248c7 semaphore_wait_signal_trap + 7
1   sshfs-static-debug  0x00004108 process_requests + 146 (sshfs.c:
1035)
2   libSystem.B.dylib   0x90024227 _pthread_body + 84

Thread 4 Crashed:
0   sshfs-static-debug  0x00002b95 list_del + 11 (sshfs.c:391)
1   sshfs-static-debug  0x000073b1 sshfs_flush + 106 (sshfs.c:1964)
2   sshfs-static-debug  0x00007437 sshfs_fsync + 24 (sshfs.c:1980)
3   libfuse.0.dylib     0x00207515 fuse_fs_fsync + 60 (fuse.c:870)
4   libfuse.0.dylib     0x0020a201 fuse_lib_fsync + 183 (fuse.c:2019)
5   libfuse.0.dylib     0x0020e40a do_fsync + 84 (fuse_lowlevel.c:690)
6   libfuse.0.dylib     0x0020f22e fuse_ll_process + 546
(fuse_lowlevel.c:1175)
7   libfuse.0.dylib     0x002104be fuse_session_process + 38
(fuse_session.c:121)
8   libfuse.0.dylib     0x0020cd8a fuse_do_work + 227 (fuse_loop_mt.c:
107)
9   libSystem.B.dylib   0x90024227 _pthread_body + 84

Thread 5:
0   libSystem.B.dylib   0x9000ffec read + 12
1   libfuse.0.dylib     0x002106c1 fuse_chan_recv + 52 (fuse_session.c:
214)
2   libfuse.0.dylib     0x0020ccdf fuse_do_work + 56 (fuse_loop_mt.c:
75)
3   libSystem.B.dylib   0x90024227 _pthread_body + 84

Thread 4 crashed with X86 Thread State (32-bit):
  eax: 0x20756165  ebx: 0x00007355  ecx: 0x000430e8  edx: 0x74630008
  edi: 0x00307380  esi: 0x74630008  ebp: 0xb0203d48  esp: 0xb0203d48
   ss: 0x0000001f  efl: 0x00010246  eip: 0x00002b95   cs: 0x00000017
   ds: 0x0000001f   es: 0x0000001f   fs: 0x00000000   gs: 0x00000037

Binary Images Description:
    0x1000 -    0x41fff sshfs-static-debug      /Users/db/Desktop/
sshfs-static-debug
  0x205000 -   0x216fff libfuse.0.dylib         /usr/local/lib/libfuse.
0.dylib
0x8fe00000 - 0x8fe4afff dyld 46.12      /usr/lib/dyld
0x90000000 - 0x90171fff libSystem.B.dylib       /usr/lib/
libSystem.B.dylib
0x901c1000 - 0x901c3fff libmathCommon.A.dylib   /usr/lib/system/
libmathCommon.A.dylib
0x9080b000 - 0x908d3fff com.apple.CoreFoundation 6.4.7 (368.28) /
System/Library/Frameworks/CoreFoundation.framework/Versions/A/
CoreFoundation
0x90911000 - 0x90911fff com.apple.CoreServices 10.4 (???)       /
System/Library/Frameworks/CoreServices.framework/Versions/A/
CoreServices
0x90913000 - 0x90a07fff libicucore.A.dylib      /usr/lib/
libicucore.A.dylib
0x90a57000 - 0x90ad6fff libobjc.A.dylib         /usr/lib/
libobjc.A.dylib
0x90aff000 - 0x90b63fff libstdc++.6.dylib       /usr/lib/libstdc++.
6.dylib
0x90bd2000 - 0x90bd9fff libgcc_s.1.dylib        /usr/lib/libgcc_s.
1.dylib
0x90bde000 - 0x90c51fff com.apple.framework.IOKit 1.4.8 (???)   /
System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
0x90c66000 - 0x90c78fff libauto.dylib   /usr/lib/libauto.dylib
0x90c7e000 - 0x90f24fff com.apple.CoreServices.CarbonCore
682.26        /System/Library/Frameworks/CoreServices.framework/
Versions/A/Frameworks/Carb
onCore.framework/Versions/A/CarbonCore
0x90f67000 - 0x90fcffff com.apple.CoreServices.OSServices 4.1   /
System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/
OSServices.f
ramework/Versions/A/OSServices
0x91008000 - 0x91047fff com.apple.CFNetwork 129.21      /System/
Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/
CFNetwork.framework/
Versions/A/CFNetwork
0x9105a000 - 0x9106afff com.apple.WebServices 1.1.3 (1.1.0)     /
System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/
WebServicesC
ore.framework/Versions/A/WebServicesCore
0x91075000 - 0x910f4fff com.apple.SearchKit 1.0.5       /System/
Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/
SearchKit.framework/
Versions/A/SearchKit
0x9112e000 - 0x9114cfff com.apple.Metadata 10.4.4 (121.36)      /
System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/
Metadata.fra
mework/Versions/A/Metadata
0x91158000 - 0x91166fff libz.1.dylib    /usr/lib/libz.1.dylib
0x91169000 - 0x91308fff com.apple.security 4.5.2 (29774)        /
System/Library/Frameworks/Security.framework/Versions/A/Security
0x91406000 - 0x9140efff com.apple.DiskArbitration 2.1.1 /System/
Library/Frameworks/DiskArbitration.framework/Versions/A/
DiskArbitration
0x91415000 - 0x9141cfff libbsm.dylib    /usr/lib/libbsm.dylib
0x91420000 - 0x91446fff com.apple.SystemConfiguration 1.8.6     /
System/Library/Frameworks/SystemConfiguration.framework/Versions/A/
SystemConfigurat
ion
0x9262b000 - 0x92718fff libiconv.2.dylib        /usr/lib/libiconv.
2.dylib




The output of sshfs-static-debug ends with:


LOOKUP /Music/Cocteau Twins/Evangeline Sp/._01 Evangeline.mp3
[01090] LSTAT
  [01090]         STATUS       33bytes (0ms)
   unique: 1, error: -2 (No such file or directory), outsize: 16
unique: 0, opcode: OPEN (14), nodeid: 59, insize: 48
[01091] OPEN
[01092] LSTAT
  [01091]         HANDLE       17bytes (1ms)
  [01092]          ATTRS       41bytes (1ms)
   unique: 0, error: 0 (Unknown error: 0), outsize: 32
OPEN[3175296] flags: 0x0 /Music/Cocteau Twins/Evangeline Sp/01
Evangeline.mp3
unique: 2, opcode: READ (15), nodeid: 59, insize: 64
READ[3175296] 4096 bytes from 0
[01093] READ
  [01093]           DATA     4109bytes (14ms)
   READ[3175296] 4096 bytes
   unique: 2, error: 0 (Unknown error: 0), outsize: 4112
unique: 1, opcode: FSYNC (20), nodeid: 59, insize: 56
unique: 0, opcode: FLUSH (25), nodeid: 59, insize: 64
FLUSH[3175296]
   unique: 0, error: 0 (Unknown error: 0), outsize: 16
unique: 2, opcode: RELEASE (18), nodeid: 59, insize: 64
RELEASE[3175296] flags: 0x0
[01094] CLOSE
   unique: 2, error: 0 (Unknown error: 0), outsize: 16
unique: 0, opcode: LOOKUP (1), nodeid: 58, insize: 60
LOOKUP /Music/Cocteau Twins/Evangeline Sp/._01 Evangeline.mp3
[01095] LSTAT
FSYNC[3175296]
Segmentation fault

The entire console output is available here (it's not too long):

  http://mosey.org/pub/sshfs-static-debug-crash-1.txt


The only thing that strikes me as weird about the output of sshfs-
static-debug is the fact that it keeps trying to access a file that
does not exist: "._01 Evangeline.mp3". I assume this is some sort of
temporary file created by iTunes during its import process, but I
can't see how that would trigger a problem with sshfs....

Any thoughts or insights into this problem would be appreciated.

db


On Sep 28, 4:55 pm, Amit Singh <[EMAIL PROTECTED]> wrote:
> http://osxbook.com/tmp/macfuse/


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"macfuse-devel" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/macfuse-devel?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to