You are on page 1of 5

File: /home/jie/analysis.

txt Page 1 of 9
timeout=65535000) at ptio.c:3952 #2 0x00007ffff3cc7472 in nsSocketTransportService::Poll (this=<value optimized out>, wait=<value optimized out>, interval=0x7fffe6cfed2c) at /sdd5/firefox/mozilla-beta/netwerk/base/src/nsSocketTransportService2.cpp:424 #3 0x00007ffff3cc7a00 in nsSocketTransportService::DoPollIteration (this=0x7fffe8353710, wait=6) at /sdd5/firefox/mozilla-beta/netwerk/base/src/nsSocketTransportService2.cpp:746 #4 0x00007ffff3cc7c4f in nsSocketTransportService::Run (this=0x7fffe8353710) at /sdd5/firefox/mozilla-beta/netwerk/base/src/nsSocketTransportService2.cpp:642 #5 0x00007ffff47294ac in nsThread::ProcessNextEvent (this=0x7fffe8353870, mayWait=true, result=0x7fffe6cfee3f) at /sdd5/firefox/mozilla-beta/xpcom/threads/nsThread.cpp:657 #6 0x00007ffff46fb25e in NS_ProcessNextEvent_P (thread=<value optimized out>, mayWait=6) at /sdd5/ firefox/mozilla-beta/xpcom/build/nsThreadUtils.cpp:245 #7 0x00007ffff4729950 in nsThread::ThreadFunc (arg=<value optimized out>) at /sdd5/firefox/mozillabeta/xpcom/threads/nsThread.cpp:289 #8 0x00007ffff6aed1d3 in _pt_root (arg=<value optimized out>) at ptthread.c:187 #9 0x00007ffff7bc69ca in start_thread () from /lib/libpthread.so.0 #10 0x00007ffff6f7170d in clone () from /lib/libc.so.6 #11 0x0000000000000000 in ?? () (gdb)

File: /home/jie/analysis.txt

Page 2 of 9

Setting one breakpoint: (gdb) break nsAppShell::ProcessNextNativeEvent Breakpoint 2 at 0x7ffff45c53ca: file /sdd5/firefox/mozilla-beta/widget/gtk2/nsAppShell.cpp, line 161. (gdb) cont Continuing. Breakpoint 2, nsAppShell::ProcessNextNativeEvent (this=0x7fffe6d869b0, mayWait=false) at /sdd5/firefox/ mozilla-beta/widget/gtk2/nsAppShell.cpp:161 161 { (gdb) list 156 write(mPipeFDs[1], buf, 1); 157 } 158 159 bool 160 nsAppShell::ProcessNextNativeEvent(bool mayWait) 161 { 162 return g_main_context_iteration(NULL, mayWait); 163 } (gdb) bt #0 nsAppShell::ProcessNextNativeEvent (this=0x7fffe6d869b0, mayWait=false) at /sdd5/firefox/mozillabeta/widget/gtk2/nsAppShell.cpp:161 #1 0x00007ffff45da495 in nsBaseAppShell::DoProcessNextNativeEvent (this=0x7fffe6d869b0, mayWait=false) at /sdd5/firefox/mozilla-beta/widget/xpwidgets/nsBaseAppShell.cpp:171 #2 0x00007ffff45da682 in nsBaseAppShell::OnProcessNextEvent (this=0x7fffe6d869b0, thr=0x7ffff6d7fc90, mayWait=false, recursionDepth=<value optimized out>) at /sdd5/firefox/mozilla-beta/widget/xpwidgets/nsBaseAppShell.cpp:306 #3 0x00007ffff472931a in nsThread::ProcessNextEvent (this=0x7ffff6d7fc90, mayWait=false, result=0x7fffffffc1ff) at /sdd5/firefox/mozilla-beta/xpcom/threads/nsThread.cpp:619 #4 0x00007ffff46fb25e in NS_ProcessNextEvent_P (thread=<value optimized out>, mayWait=false) at /sdd5/firefox/mozilla-beta/xpcom/build/nsThreadUtils.cpp:245 #5 0x00007ffff4685724 in mozilla::ipc::MessagePump::Run (this=0x7fffe8309cc0, aDelegate=0x7ffff6de2240) at /sdd5/firefox/mozilla-beta/ipc/glue/MessagePump.cpp:110 #6 0x00007ffff4748420 in MessageLoop::RunHandler (this=0x7fffe6d869b0) at /sdd5/firefox/mozilla-beta/ ipc/chromium/src/base/message_loop.cc:201 #7 MessageLoop::Run (this=0x7fffe6d869b0) at /sdd5/firefox/mozilla-beta/ipc/chromium/src/base/ message_loop.cc:175 #8 0x00007ffff45da7e3 in nsBaseAppShell::Run (this=0x7fffe6d869b0) at /sdd5/firefox/mozilla-beta/ widget/xpwidgets/nsBaseAppShell.cpp:189 #9 0x00007ffff4499cf0 in nsAppStartup::Run (this=0x7fffe6db3240) at /sdd5/firefox/mozilla-beta/ toolkit/components/startup/nsAppStartup.cpp:220 #10 0x00007ffff3c9cdf4 in XRE_main (argc=<value optimized out>, argv=<value optimized out>, aAppData=<value optimized out>) at /sdd5/firefox/mozilla-beta/toolkit/xre/nsAppRunner.cpp:3537 #11 0x00000000004021cf in do_main (argc=1, argv=0x7fffffffeba8) at /sdd5/firefox/mozilla-beta/browser/ app/nsBrowserApp.cpp:205

Command name abbreviations are allowed if unambiguous. (gdb) bt #0 0x00007ffff6f64f93 in poll () from /lib/libc.so.6 #1 0x00007ffff45c554d in PollWrapper (ufds=<value optimized out>, nfsd=<value optimized out>, timeout_=<value optimized out>) at /sdd5/firefox/mozilla-beta/widget/gtk2/nsAppShell.cpp:66 #2 0x00007ffff1f7d4a9 in ?? () from /lib/libglib-2.0.so.0 #3 0x00007ffff1f7d8fc in g_main_context_iteration () from /lib/libglib-2.0.so.0 #4 0x00007ffff45c53d9 in nsAppShell::ProcessNextNativeEvent (this=<value optimized out>, mayWait=9) at /sdd5/firefox/mozilla-beta/widget/gtk2/nsAppShell.cpp:162 #5 0x00007ffff45da495 in nsBaseAppShell::DoProcessNextNativeEvent (this=0x7fffe13192e0, mayWait=9) at /sdd5/firefox/mozilla-beta/widget/xpwidgets/nsBaseAppShell.cpp:171 #6 0x00007ffff45da6cc in nsBaseAppShell::OnProcessNextEvent (this=0x7fffe6d869b0, thr=0x7ffff6d7fc90, mayWait=9, recursionDepth=<value optimized out>) at /sdd5/firefox/mozilla-beta/widget/xpwidgets/nsBaseAppShell.cpp:324 #7 0x00007ffff472931a in nsThread::ProcessNextEvent (this=0x7ffff6d7fc90, mayWait=true, result=0x7fffffffc1ff) at /sdd5/firefox/mozilla-beta/xpcom/threads/nsThread.cpp:619 #8 0x00007ffff46fb25e in NS_ProcessNextEvent_P (thread=<value optimized out>, mayWait=9) at /sdd5/ firefox/mozilla-beta/xpcom/build/nsThreadUtils.cpp:245 #9 0x00007ffff468578f in mozilla::ipc::MessagePump::Run (this=0x7fffe8309cc0, aDelegate=0x7ffff6de2240) at /sdd5/firefox/mozilla-beta/ipc/glue/MessagePump.cpp:134 #10 0x00007ffff4748420 in MessageLoop::RunHandler (this=0x7fffe13192e0) at /sdd5/firefox/mozilla-beta/ ipc/chromium/src/base/message_loop.cc:201 #11 MessageLoop::Run (this=0x7fffe13192e0) at /sdd5/firefox/mozilla-beta/ipc/chromium/src/base/ message_loop.cc:175 #12 0x00007ffff45da7e3 in nsBaseAppShell::Run (this=0x7fffe6d869b0) at /sdd5/firefox/mozilla-beta/ widget/xpwidgets/nsBaseAppShell.cpp:189 #13 0x00007ffff4499cf0 in nsAppStartup::Run (this=0x7fffe6db3240) at /sdd5/firefox/mozilla-beta/ toolkit/components/startup/nsAppStartup.cpp:220 #14 0x00007ffff3c9cdf4 in XRE_main (argc=<value optimized out>, argv=<value optimized out>, aAppData=<value optimized out>) at /sdd5/firefox/mozilla-beta/toolkit/xre/nsAppRunner.cpp:3537 #15 0x00000000004021cf in do_main (argc=1, argv=0x7fffffffeba8) at /sdd5/firefox/mozilla-beta/browser/ app/nsBrowserApp.cpp:205 #16 main (argc=1, argv=0x7fffffffeba8) at /sdd5/firefox/mozilla-beta/browser/app/nsBrowserApp.cpp:295 (gdb) d 3 [Switching to thread 3 (Thread 0x7fffe78fa700 (LWP 7579))]#0 0x00007ffff7bcb85c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0 (gdb) bt #0 0x00007ffff7bcb85c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0 #1 0x00007ffff6ae753e in PR_WaitCondVar (cvar=0x7fffe8334140, timeout=4294967295) at ptsynch.c:417 #2 0x00007ffff473465b in mozilla::CondVar::Wait (this=0x7fffe831dd30) at ../../dist/include/mozilla/ CondVar.h:103 #3 nsCycleCollectorRunner::Run (this=0x7fffe831dd30) at /sdd5/firefox/mozilla-beta/xpcom/base/ nsCycleCollector.cpp:3701 #4 0x00007ffff47294ac in nsThread::ProcessNextEvent (this=0x7fffe8352110, mayWait=true, result=0x7fffe78f9e3f) at /sdd5/firefox/mozilla-beta/xpcom/threads/nsThread.cpp:657 #5 0x00007ffff46fb25e in NS_ProcessNextEvent_P (thread=<value optimized out>, mayWait=128) at /sdd5/ firefox/mozilla-beta/xpcom/build/nsThreadUtils.cpp:245 #6 0x00007ffff4729950 in nsThread::ThreadFunc (arg=<value optimized out>) at /sdd5/firefox/mozillabeta/xpcom/threads/nsThread.cpp:289 #7 0x00007ffff6aed1d3 in _pt_root (arg=<value optimized out>) at ptthread.c:187 #8 0x00007ffff7bc69ca in start_thread () from /lib/libpthread.so.0 #9 0x00007ffff6f7170d in clone () from /lib/libc.so.6 #10 0x0000000000000000 in ?? () (gdb)

(gdb) thread 4 [Switching to thread 4 (Thread 0x7fffe6cff700 (LWP 7580))]#0 0x00007ffff6f64f93 in poll () from /lib/ libc.so.6 (gdb) bt #0 0x00007ffff6f64f93 in poll () from /lib/libc.so.6 #1 0x00007ffff6ae8f7f in _pr_poll_with_poll (pds=0x7fffe6d17c00, npds=<value optimized out>,

File: /home/jie/analysis.txt Page 3 of 9


at /sdd5/firefox/mozilla-beta/widget/xpwidgets/nsBaseAppShell.cpp:304 #2 0x00007ffff472931a in nsThread::ProcessNextEvent (this=0x7ffff6d7fc90, mayWait=false, result=0x7fffffffc1ff) at /sdd5/firefox/mozilla-beta/xpcom/threads/nsThread.cpp:619 #3 0x00007ffff46fb25e in NS_ProcessNextEvent_P (thread=<value optimized out>, mayWait=false) at /sdd5/firefox/mozilla-beta/xpcom/build/nsThreadUtils.cpp:245 #4 0x00007ffff4685724 in mozilla::ipc::MessagePump::Run (this=0x7fffe8309cc0, aDelegate=0x7ffff6de2240) at /sdd5/firefox/mozilla-beta/ipc/glue/MessagePump.cpp:110 #5 0x00007ffff4748420 in MessageLoop::RunHandler (this=0x7ffff6d6da18) at /sdd5/firefox/mozilla-beta/ ipc/chromium/src/base/message_loop.cc:201 #6 MessageLoop::Run (this=0x7ffff6d6da18) at /sdd5/firefox/mozilla-beta/ipc/chromium/src/base/ message_loop.cc:175 #7 0x00007ffff45da7e3 in nsBaseAppShell::Run (this=0x7fffe6d869b0) at /sdd5/firefox/mozilla-beta/ widget/xpwidgets/nsBaseAppShell.cpp:189 #8 0x00007ffff4499cf0 in nsAppStartup::Run (this=0x7fffe6db3240) at /sdd5/firefox/mozilla-beta/ toolkit/components/startup/nsAppStartup.cpp:220 #9 0x00007ffff3c9cdf4 in XRE_main (argc=<value optimized out>, argv=<value optimized out>, aAppData=<value optimized out>) at /sdd5/firefox/mozilla-beta/toolkit/xre/nsAppRunner.cpp:3537 #10 0x00000000004021cf in do_main (argc=1, argv=0x7fffffffeba8) at /sdd5/firefox/mozilla-beta/browser/ app/nsBrowserApp.cpp:205 #11 main (argc=1, argv=0x7fffffffeba8) at /sdd5/firefox/mozilla-beta/browser/app/nsBrowserApp.cpp:295 (gdb)

File: /home/jie/analysis.txt

Page 4 of 9

0x00007ffff7bcb85c in pthread_cond_wait@@GLIBC_2.3.2 () from / 0x00007ffff7bcbbc9 in pthread_cond_timedwait@@GLIBC_2.3.2 () 0x00007ffff7bcb85c in pthread_cond_wait@@GLIBC_2.3.2 () from / 0x00007ffff7bce93d in read () from /lib/libpthread.so.0 0x00007ffff7bcb85c in pthread_cond_wait@@GLIBC_2.3.2 () from / 0x00007ffff7bcb85c in pthread_cond_wait@@GLIBC_2.3.2 () from / 0x00007ffff6f64f93 in poll () from /lib/libc.so.6 0x00007ffff7bcbbc9 in pthread_cond_timedwait@@GLIBC_2.3.2 () 0x00007ffff7bcb85c in pthread_cond_wait@@GLIBC_2.3.2 () from / 0x00007ffff7bcb85c in pthread_cond_wait@@GLIBC_2.3.2 () from / 0x00007ffff7bcb85c in pthread_cond_wait@@GLIBC_2.3.2 () from / 0x00007ffff7bcbbc9 in pthread_cond_timedwait@@GLIBC_2.3.2 () 0x00007ffff7bcb85c in pthread_cond_wait@@GLIBC_2.3.2 () from / 0x00007ffff7bcb85c in pthread_cond_wait@@GLIBC_2.3.2 () from / 0x00007ffff7bcb85c in pthread_cond_wait@@GLIBC_2.3.2 () from / 0x00007ffff7bcbbc9 in pthread_cond_timedwait@@GLIBC_2.3.2 () 0x00007ffff7bcbbc9 in pthread_cond_timedwait@@GLIBC_2.3.2 () 0x00007ffff7bcb85c in pthread_cond_wait@@GLIBC_2.3.2 () from / 0x00007ffff7bcb85c in pthread_cond_wait@@GLIBC_2.3.2 () from / 0x00007ffff6f64f93 in poll () from /lib/libc.so.6 0x00007ffff7bcb85c in pthread_cond_wait@@GLIBC_2.3.2 () from /

#12 main (argc=1, argv=0x7fffffffeba8) at /sdd5/firefox/mozilla-beta/browser/app/nsBrowserApp.cpp:295 (gdb) s 162 return g_main_context_iteration(NULL, mayWait); (gdb) s 163 } (gdb) s nsBaseAppShell::DoProcessNextNativeEvent (this=0x7fffe6d869b0, mayWait=<value optimized out>) at /sdd5/firefox/mozilla-beta/widget/xpwidgets/nsBaseAppShell.cpp:174 174 mEventloopNestingState = prevVal; (gdb) list 169 170 ++mEventloopNestingLevel; 171 bool result = ProcessNextNativeEvent(mayWait); 172 --mEventloopNestingLevel; 173 174 mEventloopNestingState = prevVal; 175 return result; 176 } 177 178 //------------------------------------------------------------------------(gdb) s 172 --mEventloopNestingLevel; (gdb) s 176 } (gdb) s nsBaseAppShell::OnProcessNextEvent (this=0x7fffe6d869b0, thr=0x7ffff6d7fc90, mayWait=false, recursionDepth=<value optimized out>) at /sdd5/firefox/mozilla-beta/widget/xpwidgets/nsBaseAppShell.cpp:304 304 do { (gdb) bt #0 nsBaseAppShell::OnProcessNextEvent (this=0x7fffe6d869b0, thr=0x7ffff6d7fc90, mayWait=false, recursionDepth=<value optimized out>) at /sdd5/firefox/mozilla-beta/widget/xpwidgets/nsBaseAppShell.cpp:304 #1 0x00007ffff472931a in nsThread::ProcessNextEvent (this=0x7ffff6d7fc90, mayWait=false, result=0x7fffffffc1ff) at /sdd5/firefox/mozilla-beta/xpcom/threads/nsThread.cpp:619 #2 0x00007ffff46fb25e in NS_ProcessNextEvent_P (thread=<value optimized out>, mayWait=false) at /sdd5/firefox/mozilla-beta/xpcom/build/nsThreadUtils.cpp:245 #3 0x00007ffff4685724 in mozilla::ipc::MessagePump::Run (this=0x7fffe8309cc0, aDelegate=0x7ffff6de2240) at /sdd5/firefox/mozilla-beta/ipc/glue/MessagePump.cpp:110 #4 0x00007ffff4748420 in MessageLoop::RunHandler (this=0x7ffff6d6da18) at /sdd5/firefox/mozilla-beta/ ipc/chromium/src/base/message_loop.cc:201 #5 MessageLoop::Run (this=0x7ffff6d6da18) at /sdd5/firefox/mozilla-beta/ipc/chromium/src/base/ message_loop.cc:175 #6 0x00007ffff45da7e3 in nsBaseAppShell::Run (this=0x7fffe6d869b0) at /sdd5/firefox/mozilla-beta/ widget/xpwidgets/nsBaseAppShell.cpp:189 #7 0x00007ffff4499cf0 in nsAppStartup::Run (this=0x7fffe6db3240) at /sdd5/firefox/mozilla-beta/ toolkit/components/startup/nsAppStartup.cpp:220 #8 0x00007ffff3c9cdf4 in XRE_main (argc=<value optimized out>, argv=<value optimized out>, aAppData=<value optimized out>) at /sdd5/firefox/mozilla-beta/toolkit/xre/nsAppRunner.cpp:3537 #9 0x00000000004021cf in do_main (argc=1, argv=0x7fffffffeba8) at /sdd5/firefox/mozilla-beta/browser/ app/nsBrowserApp.cpp:205 #10 main (argc=1, argv=0x7fffffffeba8) at /sdd5/firefox/mozilla-beta/browser/app/nsBrowserApp.cpp:295 (gdb) s PR_IntervalNow () at prinrval.c:75 75 { (gdb) s 76 if (!_pr_initialized) _PR_ImplicitInitialization(); (gdb) s 78 } /* PR_IntervalNow */ (gdb) s PR_IntervalNow () at prinrval.c:77 77 return _PR_MD_GET_INTERVAL(); (gdb) s _PR_UNIX_GetInterval () at unix.c:3053 3053 { (gdb) bt #0 _PR_UNIX_GetInterval () at unix.c:3053 #1 0x00007ffff45da68b in nsBaseAppShell::OnProcessNextEvent (this=0x7fffe6d869b0, thr=0x7ffff6d7fc90, mayWait=false, recursionDepth=<value optimized out>) (gdb) info threads 28 Thread 0x7fffdfbfd700 (LWP 7608) lib/libpthread.so.0 27 Thread 0x7fffd4fff700 (LWP 7607) from /lib/libpthread.so.0 26 Thread 0x7fffd7dfe700 (LWP 7605) lib/libpthread.so.0 25 Thread 0x7fffd75fd700 (LWP 7604) 21 Thread 0x7fffd85ff700 (LWP 7600) lib/libpthread.so.0 20 Thread 0x7fffd8ffe700 (LWP 7599) lib/libpthread.so.0 19 Thread 0x7fffd97ff700 (LWP 7596) 18 Thread 0x7fffda3f8700 (LWP 7595) from /lib/libpthread.so.0 17 Thread 0x7fffdadfd700 (LWP 7594) lib/libpthread.so.0 16 Thread 0x7fffdb5fe700 (LWP 7593) lib/libpthread.so.0 15 Thread 0x7fffdbdff700 (LWP 7592) lib/libpthread.so.0 14 Thread 0x7fffdcc08700 (LWP 7591) from /lib/libpthread.so.0 13 Thread 0x7fffdeeff700 (LWP 7590) lib/libpthread.so.0 12 Thread 0x7fffe03fe700 (LWP 7589) lib/libpthread.so.0 9 Thread 0x7fffe1ee6700 (LWP 7586) lib/libpthread.so.0 8 Thread 0x7fffe34ff700 (LWP 7584) from /lib/libpthread.so.0 7 Thread 0x7fffe4067700 (LWP 7583) from /lib/libpthread.so.0 6 Thread 0x7fffe4c68700 (LWP 7582) lib/libpthread.so.0 5 Thread 0x7fffe5cdf700 (LWP 7581) lib/libpthread.so.0 4 Thread 0x7fffe6cff700 (LWP 7580) 3 Thread 0x7fffe78fa700 (LWP 7579) lib/libpthread.so.0

File: /home/jie/analysis.txt Page 5 of 9


