Segfault in OstcFirmwareCheck::checkLatest

Dirk Hohndel dirk at hohndel.org
Thu Jan 9 08:42:16 PST 2020



> On Jan 8, 2020, at 6:13 PM, Gaetan Bisson <bisson at archlinux.org> wrote:
> 
> [2020-01-08 15:55:34 -1000] Gaetan Bisson:
>> I just rebuilt subsurface from current git master and am getting a
>> segfault when downloading dives from my OSTC3. The problem appears to be
>> in OstcFirmwareCheck::checkLatest. I'm attaching the full backtrace of
>> the crash. I'll investigate more later unless someone beats me to it.
> 
> So the problem seems to be that I've got an OSTC3 yet the following
> assertion holds:
> 
> 	strcmp(data->product, "OSTC 4") == 0)
> 
> Since apparently it's libdivecomputer that populates the device_data
> struct, I'd like to report this to them but I don't see any recent
> change that might have broken this, and this issue certainly did not
> exist in mid-december. I'll dig more but for now I'm a bit confused.
> 

So in commit c36513a9f3e77 we changed how we recognize and try to identify 
OSTC dive computers via BLE (as that is not always reliably possible), but that
shouldn't have the result that you describe above.

Typically Anton is a great resource for all things OSTC and especially the parts
of our code that configure the OSTC. Maybe he has any ideas?

/D
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20200109/fdbcbd06/attachment.html>


More information about the subsurface mailing list