Article View: gnu.gcc.help
Article #46653Apparent problem with "new"
From: David Lubinsky
Date: Tue, 01 Nov 1994 12:47
Date: Tue, 01 Nov 1994 12:47
32 lines
1912 bytes
1912 bytes
Hi all,
I am running GCC version 2.4 on a Sparc 2000. I have trouble with
using "new". The following is a back-trace from gdb after the program
crashed in a a call to new. I modified the program so that instead of
new I used a fixed size array and it worked fine. Using ps I
established that the total program size was not very big, about 600K,
so I don't think the problem is dues to running out of memory.
Program received signal 11, Segmentation fault
0xdf7696ac in errno ()
(gdb) bt
#0 0xdf7696ac in errno ()
#1 0xdf769640 in errno ()
#2 0xdf769ed4 in errno ()
#3 0xdf7690c0 in errno ()
#4 0xdf768fbc in errno ()
#5 0x4a2f8 in __builtin_new (sz=3232)
#6 0x26a00 in num_split_corr (x=0xad7d8, y=0xb0768, n=506)
at runninglad.cc:214
#7 0x1cc90 in do_step (dat=@0xdffffa68, root=@0xdffffa30) at regress.cc:77
#8 0x1d714 in main (argc=3, argv=0xdffffae4) at regress.cc:179
Thanks for any help.
David
|>-------------------------David Lubinsky----------------------------<|
Dept. of Computer Science http://www.cs.wits.ac.za/~david
University of The Witwatersrand david@cs.wits.ac.za
Private Bag 3, Phone: 27 11 716-3459
Wits 2050, South Africa FAX: 27 11 339-7965
Technical Details
Message-ID:
<395dd3$g6a@caesar.wits.ac.za>Path:
arc1-ca.pugleaf.net!nntp.gmd.de!xlink.net!sol.ctr.columbia.edu!howland.reston.ans.net!quagga.ru.ac.za!caesar.wits.ac.za!concave!davidShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,f2aa37c0c43c1390,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1994-11-01 02:48:56 PST Path: arc1-ca.pugleaf.net!nntp.gmd.de!xlink.net!sol.ctr.columbia.edu!howland.reston.ans.net!quagga.ru.ac.za!caesar.wits.ac.za!concave!david From: david@concave.cs.wits.ac.za (David Lubinsky) Newsgroups: gnu.gcc.help Subject: Apparent problem with "new" Date: 1 Nov 1994 12:47:31 GMT Organization: University of the Witwatersrand Lines: 32 Message-ID: <395dd3$g6a@caesar.wits.ac.za> NNTP-Posting-Host: concave.cs.wits.ac.za X-Newsreader: TIN [version 1.2 PL2]