Closed Bug 145335 Opened 24 years ago Closed 24 years ago

Mail composer freezes when the signature file is a pipe

Categories

(MailNews Core :: Composition, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED DUPLICATE of bug 62993
Future

People

(Reporter: ra, Assigned: sspitzer)

Details

(Keywords: helpwanted)

From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.0rc2) Gecko/20020510 BuildID: 2002051009 I'm using an automated signature generator (http://packages.debian.org/stable/mail/signify.html) where random signatures are read from a local char device file. In the 'Account settings' signature dialog you cannot chose this file, but you *can* write its path directly. Subsequently, when pressing 'compose' the mail composer window freezes up with 100% CPU utilization. Only way out is to kill Mozilla entirely. (PS: the signature thing *does* work in Netscape 4) Reproducible: Always Steps to Reproduce: 1.Open 'Account settings' and write the path of an apropriate input char device file in the signature field. Signify is easily installed, but any other well-behaved char device should work as well. 2.Close 'Account settings'. 3.Press the 'Compose' button to open a new message. Actual Results: All windows freezes. CPU usage goes through the roof. Expected Results: The composer should have read a signature byte-wise from the char device, treating it as a standard non-seekable input stream.
I think this bug may exist, or a similar bug. the other bug involves reading from a named pipe. let me find it...
see also: http://bugzilla.mozilla.org/show_bug.cgi?id=62993 (the "can't used a named pipe or /proc/uptime" bug). before deciding to work on this, we should decide if it is common thing or not. I'd say it (and 62993) are not that common, which is why we've punted on it so far. but as shaver says, "we're accepting patches". taking for now, since this is linux and ducarroz is our mac guy. my gut tells me this fix will be below the mailnews code, in nsFileSpec (obsolete) or nsLocalFileUnix.cpp. but I don't know yet, as I haven't debugged.
Assignee: ducarroz → sspitzer
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: helpwanted
Target Milestone: --- → Future
Did I write char device? I meant 'pipe' - as already observed in 62993 *sigh*. Pardon me, but I'm off looking for my brain now...
Summary: Mail composer freezes when the signature file is a char device → Mail composer freezes when the signature file is a pipe
62993 is where the other dups are - resolving as such *** This bug has been marked as a duplicate of 62993 ***
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
v
Status: RESOLVED → VERIFIED
Product: MailNews → Core
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.