toString() on struct template

Thomas Kuehne thomas-dloop at kuehne.cn
Fri Mar 2 04:30:07 PST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Henning Hasemann schrieb am 2007-03-02:

[snip]

> But the return statement crashes like this:
>
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread -1209821504 (LWP 3999)]
> 0xb7ea69cc in memcpy () from /lib/tls/i686/cmov/libc.so.6
> (gdb) bt
> #0  0xb7ea69cc in memcpy () from /lib/tls/i686/cmov/libc.so.6
> #1  0x0805627b in _d_arraycatnT ()
> #2  0x0805e521 in _D7indiana8vector2d15__T8Vector2dTiZ8Vector2d12my_to_stringMFZAa (this=0xbf81110c) at vector2d.d:94
> #3  0xbf81110c in ?? ()
> #4  0xbf811128 in ?? ()
> #5  0x0804ac9b in _Dmain () at test.d:45
> Previous frame inner to this frame (corrupt stack?)

Please use the following command to get the corret stack trace:

objcopy -R .debug_frame original-binary fixed-binary

http://d.puremagic.com/issues/show_bug.cgi?id=136#c6

Thomas



-----BEGIN PGP SIGNATURE-----

iD8DBQFF6CU8LK5blCcjpWoRAiHuAJ4hHUSfBWyJ9zWTOWnrG6ItqJsRjgCfS+Op
9nYgVZYmDiWK9FfZUopV4HA=
=kbea
-----END PGP SIGNATURE-----



More information about the Digitalmars-d mailing list