install
Stefan Meixner (none)
stefan@emskopp.a.shuttle.de
Wed Apr 22 07:16:00 GMT 1998
Hi Martin,
out of curiosity I tried your testcase with
Reading specs from /usr/lib/gcc-lib/i486-pc-linux-gnulibc1/egcs-2.91.22/specs
gcc version egcs-2.91.22 980404 (gcc2 ss-980401 experimental)
Reading specs from /usr/lib/gcc-lib/i486-pc-linux-gnulibc1/egcs-2.91.08/specs
gcc version egcs-2.91.08 980214 (gcc-2.8.0 release)
because I usually do not use exception handling.
>
> Could you report this as a bug to egcs-bugs? Please include all the
> relevant information, such as what system you use and what compiler,
> and what your testcase is. I tried compiling
>
> #include <new>
> #include <iostream.h>
>
> main()
> try{
> char *s = new char[1<<28];
> }catch(std::bad_alloc)
> {
> cerr<<"Caught oom"<<endl;
> }
>
> with egcs-2.91.16 (which is a development snapshot) on Linux, and
> I get the message 'Caught oom'.
>
> Regards,
> Martin
>
But I get the following incorrect result:
ôVirtual memory exceeded in `new'ô
System is:
KERNEL:
Linux 2.1.97 i486 unknown
AS:
GNU assembler 2.9
LD:
GNU ld version 2.9 (with BFD 2.9.0.3)
LIBC:
/lib/libc.so.4 -> libc.so.4.7.5*
/lib/libc.so.5 -> libc.so.5.4.44*
LDD:
ldd: version 1.9.6
LIBG++:
/usr/lib/libg++.so.2.8 -> libg++.so.2.8.1*
Stefan
More information about the Gcc
mailing list