Closed Bug 458379 Opened 17 years ago Closed 1 year ago

Firefox hangs when saving file to a pipe

Categories

(Core :: General, defect)

x86
Linux
defect

Tracking

()

RESOLVED INACTIVE

People

(Reporter: charlie.brown.uy, Unassigned)

Details

(Keywords: hang, stackwanted)

User-Agent: Mozilla/5.0 (X11; U; Linux i686; es-AR; rv:1.9.0.3) Gecko/2008092416 Firefox/3.0.3 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; es-AR; rv:1.9.0.3) Gecko/2008092416 Firefox/3.0.3 I can't save a page or download a file to a pipe. Reproducible: Always Steps to Reproduce: 1.create a pipe with mkfifo 2.start a process listening on the pipe 3.Within Firefox, try to save a file to that pipe Actual Results: Firefox freezes and crashes as soon as I click on the pipe's name. Expected Results: The process listening on the pipe reading data sent by Firefox.
Version: unspecified → 3.0 Branch
Does it hang or crash? If firefox doesn't quit, it didn't crash.
Component: General → XPCOM
Keywords: hang, stackwanted
Product: Firefox → Core
QA Contact: general → xpcom
Whiteboard: DUPEME
Version: 3.0 Branch → Trunk
It hangs. (Sorry about the wrong term; I've corrected the summary)
Summary: Firefox crashes when saving file to a pipe → Firefox hangs when saving file to a pipe
After running strace I've discovered that the problem is that, for some reason, Firefox first tries to open the pipe file as read-only ("RD_ONLY"), and because there is a process listening on the other side it enters a deadlock, as both (Firefox and the process) are listening.
Whiteboard: DUPEME
Not an XPCOM bug, almost certainly. I think we should just detect and refuse to save data to named pipes.
Severity: normal → minor
Component: XPCOM → General
QA Contact: xpcom → general
dup of bug 394774?
Severity: minor → S4
Status: UNCONFIRMED → RESOLVED
Closed: 1 year ago
Resolution: --- → INACTIVE
You need to log in before you can comment on or make changes to this bug.