Mail Archives: djgpp/1999/09/27/09:39:35
On 27 Sep 99, at 10:07, Martin Stromberg wrote:
> The solution is to _use_ the value of i, otherwise it's optimised out
> of the loop.
>
> Martin Str|mberg (ams AT ludd DOT luth DOT se) wrote:
> : Hmm. It's strange, when I really want to make my program crash with
> : SIGSEGV it seems impossible to achive that.
>
When I checked modified version of dbgcom.c in begin of this Year I
used something like
#include <iostream>
char * Bad (void);
int main (void)
{
cout << strlen(Bad());
return 0;
}
char * Bad (void) { return (char *) 0x12345678U; }
(it was not so difficult)
Andris
- Raw text -