Breakpad

Here's the place for discussion related to coding in FreeCAD, C++ or Python. Design, interfaces and structures.
User avatar
saso
Posts: 624
Joined: Fri May 16, 2014 1:14 pm
Contact:

Breakpad

Postby saso » Sun Mar 19, 2017 2:56 pm

How does everyone feel about setting up https://chromium.googlesource.com/breakpad/breakpad/ or something similar?

Here is a bit of info how LibreOffice is using it https://people.gnome.org/~michael/blog/ ... d-5-3.html

Would it work for us (can we do it)? Would it be useful (will it catch our crashes)? Maybe after 0.17 release... ?
User avatar
yorik
Site Admin
Posts: 8647
Joined: Tue Feb 17, 2009 9:16 pm
Location: São Paulo, Brazil
Contact:

Re: Breakpad

Postby yorik » Sun Mar 19, 2017 4:53 pm

Wouldn't we just receive hundreds of unsolvable crash reports? I always wonder, these apps that offer to send a crash report, what do they do with that? Without a bit of "personal" info from the user (what he was doing, etc), and SPECIALLY a bit of follow-up AFTER the bug has been reported, there is usually only a very small percentage of bugs that can be solved that way.

In any case, that would probably means a good work increase on our side only to triage and analyze the reports...

But well, if it works for libreoffice people, maybe I'm wrong...
lambda
Posts: 4
Joined: Sat Feb 25, 2017 3:10 pm

Re: Breakpad

Postby lambda » Sun Mar 19, 2017 5:11 pm

I don't know how the libreoffice people are using it, but I guess if the crash reports include the exact git commit and you get enough reports, you could actually point to bad commits by mere statistics without any human attention at all. Of course FreeCAD has much less users then libreoffice and probably would receive much less crash reports.

Actually a lot of hints could be found by statistical analysis of stack traces, but I guess this is not an easy project. However if somebody knows a CS student looking for a thesis topic, this might be a nice one.
ian.rees
Posts: 577
Joined: Sun Jun 15, 2014 3:28 am
Contact:

Re: Breakpad

Postby ian.rees » Wed Mar 29, 2017 8:29 am

I like the idea, mostly. It seems like, generally speaking, FreeCAD is at a stage where there's a relatively big to-do list versus the developer*hours available. So, I mainly see crash reporting as a tool that could be good for catching new crashes early - like the one mentioned in the LibreOffice writeup - as opposed to another pile of to-do items.

It could also be interesting to be able to correlate results from something like this, with crashes reported in the tracker. That way, we could get the context that Yorik talked about, plus some idea as to how common the bug is in the field.

That said, I think Yorik's concern about it being another developer time suck is completely valid (and, "hundreds" might be a bit optimistic! ;) ). I think it would be good if we used it like we use the Coverity reports, but maybe not so good if it resulted in increased forum noise for example. -Ian-
User avatar
Kunda1
Posts: 659
Joined: Thu Jan 05, 2017 9:03 pm

Re: Breakpad

Postby Kunda1 » Wed Mar 29, 2017 12:20 pm

FYI, issue #2731 Add exception stacktrace upload function exists in the tracker. @saso feel free to notate it.
User avatar
saso
Posts: 624
Joined: Fri May 16, 2014 1:14 pm
Contact:

Re: Breakpad

Postby saso » Wed Mar 29, 2017 1:48 pm

Here is a quick overview of the system https://chromium.googlesource.com/break ... reakpad.md

And some more info on different parts of it and clients integrations https://chromium.googlesource.com/break ... ster/docs/