Summary: I was able to reproduce the crash using 0.9.2, but the
anticipated output to system.log did not appear.

Details:

With MacFUSE 0.9.2 already loaded by the kernel, I mounted my media
server:

sshfs-static-debug [EMAIL PROTECTED]:/raid $D -o volname=hearsay -d

(Note: this time I did not specify '-o debug'. I'm not sure if this
makes a difference).

After iTunes imported a few dozen mp3 files, sshfs-static-debug
crashed:

OPEN[3181488] flags: 0x0 /Music/Cocteau Twins/Evangeline Sp/03 Summer-
blink.mp3
unique: 2, opcode: READ (15), nodeid: 79, insize: 64
READ[3181488] 4096 bytes from 0
   READ[3181488] 4096 bytes
   unique: 2, error: 0 (Unknown error: 0), outsize: 4112
unique: 1, opcode: FSYNC (20), nodeid: 79, insize: 56
unique: 0, opcode: FLUSH (25), nodeid: 79, insize: 64
FLUSH[3181488]
   unique: 0, error: 0 (Unknown error: 0), outsize: 16
unique: 2, opcode: RELEASE (18), nodeid: 79, insize: 64
RELEASE[3181488] flags: 0x0
   unique: 2, error: 0 (Unknown error: 0), outsize: 16
unique: 0, opcode: LOOKUP (1), nodeid: 76, insize: 62
LOOKUP /Music/Cocteau Twins/Evangeline Sp/._03 Summer-blink.mp3
FSYNC[3181488]
/Users/db/Scripts/mount-hearsay.sh: line 5:   453 Segmentation
fault      sshfs-static-debug [EMAIL PROTECTED]:/raid $D -o volname=hearsay -
d

system.log shows:

Oct  1 09:14:30 phoebe crashdump[460]: sshfs-static-debug crashed
Oct  1 09:14:30 phoebe KernelEventAgent[32]: tid 00000000 received
VQ_DEAD event (32)
Oct  1 09:14:30 phoebe crashdump[460]: crash report written to: /Users/
db/Library/Logs/CrashReporter/sshfs-static-debug.crash.log


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


Host Name:      phoebe
Date/Time:      2007-10-01 09:14:29.746 -0400
OS Version:     10.4.10 (Build 8R2232)
Report Version: 4

Command: sshfs-static-debug
Path:    /usr/local/bin/sshfs-static-debug
Parent:  bash [451]

Version: ??? (???)

PID:    453
Thread: 2

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 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 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:
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 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 2 crashed with X86 Thread State (32-bit):
  eax: 0x20756165  ebx: 0x00007355  ecx: 0x000430e8  edx: 0x74630008
  edi: 0x00308bb0  esi: 0x74630008  ebp: 0xb0101d48  esp: 0xb0101d48
   ss: 0x0000001f  efl: 0x00010246  eip: 0x00002b95   cs: 0x00000017
   ds: 0x0000001f   es: 0x0000001f   fs: 0x00000000   gs: 0x00000037

Binary Images Description:
    0x1000 -    0x41fff sshfs-static-debug      /usr/local/bin/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/
CarbonCore.framework/Versions/A/CarbonCore
0x90f67000 - 0x90fcffff com.apple.CoreServices.OSServices 4.1   /System/
Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/
OSServices.framework/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/
WebServicesCore.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.framework/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/
SystemConfiguration
0x9262b000 - 0x92718fff libiconv.2.dylib        /usr/lib/libiconv.2.dylib


db



On Oct 1, 5:50 am, Amit Singh <[EMAIL PROTECTED]> wrote:
> I've put another build here:
>
> http://osxbook.com/tmp/macfuse/MacFUSE-Core-0.9.2.dmg
>
> Can you please try this--with sshfs running multithreaded as normal.
> Your crash should still occur, but I'd like to see if you get an error
> message in /var/log/system.log at the time of the crash. (You can
> either just tail /var/log/system.log or use Console.app to monitor
> it). The error message we are looking for is:
>
> MacFUSE: this can trigger segmentation fault
>
> Thanks for testing this.
>
> Amit
>


--~--~---------~--~----~------------~-------~--~----~
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