at /sdd5/firefox/mozilla-beta/ipc/glue/MessagePump.cpp:134 #10 0x00007ffff4748420 in MessageLoop::RunHandler (this=0x7fffe13192e0) at /sdd5/firefox/mozilla-beta/ ipc/chromium/src/base/message_loop.cc:201 #11 MessageLoop::Run (this=0x7fffe13192e0) at /sdd5/firefox/mozilla-beta/ipc/chromium/src/base/ message_loop.cc:175 #12 0x00007ffff45da7e3 in nsBaseAppShell::Run (this=0x7fffe6d869b0) at /sdd5/firefox/mozilla-beta/ widget/xpwidgets/nsBaseAppShell.cpp:189 #13 0x00007ffff4499cf0 in nsAppStartup::Run (this=0x7fffe6db3240) at /sdd5/firefox/mozilla-beta/ toolkit/components/startup/nsAppStartup.cpp:220 #14 0x00007ffff3c9cdf4 in XRE_main (argc=<value optimized out>, argv=<value optimized out>, aAppData=<value optimized out>) at /sdd5/firefox/mozilla-beta/toolkit/xre/nsAppRunner.cpp:3537 #15 0x00000000004021cf in do_main (argc=1, argv=0x7fffffffeba8) at /sdd5/firefox/mozilla-beta/browser/ app/nsBrowserApp.cpp:205 #16 main (argc=1, argv=0x7fffffffeba8) at /sdd5/firefox/mozilla-beta/browser/app/nsBrowserApp.cpp:295

File: /home/jie/analysis.txt

Page 6 of 9

2 Thread 0x7fffe80fb700 (LWP 7578) * 1 Thread 0x7ffff7fd2720 (LWP 7573)

0x00007ffff6f6d879 in syscall () from /lib/libc.so.6 0x00007ffff6f64f93 in poll () from /lib/libc.so.6

(gdb) bt 28 #0 0x00007ffff6f64f93 in poll () from /lib/libc.so.6 #1 0x00007ffff45c554d in PollWrapper (ufds=<value optimized out>, nfsd=<value optimized out>, timeout_=<value optimized out>) at /sdd5/firefox/mozilla-beta/widget/gtk2/nsAppShell.cpp:66 #2 0x00007ffff1f7d4a9 in ?? () from /lib/libglib-2.0.so.0 #3 0x00007ffff1f7d8fc in g_main_context_iteration () from /lib/libglib-2.0.so.0 #4 0x00007ffff45c53d9 in nsAppShell::ProcessNextNativeEvent (this=<value optimized out>, mayWait=9) at /sdd5/firefox/mozilla-beta/widget/gtk2/nsAppShell.cpp:162 #5 0x00007ffff45da495 in nsBaseAppShell::DoProcessNextNativeEvent (this=0x7fffe13192e0, mayWait=9) at /sdd5/firefox/mozilla-beta/widget/xpwidgets/nsBaseAppShell.cpp:171 #6 0x00007ffff45da6cc in nsBaseAppShell::OnProcessNextEvent (this=0x7fffe6d869b0, thr=0x7ffff6d7fc90, mayWait=9, recursionDepth=<value optimized out>) at /sdd5/firefox/mozilla-beta/widget/xpwidgets/nsBaseAppShell.cpp:324 #7 0x00007ffff472931a in nsThread::ProcessNextEvent (this=0x7ffff6d7fc90, mayWait=true, result=0x7fffffffc1ff) at /sdd5/firefox/mozilla-beta/xpcom/threads/nsThread.cpp:619 #8 0x00007ffff46fb25e in NS_ProcessNextEvent_P (thread=<value optimized out>, mayWait=9) at /sdd5/ firefox/mozilla-beta/xpcom/build/nsThreadUtils.cpp:245 #9 0x00007ffff468578f in mozilla::ipc::MessagePump::Run (this=0x7fffe8309cc0, aDelegate=0x7ffff6de2240) at /sdd5/firefox/mozilla-beta/ipc/glue/MessagePump.cpp:134 #10 0x00007ffff4748420 in MessageLoop::RunHandler (this=0x7fffe13192e0) at /sdd5/firefox/mozilla-beta/ ipc/chromium/src/base/message_loop.cc:201 #11 MessageLoop::Run (this=0x7fffe13192e0) at /sdd5/firefox/mozilla-beta/ipc/chromium/src/base/ message_loop.cc:175 #12 0x00007ffff45da7e3 in nsBaseAppShell::Run (this=0x7fffe6d869b0) at /sdd5/firefox/mozilla-beta/ widget/xpwidgets/nsBaseAppShell.cpp:189 #13 0x00007ffff4499cf0 in nsAppStartup::Run (this=0x7fffe6db3240) at /sdd5/firefox/mozilla-beta/ toolkit/components/startup/nsAppStartup.cpp:220 #14 0x00007ffff3c9cdf4 in XRE_main (argc=<value optimized out>, argv=<value optimized out>, aAppData=<value optimized out>) at /sdd5/firefox/mozilla-beta/toolkit/xre/nsAppRunner.cpp:3537 #15 0x00000000004021cf in do_main (argc=1, argv=0x7fffffffeba8) at /sdd5/firefox/mozilla-beta/browser/ app/nsBrowserApp.cpp:205 #16 main (argc=1, argv=0x7fffffffeba8) at /sdd5/firefox/mozilla-beta/browser/app/nsBrowserApp.cpp:295

Thread 1:

(gdb) thread 2 [Switching to thread 2 (Thread 0x7fffe80fb700 (LWP 7578))]#0 0x00007ffff6f6d879 in syscall () from / lib/libc.so.6 (gdb) bt #0 0x00007ffff6f6d879 in syscall () from /lib/libc.so.6 #1 0x00007ffff4744751 in epoll_wait (epfd=<value optimized out>, events=<value optimized out>, maxevents=<value optimized out>, timeout=762793982) at /sdd5/firefox/mozilla-beta/ipc/chromium/src/third_party/libevent/epoll_sub.c:51 #2 0x00007ffff4744365 in epoll_dispatch (base=0x7ffff6dd0000, arg=<value optimized out>, tv=<value optimized out>) at /sdd5/firefox/mozilla-beta/ipc/chromium/src/third_party/libevent/epoll.c:208 #3 0x00007ffff47429f2 in event_base_loop (base=0x7ffff6dd0000, flags=<value optimized out>) at /sdd5/firefox/mozilla-beta/ipc/chromium/src/third_party/libevent/event.c:513 #4 0x00007ffff47544b4 in base::MessagePumpLibevent::Run (this=0x7fffe832e0d0, delegate=0x7fffe80facd0) at /sdd5/firefox/mozilla-beta/ipc/chromium/src/base/message_pump_libevent.cc:336 #5 0x00007ffff4748420 in MessageLoop::RunHandler (this=0x12) at /sdd5/firefox/mozilla-beta/ipc/ chromium/src/base/message_loop.cc:201 #6 MessageLoop::Run (this=0x12) at /sdd5/firefox/mozilla-beta/ipc/chromium/src/base/ message_loop.cc:175 #7 0x00007ffff474df94 in base::Thread::ThreadMain (this=0x7fffe8309f00) at /sdd5/firefox/mozilla-beta/ ipc/chromium/src/base/thread.cc:156 #8 0x00007ffff47548f8 in ThreadFunc (closure=0x12) at /sdd5/firefox/mozilla-beta/ipc/chromium/src/ base/platform_thread_posix.cc:26 #9 0x00007ffff7bc69ca in start_thread () from /lib/libpthread.so.0 #10 0x00007ffff6f7170d in clone () from /lib/libc.so.6 #11 0x0000000000000000 in ?? () (gdb)

