QA/Automation/Projects/WebRTC/Crashtest Guide: Difference between revisions

Jump to navigation Jump to search
Line 146: Line 146:
===Compare the output of the crash to the callstack given in the bug===
===Compare the output of the crash to the callstack given in the bug===


The output obtained in this via gdb, should look something like this (NOTE: If you arrived here via a crash, then consult about:crashes, find the report and scroll down. You should find the same output in pretty tabular form)
The output obtained in this via gdb, should look something like this (NOTE: If you arrived here via a crash, then consult ''about:crashes'', find the report and scroll down. You should find the same output in pretty tabular form)


---------------------------------------------------------------------------------------------------------------------------------------------
    #0  0x00007ffff16d5420 in nsTArray<nsRefPtr<mozilla::MediaEngineAudioSource>, nsTArrayDefaultAllocator>::ElementAt (this=0x7fffd6ea5b90, i=0)  
#0  0x00007ffff16d5420 in nsTArray<nsRefPtr<mozilla::MediaEngineAudioSource>, nsTArrayDefaultAllocator>::ElementAt (this=0x7fffd6ea5b90, i=0)  
        at ../../dist/include/nsTArray.h:538  
    at ../../dist/include/nsTArray.h:538  
    #1  0x00007ffff19ce182 in mozilla::MediaEngineDefault::EnumerateAudioDevices (  
#1  0x00007ffff19ce182 in mozilla::MediaEngineDefault::EnumerateAudioDevices (  
        this=0x7fffd6ea5b80, aASources=0x7fffd14fec80)  
    this=0x7fffd6ea5b80, aASources=0x7fffd14fec80)  
        at /home/nebelhom/Mozilla-Dev/mozilla-central/content/media/webrtc/MediaEngineDefault.cpp:367  
    at /home/nebelhom/Mozilla-Dev/mozilla-central/content/media/webrtc/MediaEngineDefault.cpp:367  
    #2  0x00007ffff16d1155 in mozilla::GetUserMediaRunnable::SelectDevice (  
#2  0x00007ffff16d1155 in mozilla::GetUserMediaRunnable::SelectDevice (  
        this=0x7fffc8efcb60)  
    this=0x7fffc8efcb60)  
        at /home/nebelhom/Mozilla-Dev/mozilla-central/dom/media/MediaManager.cpp:505  
    at /home/nebelhom/Mozilla-Dev/mozilla-central/dom/media/MediaManager.cpp:505  
    #3  0x00007ffff16d0b36 in mozilla::GetUserMediaRunnable::Run (  
#3  0x00007ffff16d0b36 in mozilla::GetUserMediaRunnable::Run (  
        this=0x7fffc8efcb60)  
    this=0x7fffc8efcb60)  
        at /home/nebelhom/Mozilla-Dev/mozilla-central/dom/media/MediaManager.cpp:408  
    at /home/nebelhom/Mozilla-Dev/mozilla-central/dom/media/MediaManager.cpp:408  
    #4  0x00007ffff25b7735 in nsThread::ProcessNextEvent (this=0x7fffc76a47e0,  
#4  0x00007ffff25b7735 in nsThread::ProcessNextEvent (this=0x7fffc76a47e0,  
        mayWait=true, result=0x7fffd14fedff)  
    mayWait=true, result=0x7fffd14fedff)  
        at /home/nebelhom/Mozilla-Dev/mozilla-central/xpcom/threads/nsThread.cpp:627  
    at /home/nebelhom/Mozilla-Dev/mozilla-central/xpcom/threads/nsThread.cpp:627  
    #5  0x00007ffff2544dec in NS_ProcessNextEvent_P (thread=0x7fffc76a47e0,  
#5  0x00007ffff2544dec in NS_ProcessNextEvent_P (thread=0x7fffc76a47e0,  
        mayWait=true)  
    mayWait=true)  
        at /home/nebelhom/Mozilla-Dev/mozilla-central/obj/xpcom/build/nsThreadUtils---Type <return> to continue, or q <return> to quit---  
    at /home/nebelhom/Mozilla-Dev/mozilla-central/obj/xpcom/build/nsThreadUtils---Type <return> to continue, or q <return> to quit---  
        .cpp:221  
.cpp:221  
    #6  0x00007ffff25b6590 in nsThread::ThreadFunc (arg=0x7fffc76a47e0)  
#6  0x00007ffff25b6590 in nsThread::ThreadFunc (arg=0x7fffc76a47e0)  
        at /home/nebelhom/Mozilla-Dev/mozilla-central/xpcom/threads/nsThread.cpp:265  
    at /home/nebelhom/Mozilla-Dev/mozilla-central/xpcom/threads/nsThread.cpp:265  
    #7  0x00007ffff69e4f19 in _pt_root (arg=0x7fffc774f370)  
#7  0x00007ffff69e4f19 in _pt_root (arg=0x7fffc774f370)  
        at /home/nebelhom/Mozilla-Dev/mozilla-central/nsprpub/pr/src/pthreads/ptthread.c:156  
    at /home/nebelhom/Mozilla-Dev/mozilla-central/nsprpub/pr/src/pthreads/ptthread.c:156  
    #8  0x00007ffff73c4e9a in start_thread ()  
#8  0x00007ffff73c4e9a in start_thread ()  
        from /lib/x86_64-linux-gnu/libpthread.so.0  
  from /lib/x86_64-linux-gnu/libpthread.so.0  
    #9  0x00007ffff70f1cbd in clone () from /lib/x86_64-linux-gnu/libc.so.6  
 
    #10 0x0000000000000000 in ?? ()  
#9  0x00007ffff70f1cbd in clone () from /lib/x86_64-linux-gnu/libc.so.6  
 
#10 0x0000000000000000 in ?? ()  
---------------------------------------------------------------------------------------------------------------------------------------------


This output should be similar to the output given in the callstack of the bug (There may be some slight differences in the numbers). You have now successfully re-created the bug in question. Time to create a crashtest for this bug.
This output should be similar to the output given in the callstack of the bug (There may be some slight differences in the numbers). You have now successfully re-created the bug in question. Time to create a crashtest for this bug.
Confirmed users
35

edits

Navigation menu