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

Re: Bug in joe, or libc6?


>> The weird thing is: after a change to the file, both backup file and new file
>> are closed properly. So the segfault happens after fclose. 
>These are the last lines of an strace:
>sigaction(SIGINT, {SIG_DFL}, {SIG_IGN}) = 0
>sigaction(SIGPIPE, {SIG_DFL}, {SIG_IGN}) = 0
>--- SIGSEGV (Segmentation fault) ---
>+++ killed by SIGSEGV +++

I've got the source and tracked that to probably nclose() in tty.c. Other
places where ttclose() or signrm() get called are also in the shell escape
stuff which works without coredump. 

>Don't know if that helps at all.

It sure did :-) I completely forgot about strace. Too much kernel stuff :-(

>One thing I noticed in the strace is that it never really close()'d
>the opened file. There were two SIGALRM's occuring between opening the
>file and the end of the strace.

It's closed right after opening it and reading it into memory. Don't know what the 
SIGALRM are for, they appear at random places even while executing ttclose(). 


To UNSUBSCRIBE, email to debian-68k-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Reply to: