Re: balsa segfaults or doesn't die properly occasionally



On 03/03/04 13:50:49, Albrecht Dreß wrote:
> Am 03.03.04 16:40 schrieb(en) Kacper Wysocki:
>> Today's lockup was neither a seg or a hang before closing, but since  
>> I have balsa in debug mode all the time now I caught it as well..
>> Here are the relevant strace lines (it's hard to tell where the  
>> 'relevantness' starts, but the strace is 4MB so I have to crop it..
> [snipped part of strace output]
>> select(28, [23 27], [], NULL, {1, 0})   = 0 (Timeout)
>> select(28, [23 27], [], NULL, {1, 0} <unfinished ...>
> 
> Can you check in the strace output which open() (or similar) calls  
> are related to posix file handles 23 and 27? This is a call which  
> waits with a timeout of 1 sec + 0 usec for handle 23 or 27 to get  
> ready for reading, so maybe this gives you some hints...

Wysiwig... I found no references to file handle 27 other than a couple  
of lines up from what I wrote, but there are literally billions for  
filehandle 23. Here is the last open for fd 23 before the crash:

(lines added for context)
open("/tmp/balsa-comotion-32145-8", O_WRONLY|O_CREAT|O_EXCL, 0600) = 23
lstat64("/tmp/balsa-comotion-32145-8", {st_mode=S_IFREG|0600,  
st_size=0, ...}) = 0
fstat64(23, {st_mode=S_IFREG|0600, st_size=0, ...}) = 0
fcntl64(23, F_GETFL)                    = 0x1 (flags O_WRONLY)
fstat64(23, {st_mode=S_IFREG|0600, st_size=0, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,  
0) = 0x43310000
_llseek(23, 0, [0], SEEK_CUR)           = 0
_llseek(22, 18264177, [18264177], SEEK_SET) = 0
read(22, "-----BEGIN PGP SIGNED MESSAGE---"..., 4096) = 3645
write(23, "-----BEGIN PGP SIGNED MESSAGE---"..., 1073) = 1073
close(23)                               = 0
munmap(0x43310000, 4096)                = 0
close(22)                               = 0
munmap(0x4330f000, 4096)                = 0
open("/tmp/balsa-comotion-32145-8", O_RDONLY) = 22
fstat64(22, {st_mode=S_IFREG|0600, st_size=1073, ...}) = 0
lseek(22, 0, SEEK_SET)                  = 0
read(22, "-----BEGIN PGP SIGNED MESSAGE---"..., 1073) = 1073
getuid32()                              = 1001
open("/etc/passwd", O_RDONLY)           = 23
fcntl64(23, F_GETFD)                    = 0
fcntl64(23, F_SETFD, FD_CLOEXEC)        = 0
_llseek(23, 0, [0], SEEK_CUR)           = 0
fstat64(23, {st_mode=S_IFREG|0644, st_size=1516, ...}) = 0
mmap2(NULL, 1516, PROT_READ, MAP_SHARED, 23, 0) = 0x4330f000
_llseek(23, 1516, [1516], SEEK_SET)     = 0
munmap(0x4330f000, 1516)                = 0
close(23)
stat64("/home/comotion/.gnupg/trustdb.gpg.lock", 0xbffff61c) = -1  
ENOENT (No such file or directory)
pipe([23, 24])                          = 0
fcntl64(23, F_SETFD, FD_CLOEXEC)        = 0
pipe([25, 26])                          = 0
fcntl64(26, F_SETFD, FD_CLOEXEC)        = 0
pipe([27, 28])                          = 0
fcntl64(27, F_SETFD, FD_CLOEXEC)        = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID| 
SIGCHLD, child_tidptr=0x41cd36a8) = 6824


Hope this helps any...

PGP signature



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]