Article View: gnu.gcc.help
Article #52214Re: Code compiled with gcc dumps core
From: Tod McQuillin
Date: Tue, 19 Jan 1993 20:16
Date: Tue, 19 Jan 1993 20:16
14 lines
1220 bytes
1220 bytes
jshen@bnr.ca (James Shen) writes: > I used gcc 2.3.2 to compile rcs5.6 on HP9000/720. When I run ci > I got a core dump. dbx showed that ci dumped core at _doprnt. > > I had the similar problem on Sparc for some other programs. > > Any idea why? How to fix? I had a similar problem and tracked it to a progam using sprintf to write into a previously allocated string literal. Try using gcc -fwritable-strings and see if the problem goes away.
Technical Details
Message-ID:
<AfL66Su00WB_1PqEAO@andrew.cmu.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!cis.ohio-state.edu!news.sei.cmu.edu!bb3.andrew.cmu.edu!crabapple.srv.cs.cmu.edu!andrew.cmu.edu!tm8t+References:
<1993Jan18.154340.9825@bcars6a8.bnr.ca>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,1165c87cd0d7ae7d X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1993-01-19 18:13:35 PST Organization: Sponsored account, Chemical Engineering, Carnegie Mellon, Pittsburgh, PA Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!cis.ohio-state.edu!news.sei.cmu.edu!bb3.andrew.cmu.edu!crabapple.srv.cs.cmu.edu!andrew.cmu.edu!tm8t+ Newsgroups: gnu.gcc.help Message-ID: <AfL66Su00WB_1PqEAO@andrew.cmu.edu> Date: Tue, 19 Jan 1993 15:16:30 -0500 From: Tod McQuillin <tm8t+@andrew.cmu.edu> Subject: Re: Code compiled with gcc dumps core In-Reply-To: <1993Jan18.154340.9825@bcars6a8.bnr.ca> References: <1993Jan18.154340.9825@bcars6a8.bnr.ca> Lines: 14