[Kstars-devel] Heisenbug leading to crash at Legend::setAlpha()

Akarsh Simha akarshsimha at gmail.com
Mon May 13 00:40:22 UTC 2013


> `this' pointer in ImageExporter looks suspicious. 0x222220 is strangely
> regular and very far off another pointer which appears in stack trace
> 0xc7f5640. Probably it was overwritten at some point.

Hi Aleksey,

Thanks, you were indeed right! The ImageExporter class was never
instantiated, because of an uninitialized pointer, so the 0x222220 was
a junk value that was stored in the uninitialized pointer.

Initializing the pointer seems to have fixed the crash. Also, control
enters the constructor of ImageExporter, which I noticed was not
happening before the fix.

Regards
Akarsh


More information about the Kstars-devel mailing list