Open Bug 213923 Opened 22 years ago Updated 2 years ago

Mozilla should reset NSPR logging environment before launching other processes/helper apps

Categories

(Toolkit :: Startup and Profile System, defect, P5)

x86
Linux
defect

Tracking

()

People

(Reporter: bzbarsky, Unassigned)

References

Details

The problem I ran into is that Mozilla launched a helper, which turned around and launched Mozilla (the helper was htmlview). X-remote naturally kicked in and the new file was opened in the existing mozilla. The problem is that my original Mozilla was running with NSPR logging on. And those env vars are naturally inherited by htmlview, the mozilla script, and the new mozilla instance that the mozilla script opesn. And hence this new instance, before actually exiting, clobbers the NSPR logfile. Imo, we should clear the NSPR logging env vars in the startup script if we plan to launch with -remote. What do you think, Chris?
I think that any time we launch helper apps, we should be careful about what we pass on in the environment. However, this seems like a real edge case to me. Most users aren't running NSPR logging. I'd hate to special case this.
> I think that any time we launch helper apps, we should be careful about what we > pass on in the environment. Then nsIProcess needs to provide facilities to control what we pass on. I'm not saying this is something a lot of people will run into, no. And if you wontfix it, I'll just go away. But when it happens, it makes life pretty hellish (equivalent to a bug in your code that crashes the debugger when you try to debug it; should debuggers work around such?)
Depends on: 145257
Component: X-remote → Startup and Profile System
Priority: -- → P5
Product: Core → Toolkit
Summary: X-remote wipes out NSPR logs → Mozilla should reset NSPR logging environment before launching other processes/helper apps

The bug assignee didn't login in Bugzilla in the last 7 months.
:mossop, could you have a look please?
For more information, please visit auto_nag documentation.

Assignee: blizzard → nobody
Flags: needinfo?(dtownsend)
Flags: needinfo?(dtownsend)

In the process of migrating remaining bugs to the new severity system, the severity for this bug cannot be automatically determined. Please retriage this bug using the new severity system.

Severity: major → --

The severity field is not set for this bug.
:mossop, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(dtownsend)
Severity: -- → S4
Flags: needinfo?(dtownsend)
You need to log in before you can comment on or make changes to this bug.