Merge lp://staging/~brian-murray/daisy/find-bucket-from-stacktrace into lp://staging/daisy

Proposed by Brian Murray
Status: Merged
Approved by: Evan
Approved revision: 416
Merged at revision: 417
Proposed branch: lp://staging/~brian-murray/daisy/find-bucket-from-stacktrace
Merge into: lp://staging/daisy
Diff against target: 92 lines (+39/-29)
1 file modified
tools/find_stacktrace.py (+39/-29)
To merge this branch: bzr merge lp://staging/~brian-murray/daisy/find-bucket-from-stacktrace
Reviewer Review Type Date Requested Status
Evan (community) Approve
Review via email: mp+209334@code.staging.launchpad.net

Description of the change

As I understand the original problem that jibel was experiencing was that he was not able to find the bucket for a particular OOPS he had reported. So we need a tool, until there is a way in the UI, to move from an individual OOPS or instance to the bucket that includes that instance. I'm under the impression that find_stacktrace.py was trying to do this, but failing. I've modified the code so that if we pass an OOPS we can find the bucket.

 $ PYTHONPATH=$PYTHONPATH:~/source-trees/daisy/daisy/:~/source-trees/errors/errors/ tools/find_stacktrace.py 07cbec9e-9d47-11e3-8399-2c768aafd08c
SAS: /usr/bin/compiz:11:x86_64:/lib/x86_64-linux-gnu/libc-2.18.so+8cc24:/usr/lib/x86_64-linux-gnu/dri/swrast_dri.so+220e5c:/usr/lib/x86_64-linux-gnu/dri/swrast_dri.so+220577:/usr/lib/compiz/libopengl.so+3ea11:/usr/lib/compiz/libopengl.so+22c3e:/usr/lib/compiz/libopengl.so+235d0:/usr/lib/compiz/libopengl.so+30a59:/usr/lib/compiz/libopengl.so+2321b:/usr/lib/compiz/libunityshell.so+b7c967:/usr/lib/compiz/libunityshell.so+b7d99c:/usr/lib/compiz/libunityshell.so+b7d931:/usr/lib/compiz/libunityshell.so+b7d8e0:/usr/lib/compiz/libunityshell.so+b7d814:/usr/lib/compiz/libunityshell.so+b7d6dd:/usr/lib/compiz/libunityshell.so+b7d60e
Found crash signature for SAS: /usr/bin/compiz:11:memmove:drisw_update_tex_buffer:dri_set_tex_buffer2:operator:compiz::opengl::bindTexImageGLX
https://errors.ubuntu.com/bucket/?id=/usr/bin/compiz:11:memmove:drisw_update_tex_buffer:dri_set_tex_buffer2:operator:compiz::opengl::bindTexImageGLX

However, maybe this isn't what the tool is supposed to do and if that's the case I'll copy the code as it stands and put it in a new tool as this seems useful.

To post a comment you must log in.
415. By Brian Murray

tools/find_stacktrace.py: also check the awaiting_retrace cf

Revision history for this message
Brian Murray (brian-murray) wrote :

Although the code needlessly repeats the SAS, it works as I watched an oops move from the awaiting_retrace cf to the retracing index.

