c++/8070: Gcc [ throw generate core dump ( TRU64 5.1 ) ]
eric.thomas@bull.net
eric.thomas@bull.net
Fri Sep 27 07:34:00 GMT 2002
>Number: 8070
>Category: c++
>Synopsis: Gcc [ throw generate core dump ( TRU64 5.1 ) ]
>Confidential: no
>Severity: critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Sep 27 07:26:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: eric.thomas@bull.net
>Release: gcc 2.9-gnupro-99r1
>Organization:
>Environment:
Alpha DEC machine
TRU64 5.1
>Description:
throw generate a core dump.
Our code run uccefully under a Sun machine.
We use gcc on SUN with the same build options.
>How-To-Repeat:
On Dec machine:
Build the sample code and run it.
// #include <stdio.h>
class toto
{
public:
void printout(char * s );
};
void toto::printout( char * s )
{
// printf("Hello from printout\n");
throw "throw from printout";
}
int main()
{
char *buf;
toto t;
try
{
buf = new char[512];
// throw ("Memory allocation failure!");
t.printout("Hello");
}
catch( char * str )
{
// printf("Exception raised: %s\n",str );
}
// ...
return 0;
}
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the Gcc-bugs
mailing list