Firefox not closing
sktsee
sktseer at gmail.com
Tue Sep 6 14:48:56 UTC 2011
On 09/05/2011 04:27 PM, scott wrote:
[snip]
>>
>> On Tue, Sep 6, 2011 at 1:30 AM, scott<redhowlingwolves at nc.rr.com> wrote:
>>
>>> On 09/05/2011 03:08 PM, scott wrote:
>>>
>>>> On 09/05/2011 03:03 PM, scott wrote:
>>>>
>>>>> I've had a problem with firefox lately. I close it and attempt to
>>>>> reopen
>>>>> it sometime later and get a message that firefox is already
>>>>> running. I have
>>>>> to do a "ps -e | grep firefox" to find the PID to kill it. It
>>>>> usually shows
>>>>> 2 instances of firefox running, one with a 'defunct' tag. I've
>>>>> renamed the
>>>>> .mozilla folder to .mozilla.old and it still happens, even with no
>>>>> extensions at all.
>>>>>
>>>>> Any ideas?
>>>>>
>>>>> Scott
>>>>>
>>>>> By the way, it's firefox 6.0.1 on 10.10.
>>>> I went back into my .mozilla folder and found that the lock folder was
>>> broken. Deleted it. I'll let the list know if this helps or not.
>>> *Fingers
>>> crossed*
>>>
>>> Scott
>>>
>>>
>>> --
>>> ubuntu-users mailing list
>>> ubuntu-users at lists.ubuntu.com
>>> Modify settings or unsubscribe at: https://lists.ubuntu.com/**
>>> mailman/listinfo/ubuntu-users<https://lists.ubuntu.com/mailman/listinfo/ubuntu-users>
>>>
>>>
> No luck. I get error messages running firefox from terminal saying
>
> "** (<unknown>:3485): DEBUG: NP_Initialize
> ** (<unknown>:3485): DEBUG: NP_Initialize succeeded
> ** (<unknown>:3487): DEBUG: NP_Initialize
> ** (<unknown>:3487): DEBUG: NP_Initialize succeeded
> ** (<unknown>:3489): DEBUG: NP_Initialize
> ** (<unknown>:3489): DEBUG: NP_Initialize succeeded
> ** (<unknown>:3485): DEBUG: NP_Shutdown
> NOTE: child process received `Goodbye', closing down
> WARNING: waitpid failed pid:3485 errno:10: file
> /build/buildd/firefox-6.0.1+build1+nobinonly/build-tree/mozilla/ipc/chromium/src/base/process_util_posix.cc,
> line 237
> ** (<unknown>:3487): DEBUG: NP_Shutdown
> NOTE: child process received `Goodbye', closing down
> WARNING: waitpid failed pid:3485 errno:10: file
> /build/buildd/firefox-6.0.1+build1+nobinonly/build-tree/mozilla/ipc/chromium/src/base/process_util_posix.cc,
> line 237
> ** (<unknown>:3489): DEBUG: NP_Shutdown
> NOTE: child process received `Goodbye', closing down
> WARNING: waitpid failed pid:3485 errno:10: file
> /build/buildd/firefox-6.0.1+build1+nobinonly/build-tree/mozilla/ipc/chromium/src/base/process_util_posix.cc,
> line 237
> NOTE: child process received `Goodbye', closing down
> WARNING: waitpid failed pid:3485 errno:10: file
> /build/buildd/firefox-6.0.1+build1+nobinonly/build-tree/mozilla/ipc/chromium/src/base/process_util_posix.cc,
> line 237
> WARNING: waitpid failed pid:3485 errno:10: file
> /build/buildd/firefox-6.0.1+build1+nobinonly/build-tree/mozilla/ipc/chromium/src/base/process_util_posix.cc,
> line 237
> WARNING: Failed to deliver SIGKILL to 3485!(3).: file
> /build/buildd/firefox-6.0.1+build1+nobinonly/build-tree/mozilla/ipc/chromium/src/chrome/common/process_watcher_posix_sigchld.cc,
> line 162"
>
> It appears in the "bool KillProcess(ProcessHandle process_id, int
> exit_code, bool wait)" function in process_util_posix.cc
>
> // Attempts to kill the process identified by the given process
> // entry structure. Ignores specified exit_code; posix can't force that.
> // Returns true if this is successful, false otherwise.
>
> and the error in process_watcher_sigchild.cc is a simple
>
> line 162: LOG(ERROR)<< "Failed to deliver SIGKILL to "<< process_<< "!"
> << "("<< errno<< ").";
>
> I see firefox-bin has pid 3485. I see no processes for 3487 or 3489,
> even as root. Any other way I can see what these pid's are? Maybe
> they're the problem.
>
Those extra pids are threads. Use ps -p<firefox pid> with -L or -T to
see the ids of the threads
$ ps -p2695 -T
PID SPID TTY TIME CMD
2695 2695 ? 00:00:05 firefox-bin
2695 2712 ? 00:00:00 firefox-bin
2695 2713 ? 00:00:00 firefox-bin
..and so on..
or use pstree
$ pstree -p 2695
firefox-bin(2695)-+-firefox-bin(2711)
|-{firefox-bin}(2712)
|-{firefox-bin}(2713)
|-{firefox-bin}(2714)
|-{firefox-bin}(2715)
|-{firefox-bin}(2716)
etc...
I'm running Firefox 6.01 (from Mozilla.org) on 10.10 too, and I get the
defunct pid as well. However, if I open the Add-ons manager, close it,
and then do a "ps ax", the defunct process goes away. The same thing
happens on Thunderbird. I guess whatever causes the zombies is somehow
related to plugins.
As for those debug messages upon closing firefox, I got rid of them
(except for the waitpid message, I don't get that one) after I modified
a line in the firefox script, /opt/firefox/firefox (/opt/firefox is
where I installed 6.01). It's just a simple path correction:
-------
# moz_libdir=/usr/local/lib/firefox-6.0.1
# invalid path. Changing to appropriate directory
moz_libdir=/opt/firefox
-------
I don't get the "firefox is already running" message though. That kinda
sounds like the problem may be due to a plugin that won't unload
properly and causes a firefox-bin thread to ignore a shutdown signal.
Then, when you start a new instance, firefox detects that it's already
running and generates the error message. To verify if it's a plugin
problem, I would start firefox in safemode (firefox --safe-mode) and see
if the problem goes away.
--
sktsee
More information about the ubuntu-users
mailing list