<p>Am 13.05.2014 21:56 schrieb "Johann Glaser" <<a href="mailto:Johann.Glaser@gmx.at">Johann.Glaser@gmx.at</a>>:</p>
<p>> > As this is true for FreePascal code (I guess), this doesn't necessarily<br>
> > hold for external libraries as the TCL library mentioned above.<br>
><br>
> News on that front: Today I investigated a duplicate key exception in<br>
> FGL.TFPSMaps.Add(AKey: Pointer): Integer. In the current Debian package<br>
> fp-units-rtl-2.6.4 2.6.4+dfsg-2 this seems to be compiled with looots of<br>
> optimization and without stack frame:<br>
><br>
> 0000000000001918 <FGL_TFPSMAP_$__ADD$POINTER$$LONGINT>:<br>
> 1918: 48 81 ec 18 01 00 00 sub $0x118,%rsp<br>
> 191f: 48 89 9c 24 08 01 00 mov %rbx,0x108(%rsp)<br>
> 1926: 00<br>
> 1927: 4c 89 a4 24 10 01 00 mov %r12,0x110(%rsp)<br>
> 192e: 00<br>
> 192f: 48 89 fb mov %rdi,%rbx<br>
> 1932: 49 89 f4 mov %rsi,%r12<br>
><br>
> Even GDB couldn't trace back the stack there. :-O</p>
<p>Code in release packages is normally compiled using -O2, which can result in hard to follow backtraces.</p>
<p>Regards,<br>
Sven</p>