2nd time break point reached: Breakpoint 2, nsAppShell::ProcessNextNativeEvent (this=0x7fffe6d869b0, mayWait=false) at /sdd5/firefox/ mozilla-beta/widget/gtk2/nsAppShell.cpp:161 161 { (gdb) bt #0 nsAppShell::ProcessNextNativeEvent (this=0x7fffe6d869b0, mayWait=false) at /sdd5/firefox/mozillabeta/widget/gtk2/nsAppShell.cpp:161 #1 0x00007ffff45da495 in nsBaseAppShell::DoProcessNextNativeEvent (this=0x7fffe6d869b0, mayWait=false) at /sdd5/firefox/mozilla-beta/widget/xpwidgets/nsBaseAppShell.cpp:171 #2 0x00007ffff45da682 in nsBaseAppShell::OnProcessNextEvent (this=0x7fffe6d869b0, thr=0x7ffff6d7fc90, mayWait=false, recursionDepth=<value optimized out>) at /sdd5/firefox/mozilla-beta/widget/xpwidgets/nsBaseAppShell.cpp:306 #3 0x00007ffff472931a in nsThread::ProcessNextEvent (this=0x7ffff6d7fc90, mayWait=false, result=0x7fffffffc1ff) at /sdd5/firefox/mozilla-beta/xpcom/threads/nsThread.cpp:619 #4 0x00007ffff46fb25e in NS_ProcessNextEvent_P (thread=<value optimized out>, mayWait=false) at /sdd5/firefox/mozilla-beta/xpcom/build/nsThreadUtils.cpp:245 #5 0x00007ffff4685724 in mozilla::ipc::MessagePump::Run (this=0x7fffe8309cc0, aDelegate=0x7ffff6de2240)

(gdb) thread 1 [Switching to thread 1 (Thread 0x7ffff7fd2720 (LWP 7573))]#0 0x00007ffff6f64f93 in poll () from /lib/ libc.so.6 (gdb) bt #0 0x00007ffff6f64f93 in poll () from /lib/libc.so.6 #1 0x00007ffff45c554d in PollWrapper (ufds=<value optimized out>, nfsd=<value optimized out>, timeout_=<value optimized out>) at /sdd5/firefox/mozilla-beta/widget/gtk2/nsAppShell.cpp:66 #2 0x00007ffff1f7d4a9 in ?? () from /lib/libglib-2.0.so.0 #3 0x00007ffff1f7d8fc in g_main_context_iteration () from /lib/libglib-2.0.so.0 #4 0x00007ffff45c53d9 in nsAppShell::ProcessNextNativeEvent (this=<value optimized out>, mayWait=9) at /sdd5/firefox/mozilla-beta/widget/gtk2/nsAppShell.cpp:162 #5 0x00007ffff45da495 in nsBaseAppShell::DoProcessNextNativeEvent (this=0x7fffe13192e0, mayWait=9) at /sdd5/firefox/mozilla-beta/widget/xpwidgets/nsBaseAppShell.cpp:171 #6 0x00007ffff45da6cc in nsBaseAppShell::OnProcessNextEvent (this=0x7fffe6d869b0, thr=0x7ffff6d7fc90, mayWait=9, recursionDepth=<value optimized out>) at /sdd5/firefox/mozilla-beta/widget/xpwidgets/nsBaseAppShell.cpp:324 #7 0x00007ffff472931a in nsThread::ProcessNextEvent (this=0x7ffff6d7fc90, mayWait=true, result=0x7fffffffc1ff) at /sdd5/firefox/mozilla-beta/xpcom/threads/nsThread.cpp:619 #8 0x00007ffff46fb25e in NS_ProcessNextEvent_P (thread=<value optimized out>, mayWait=9) at /sdd5/ firefox/mozilla-beta/xpcom/build/nsThreadUtils.cpp:245 #9 0x00007ffff468578f in mozilla::ipc::MessagePump::Run (this=0x7fffe8309cc0, aDelegate=0x7ffff6de2240)

File: /home/jie/analysis.txt Page 7 of 9

File: /home/jie/analysis.txt

Page 8 of 9

at /sdd5/firefox/mozilla-beta/ipc/glue/MessagePump.cpp:110 #6 0x00007ffff4748420 in MessageLoop::RunHandler (this=0x7fffe6d869b0) at /sdd5/firefox/mozilla-beta/ ipc/chromium/src/base/message_loop.cc:201 #7 MessageLoop::Run (this=0x7fffe6d869b0) at /sdd5/firefox/mozilla-beta/ipc/chromium/src/base/ message_loop.cc:175 #8 0x00007ffff45da7e3 in nsBaseAppShell::Run (this=0x7fffe6d869b0) at /sdd5/firefox/mozilla-beta/ widget/xpwidgets/nsBaseAppShell.cpp:189 #9 0x00007ffff4499cf0 in nsAppStartup::Run (this=0x7fffe6db3240) at /sdd5/firefox/mozilla-beta/ toolkit/components/startup/nsAppStartup.cpp:220 #10 0x00007ffff3c9cdf4 in XRE_main (argc=<value optimized out>, argv=<value optimized out>, aAppData=<value optimized out>) at /sdd5/firefox/mozilla-beta/toolkit/xre/nsAppRunner.cpp:3537 #11 0x00000000004021cf in do_main (argc=1, argv=0x7fffffffeba8) at /sdd5/firefox/mozilla-beta/browser/ app/nsBrowserApp.cpp:205 #12 main (argc=1, argv=0x7fffffffeba8) at /sdd5/firefox/mozilla-beta/browser/app/nsBrowserApp.cpp:295 (gdb) list

Looking at the crash list:

https://wiki.mozilla.org/Networking/TeamPriorities

and

https://bugzilla.mozilla.org/show_bug.cgi?id=741179 And the current thread that breaks is 16:

beta/netwerk/cache/nsDiskCacheStreams.cpp:549 #4 0x00007ffff3cf96cc in nsDiskCacheStreamIO::CloseOutputStreamInternal (this=0x7fffdbe47488, outputStream=0x3c00) at /sdd5/firefox/mozilla-beta/netwerk/cache/nsDiskCacheStreams.cpp:500 #5 0x00007ffff3cf96f8 in nsDiskCacheStreamIO::CloseOutputStream (this=<value optimized out>, outputStream=<value optimized out>) at /sdd5/firefox/mozilla-beta/netwerk/cache/nsDiskCacheStreams.cpp:478 #6 0x00007ffff3cf9b2e in nsDiskCacheOutputStream::Close (this=0x7fffd53412e0) at /sdd5/firefox/ mozilla-beta/netwerk/cache/nsDiskCacheStreams.cpp:243 #7 0x00007ffff3ce8e9f in ~nsOutputStreamWrapper (this=0x7fffdbe47488, __in_chrg=<value optimized out>) at /sdd5/firefox/mozilla-beta/netwerk/cache/nsCacheEntryDescriptor.h:192 #8 0x00007ffff3ce8c60 in nsCacheEntryDescriptor::nsOutputStreamWrapper::Release (this=0x7fffdbe47488) at /sdd5/firefox/mozilla-beta/netwerk/cache/nsCacheEntryDescriptor.cpp:760 #9 0x00007ffff46fc1a2 in nsProxyReleaseEvent::Run (this=<value optimized out>) at /sdd5/firefox/ mozilla-beta/xpcom/build/nsProxyRelease.cpp:52 #10 0x00007ffff47294ac in nsThread::ProcessNextEvent (this=0x7fffe145bf50, mayWait=true, result=0x7fffdb5fde3f) at /sdd5/firefox/mozilla-beta/xpcom/threads/nsThread.cpp:657 #11 0x00007ffff46fb25e in NS_ProcessNextEvent_P (thread=<value optimized out>, mayWait=false) at /sdd5/firefox/mozilla-beta/xpcom/build/nsThreadUtils.cpp:245 #12 0x00007ffff4729950 in nsThread::ThreadFunc (arg=<value optimized out>) at /sdd5/firefox/mozillabeta/xpcom/threads/nsThread.cpp:289 #13 0x00007ffff6aed1d3 in _pt_root (arg=<value optimized out>) at ptthread.c:187 #14 0x00007ffff7bc69ca in start_thread () from /lib/libpthread.so.0 #15 0x00007ffff6f7170d in clone () from /lib/libc.so.6 #16 0x0000000000000000 in ?? () (gdb) (gdb) thread [Current thread is 16 (Thread 0x7fffdb5fe700 (LWP 7593))]

after setting the breakpoints:

Breakpoint 3, nsDiskCacheBlockFile::Write (this=0x7fffdbe47488, offset=15360, buf=0x7fffd028b000, amount=1727) at /sdd5/firefox/mozilla-beta/netwerk/cache/nsDiskCacheBlockFile.cpp:378 378 { (gdb) list 373 * Wrapper around PR_Write that grows file in larger chunks to combat fragmentation 374 * 375 *****************************************************************************/ 376 bool 377 nsDiskCacheBlockFile::Write(PRInt32 offset, const void *buf, PRInt32 amount) 378 { 379 /* Grow the file to 4mb right away, then double it until the file grows to 20mb. 380 20mb is a magic threshold because OSX stops autodefragging files bigger than that. 381 Beyond 20mb grow in 4mb chunks. 382 */ (gdb) 383 const PRInt32 upTo = offset + amount; 384 // Use a conservative definition of 20MB 385 const PRInt32 minPreallocate = 4*1024*1024; 386 const PRInt32 maxPreallocate = 20*1000*1000; 387 if (mFileSize < upTo) { 388 // maximal file size 389 const PRInt32 maxFileSize = mBitMapWords * 4 * (mBlockSize * 8 + 1); 390 if (upTo > maxPreallocate) { 391 // grow the file as a multiple of minPreallocate 392 mFileSize = ((upTo + minPreallocate - 1) / minPreallocate) * minPreallocate; (gdb)

And below indicated how it is reached there:

(gdb) bt #0 nsDiskCacheBlockFile::Write (this=0x7fffdbe47488, offset=15360, buf=0x7fffd028b000, amount=1727) at /sdd5/firefox/mozilla-beta/netwerk/cache/nsDiskCacheBlockFile.cpp:378 #1 0x00007ffff3cef929 in nsDiskCacheBlockFile::WriteBlocks (this=0x7fffdbe47488, buffer=0x7fffd028b000, size=1727, numBlocks=<value optimized out>, startBlock=0x7fffdb5fdcbc) at /sdd5/firefox/mozilla-beta/netwerk/cache/nsDiskCacheBlockFile.cpp:240 #2 0x00007ffff3cf7dbb in nsDiskCacheMap::WriteDataCacheBlocks (this=0x7fffdbe47450, binding=0x7fffd2d3bab0, buffer=<value optimized out>, size=1727) at /sdd5/firefox/mozilla-beta/netwerk/cache/nsDiskCacheMap.cpp:970 #3 0x00007ffff3cf9619 in nsDiskCacheStreamIO::Flush (this=0x7fffd6a1b640) at /sdd5/firefox/mozilla-

(gdb) info threads 38 Thread 0x7fffd12ff700 (LWP 7627) GetItem (src=0x7fffd12fe7f0, dest=0x7fffd12fe730, includeTag=<value optimized out>) at quickder.c:126 31 Thread 0x7fffdadfd700 (LWP 7614) 0x00007ffff7bcbbc9 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0 28 Thread 0x7fffdfbfd700 (LWP 7608) 0x00007ffff7bcb85c in pthread_cond_wait@@GLIBC_2.3.2 () from / lib/libpthread.so.0 26 Thread 0x7fffd7dfe700 (LWP 7605) 0x00007ffff7bcb85c in pthread_cond_wait@@GLIBC_2.3.2 () from / lib/libpthread.so.0 25 Thread 0x7fffd75fd700 (LWP 7604) 0x00007ffff6260f73 in sqlite3PagerAcquire (pPager=0x0, pgno=2, ppPage=0x7fffd75fc3d8, noContent=0) at /sdd5/firefox/mozilla-beta/db/sqlite3/src/sqlite3.c:43391 21 Thread 0x7fffd85ff700 (LWP 7600) 0x00007ffff7bcb85c in pthread_cond_wait@@GLIBC_2.3.2 () from / lib/libpthread.so.0 20 Thread 0x7fffd8ffe700 (LWP 7599) 0x00007ffff7bcb85c in pthread_cond_wait@@GLIBC_2.3.2 () from / lib/libpthread.so.0 19 Thread 0x7fffd97ff700 (LWP 7596) 0x00007ffff6f64f93 in poll () from /lib/libc.so.6 * 16 Thread 0x7fffdb5fe700 (LWP 7593) nsDiskCacheBlockFile::Write (this=0x7fffdbe47488, offset=15360, buf=0x7fffd028b000, amount=1727) at /sdd5/firefox/mozilla-beta/netwerk/cache/nsDiskCacheBlockFile.cpp:378 15 Thread 0x7fffdbdff700 (LWP 7592) 0x00007ffff7bcb85c in pthread_cond_wait@@GLIBC_2.3.2 () from / lib/libpthread.so.0 13 Thread 0x7fffdeeff700 (LWP 7590) 0x00007ffff7bcb85c in pthread_cond_wait@@GLIBC_2.3.2 () from / lib/libpthread.so.0 12 Thread 0x7fffe03fe700 (LWP 7589) 0x00007ffff7bcb85c in pthread_cond_wait@@GLIBC_2.3.2 () from / lib/libpthread.so.0 9 Thread 0x7fffe1ee6700 (LWP 7586) 0x00007ffff7bcb85c in pthread_cond_wait@@GLIBC_2.3.2 () from / lib/libpthread.so.0 8 Thread 0x7fffe34ff700 (LWP 7584) 0x00007ffff7bcbbc9 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0 7 Thread 0x7fffe4067700 (LWP 7583) 0x00007ffff7bcbbc9 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0 6 Thread 0x7fffe4c68700 (LWP 7582) 0x00007ffff7bcb85c in pthread_cond_wait@@GLIBC_2.3.2 () from / lib/libpthread.so.0 5 Thread 0x7fffe5cdf700 (LWP 7581) 0x00007ffff7bcb85c in pthread_cond_wait@@GLIBC_2.3.2 () from / lib/libpthread.so.0 4 Thread 0x7fffe6cff700 (LWP 7580) 0x00007ffff6f64f93 in poll () from /lib/libc.so.6 3 Thread 0x7fffe78fa700 (LWP 7579) 0x00007ffff7bcb85c in pthread_cond_wait@@GLIBC_2.3.2 () from /

File: /home/jie/analysis.txt Page 9 of 9

lib/libpthread.so.0 2 Thread 0x7fffe80fb700 (LWP 7578) 1 Thread 0x7ffff7fd2720 (LWP 7573)

0x00007ffff6f6d879 in syscall () from /lib/libc.so.6 0x00007ffff6f64f93 in poll () from /lib/libc.so.6

You might also like