home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!ogicse!news.u.washington.edu!serval!luke.eecs.wsu.edu!hlu
- From: hlu@luke.eecs.wsu.edu (H.J. Lu)
- Newsgroups: comp.os.linux
- Subject: Re: [BUG?] Why does gdb affect the behaviour of many errors?
- Message-ID: <1993Jan5.083646.16917@serval.net.wsu.edu>
- Date: 5 Jan 93 08:36:46 GMT
- Article-I.D.: serval.1993Jan5.083646.16917
- References: <1993Jan4.103822.13815@klaava.Helsinki.FI> <1993Jan4.202558.16223@unislc.uucp> <JRS.93Jan4201620@lepton.world.std.com> <1993Jan5.051110.6558@monu6.cc.monash.edu.au>
- Sender: news@serval.net.wsu.edu (USENET News System)
- Distribution: world
- Organization: Washington State University!
- Lines: 23
-
- 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
-