← Back to team overview

kicad-developers team mailing list archive

Re: [PATCH] Print stacktrace when SIGSEGV or SIGABRT appears

 

Thomas,

I looked at your branch and it look like you haven't made your debug
report code a build option yet.  This will definitely have to be done in
order to merger this because we cannot guarantee full core dump reports
so packagers will have to be able to build without the reporting in some
cases.  I know it's less than ideal but unless you can ensure that a
full crash dump can be included as part of the report, I see what other
choice there is.

Cheers,

Wayne

On 9/22/2018 5:02 AM, Thomas Pointhuber wrote:
> Hi,
> 
> I fixed the mysn bug on my branch:
> * https://github.com/pointhi/kicad-source-mirror/tree/crash_report
> 
> Allowing people to enable/disable this feature sounds like a good idea.
> 
> I tried gcore on linux to create coredumps of an running process, but
> because it needs root privileges it cannot simply be integrated into the
> reporter (it would be possible with PolKit I think).
> 
> There also exists https://code.google.com/archive/p/google-coredumper
> but it seems to be broken on newer linux systems (according to
> stackoverflow)
> 
> Regards, Thomas
> 
> Am 22.09.18 um 04:05 schrieb Seth Hillbrand:
>> Hi Simon-
>>
>> Am Fr., 21. Sep. 2018 um 18:24 Uhr schrieb Simon Richter
>> <Simon.Richter@xxxxxxxxxx <mailto:Simon.Richter@xxxxxxxxxx>>:
>>
>>     Hi,
>>
>>     On 22.09.2018 02:12, Seth Hillbrand wrote:
>>
>>     >>    It will need a way to turn it off.
>>
>>     > Say a command-line switch? e.g --disable-crashreporter
>>
>>     The distro maintainers probably need a compile time option for apport,
>>     I'd prefer that as well because I don't have to remember it when
>>     starting.
>>
>>
>> OK, how about a CMAKE flag KICAD_CRASHREPORTER_DEFAULT=OFF/ON?  Then we
>> have two command line flags
>> --enable-crashreporter/--disable-crashreporter to override the default.
>>
>> Thoughts?
>>
>> -S
>>
>> _______________________________________________
>> Mailing list: https://launchpad.net/~kicad-developers
>> Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~kicad-developers
>> More help   : https://help.launchpad.net/ListHelp
>>
> 
> 
> _______________________________________________
> Mailing list: https://launchpad.net/~kicad-developers
> Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp
> 


Follow ups

References