From: H.J. Lu (hlu@luke.eecs.wsu.edu)
Date: 01/05/93


From: hlu@luke.eecs.wsu.edu (H.J. Lu)
Subject: Re: [BUG?] Why does gdb affect the behaviour of many errors?
Date: 5 Jan 1993 08:36:46 GMT

In article <1993Jan5.051110.6558@monu6.cc.monash.edu.au> ashtray@yoyo.cc.monash.edu.au (John Newnham) writes:
>Subject says it all. I noticed that Rick, among others, seems to accept
>this with equanimity. But surely an error should (generally, races excluded)
>occur wether the process is running under a debugger or normally?
>One example I had recently was that mail was writing to string constants
>(tsk, tsk), and therefore seg-faulting. But I could not replicate the error
>with gdb, so I was left with inspecting the code and guessing (or reading the
>manual and realising that -Wall does not imply -Wwrite-strings. *sigh).
>
>Comments? Is this behaviour of gdb linux-specific, or should I be posting in
>a different GNUsgroup?
>
>ashtray@yoyo.cc.monash.edu.au

If you got the answer, please let me know. I had an X11 program of
several thousand lines in C++, which was running fine on decstation.
But on AT&T UNIX SVR3.2.2/386, it core-dumped. If I compiled it
with -g, it ran ok. It drove me crazy.

H.J.

H.J.
p