tmpnam() core dumping
Bill Ahlbrandt
bahlbr@icdata.com
Sat Dec 13 09:55:00 GMT 1997
Great! I get it now. Thanks for all of the input/help!
-----Original Message-----
From: Marc Lehmann [SMTP:pcg@goof.com]
Sent: Friday, December 12, 1997 11:01 AM
To: egcs@cygnus.com
Subject: Re: tmpnam() core dumping
On Fri, Dec 12, 1997 at 08:13:46AM -0600, Bill Ahlbrandt wrote:
> I am getting a core dump when I use the tmpnam() function.
RTM, you are calling
tmpnam("xxx"),
and tmpnam tries to overwrite the memory you gave to it (which
is a constant string which is in a readonly section), thus
you get a segmentation fault.
-----==- |
----==-- _ |
---==---(_)__ __ ____ __ Marc Lehmann +--
--==---/ / _ \/ // /\ \/ / pcg@goof.com |e|
-=====/_/_//_/\_,_/ /_/\_\ --+
The choice of a GNU generation |
|
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bin00000.bin
Type: application/vnd.ms-tnef
Size: 2273 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/19971213/18030eb2/attachment.tnef>
More information about the Gcc
mailing list