Waiting to retrace SAS: OrderedDict([(u'/usr/lib/ubiquity/bin/ubiquity:11:x86_64:/usr/lib/x86_64-linux-gnu/gtk-3.0/modules/libautopilot.so+9808:/usr/lib/x
86_64-linux-gnu/libxpathselect.so.1.4+166ba:/usr/lib/x86_64-linux-gnu/libxpathselect.so.1.4+1299f:/usr/lib/x86_64-linux-gnu/gtk-3.0/modules/libautopilot.s
o+ba85:/usr/lib/x86_64-linux-gnu/gtk-3.0/modules/libautopilot.so+c1fd:/usr/lib/x86_64-linux-gnu/gtk-3.0/modules/libautopilot.so+c41b:/usr/lib/x86_64-linux
-gnu/libffi.so.6.0.1+5adc:/usr/lib/x86_64-linux-gnu/libffi.so.6.0.1+540c:/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.3992.0+10bf8:/usr/lib/x86_64-linux-
gnu/libgobject-2.0.so.0.3992.0+103b8:/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.3992.0+21d3d:/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.3992.0+28bf1
:/usr/lib/x86_64-linux-gnu/gtk-3.0/modules/libautopilot.so+d941:/usr/lib/x86_64-linux-gnu/libgio-2.0.so.0.3992.0+df486:/usr/lib/x86_64-linux-gnu/libgio-2.
0.so.0.3992.0+c7de1', '')])

Retracing SAS: /usr/lib/ubiquity/bin/ubiquity:11:x86_64:/usr/lib/x86_64-linux-gnu/gtk-3.0/modules/libautopilot.so+9808:/usr/lib/x86_64-linux-gnu/libxpaths
elect.so.1.4+166ba:/usr/lib/x86_64-linux-gnu/libxpathselect.so.1.4+1299f:/usr/lib/x86_64-linux-gnu/gtk-3.0/modules/libautopilot.so+ba85:/usr/lib/x86_64-li
nux-gnu/gtk-3.0/modules/libautopilot.so+c1fd:/usr/lib/x86_64-linux-gnu/gtk-3.0/modules/libautopilot.so+c41b:/usr/lib/x86_64-linux-gnu/libffi.so.6.0.1+5adc
:/usr/lib/x86_64-linux-gnu/libffi.so.6.0.1+540c:/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.3992.0+10bf8:/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.3
992.0+103b8:/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.3992.0+21d3d:/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.3992.0+28bf1:/usr/lib/x86_64-linux-gn
u/gtk-3.0/modules/libautopilot.so+d941:/usr/lib/x86_64-linux-gnu/libgio-2.0.so.0.3992.0+df486:/usr/lib/x86_64-linux-gnu/libgio-2.0.so.0.3992.0+c7de1

416. By Brian Murray

tools/find_stacktrace.py: remove redundant signature printing

Revision history for this message
Brian Murray (brian-murray) wrote :

And now its finished.

 $ PYTHONPATH=$PYTHONPATH:~/source-trees/daisy/daisy/:~/source-trees/errors/errors/ ./find_stacktrace.py 5fe06f9e-b053-11e3-8067-fa163e707a72
SAS: /usr/lib/ubiquity/bin/ubiquity:11:x86_64:/usr/lib/x86_64-linux-gnu/gtk-3.0/modules/libautopilot.so+9808:/usr/lib/x86_64-linux-gnu/libxpathselect.so.1.4+166ba:/usr/lib/x86_64-linux-gnu/libxpathselect.so.1.4+1299f:/usr/lib/x86_64-linux-gnu/gtk-3.0/modules/libautopilot.so+ba85:/usr/lib/x86_64-linux-gnu/gtk-3.0/modules/libautopilot.so+c1fd:/usr/lib/x86_64-linux-gnu/gtk-3.0/modules/libautopilot.so+c41b:/usr/lib/x86_64-linux-gnu/libffi.so.6.0.1+5adc:/usr/lib/x86_64-linux-gnu/libffi.so.6.0.1+540c:/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.3992.0+10bf8:/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.3992.0+103b8:/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.3992.0+21d3d:/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.3992.0+28bf1:/usr/lib/x86_64-linux-gnu/gtk-3.0/modules/libautopilot.so+d941:/usr/lib/x86_64-linux-gnu/libgio-2.0.so.0.3992.0+df486:/usr/lib/x86_64-linux-gnu/libgio-2.0.so.0.3992.0+c7de1
Found crash signature for SAS: /usr/lib/ubiquity/bin/ubiquity:11:GtkNode::MatchStringProperty:xpathselect::XPathQueryPart::Matches:SearchTreeForNode:xpathselect::SelectNodes:GetNodesThatMatchQuery
https://errors.ubuntu.com/bucket/?id=/usr/lib/ubiquity/bin/ubiquity:11:GtkNode::MatchStringProperty:xpathselect::XPathQueryPart::Matches:SearchTreeForNode:xpathselect::SelectNodes:GetNodesThatMatchQuery

Revision history for this message
Evan (ev) wrote :

Thanks for resolving this. Not sure where I was going with that initial implementation :)

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches

to all changes: