Summary: | Enabling boost::stacktrace corrupts srd session ID | ||
---|---|---|---|
Product: | PulseView | Reporter: | Soeren Apel <soeren> |
Component: | Other | Assignee: | Nobody <nobody> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | uwe, wsa |
Priority: | Normal | ||
Version: | unreleased development snapshot | ||
Target Milestone: | --- | ||
Hardware: | All | ||
OS: | All | ||
Bug Depends on: | |||
Bug Blocks: | 1209 | ||
Attachments: | Patch to enable stacktrace completely |
Description
Soeren Apel
2018-04-05 22:29:05 CEST
Can't reproduce with today's build (1db57c03). I loaded the SR-file 'st_m24c02_powerup_and_reset.sr' from the dumps-repo and attached the I2C decoder to it, then closed PulseView -> no crash. Stacktraces are enabled ('Stack trace file is "/tmp/pv_stacktrace.dmp"'). Anything else I could try? Thanks for revisiting this bug but I don't think boost::stacktrace is enabled in any of the public builds at the moment because boost::stacktrace can't resolve the symbol names, which needs solving before we can roll out this feature. It's enabled by cmake -DENABLE_STACKTRACE. Created attachment 622 [details]
Patch to enable stacktrace completely
I enabled stacktrace with the attached patch (which is under discussion on the mailing list), but I still can't reproduce the above error. I took a larger file from the dumps repo and closed pv when the decoder was still decoding, but all went fine for me.
Merged in b409dfdc01ed36b54f5b8a70b3738146a26bf37e, thanks! I can confirm that it builds fine with cmake 3.16.3 and Boost 1.71 on Debian (which does ship a libbacktrace). No segfaults or corrupted session IDs in a few quick tests for me, either. |