From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marc Lehmann To: egcs@cygnus.com Subject: Re: tmpnam() core dumping Date: Fri, 12 Dec 1997 14:32:00 -0000 Message-id: <19971212180102.21700@cerebro.laendle> References: <01BD06D5.E1EF50C0@bill.icdata.com> X-SW-Source: 1997-12/msg00768.html 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 | |