[PATCH] Check if trip is NULL before calling DIVE_TRIP

Dirk Hohndel dirk at hohndel.org
Wed Sep 19 10:53:46 PDT 2012


Dirk Hohndel <dirk at hohndel.org> writes:

> "Lubomir I. Ivanov" <neolit123 at gmail.com> writes:
>
>> From: "Lubomir I. Ivanov" <neolit123 at gmail.com>
>>
>> Other places have this check, but for this particular one a crash
>> can be reproduced:
>>
>> ./subsurface ./dives/*
>> log -> autogroup
>> log -> autogroup
>>
>> Against d14932058f191de2a


Oh, and this does NOT crash for me. Tried multiple times. Started with
autogroup on and off in preferences.

Do you have additional files in dives/* besides test0-24.xml?

What's the preference setting for you? Autogroup on?
Can you run this under gdb and tell me which dive it is trying to put in
the divelist when this happens?

Thanks

/D


More information about the subsurface mailing list