I'm using mozilla 1.7.12 on FC4.

My app plays a number of flash files for 30 seconds one after the other.
After a few hours things will go wrong.

I've seen two problem:

1) mozilla memory use grows until it runs out of VM and aborts.
2) Flash plugin call free() which calls abort() and mozilla hangs

Is this a know problem? Are there any fixes/workarounds?

I attached gdb and did thread apply all bt. Lots of the threads
are blocked like this:

Thread 2 (Thread -1262842960 (LWP 1115)):
#0  0x00baa402 in ?? ()
#1  0x004cf1ce in __lll_mutex_lock_wait () from /lib/libc.so.6
#2  0x0045fe58 in _L_mutex_lock_3936 () from /lib/libc.so.6

And here is the thread that raised the signal:

Thread 1 (Thread -1208129856 (LWP 1108)):
#0  0x00baa402 in ?? ()
#1  0x004cf1ce in __lll_mutex_lock_wait () from /lib/libc.so.6
#2  0x0045fe58 in _L_mutex_lock_3936 () from /lib/libc.so.6
#3  0x00f28d30 in _dl_runtime_resolve () from /lib/ld-linux.so.2
#4 0x00dd0637 in nsProfileLock::Unlock () from /usr/lib/mozilla-1.7.12/libgtkembedmoz.so #5 0x00dd0637 in nsProfileLock::Unlock () from /usr/lib/mozilla-1.7.12/libgtkembedmoz.so #6 0x00dd069d in nsProfileLock::RemovePidLockFiles () from /usr/lib/mozilla-1.7.12/libgtkembedmoz.so #7 0x00dd06d0 in nsProfileLock::FatalSignalHandler () from /usr/lib/mozilla-1.7.12/libgtkembedmoz.so
#8  <signal handler called>
#9  0x00baa402 in ?? ()
#10 0x004201f8 in raise () from /lib/libc.so.6
#11 0x00421948 in abort () from /lib/libc.so.6
#12 0x0045552a in __libc_message () from /lib/libc.so.6
#13 0x0045b424 in _int_free () from /lib/libc.so.6
#14 0x0045b95f in free () from /lib/libc.so.6
#15 0x003c23a9 in operator delete () from /usr/lib/libstdc++.so.6
#16 0x003c23f5 in operator delete[] () from /usr/lib/libstdc++.so.6
#17 0x04551609 in FlashString16::~FlashString16 () from /usr/lib/mozilla-1.7.12/plugins/libflashplayer.so #18 0x04515a14 in ScriptAtom::Reset () from /usr/lib/mozilla-1.7.12/plugins/libflashplayer.so #19 0x04516960 in ConstantPool::~ConstantPool () from /usr/lib/mozilla-1.7.12/plugins/libflashplayer.so #20 0x04516aec in ConstantPool::ReleaseRef () from /usr/lib/mozilla-1.7.12/plugins/libflashplayer.so #21 0x0451339e in ScriptObject::ClearVariables () from /usr/lib/mozilla-1.7.12/plugins/libflashplayer.so #22 0x04497599 in VarHashTable::DestroyItem () from /usr/lib/mozilla-1.7.12/plugins/libflashplayer.so #23 0x04496f7e in HashTable::ForEach () from /usr/lib/mozilla-1.7.12/plugins/libflashplayer.so #24 0x0449770c in ScriptObjectTable::Sweep () from /usr/lib/mozilla-1.7.12/plugins/libflashplayer.so #25 0x04497670 in ScriptObjectTable::~ScriptObjectTable$delete () from /usr/lib/mozilla-1.7.12/plugins/libflashplayer.so #26 0x0451b1a3 in CorePlayer::~CorePlayer$base () from /usr/lib/mozilla-1.7.12/plugins/libflashplayer.so #27 0x04567502 in UnixCommonPlayer::~UnixCommonPlayer$base () from /usr/lib/mozilla-1.7.12/plugins/libflashplayer.so #28 0x045aa25c in PlatformPlayer::~PlatformPlayer$delete () from /usr/lib/mozilla-1.7.12/plugins/libflashplayer.so #29 0x045abcb4 in PlatformPlayer::NsDestroyPlayer () from /usr/lib/mozilla-1.7.12/plugins/libflashplayer.so #30 0x045b02f1 in NPP_Destroy () from /usr/lib/mozilla-1.7.12/plugins/libflashplayer.so #31 0x045ae550 in Private_Destroy () from /usr/lib/mozilla-1.7.12/plugins/libflashplayer.so #32 0x06b22ade in ?? () from /usr/lib/mozilla-1.7.12/components/libgkplugin.so

I'm going to turn on MALLOC_CHECK_=2 to see if that will help track down the problem. An acceptable workaround would be to get the process to exit as I have a driver program that will relaunch my app.

Barry
_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to