c++/3533: g++ seg faults on IRIX at enum in member function
johnv@adacel.com.au
johnv@adacel.com.au
Mon Jul 2 17:26:00 GMT 2001
>Number: 3533
>Category: c++
>Synopsis: g++ seg faults on IRIX at enum in member function
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Jul 02 17:26:02 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: johnv@adacel.com.au
>Release: gcc version 3.0; Thread model: single
>Organization:
>Environment:
mips-sgi-irix6.5
% hinv
4 250 MHZ IP27 Processors
CPU: MIPS R10000 Processor Chip Revision: 3.4
FPU: MIPS R10010 Floating Point Chip Revision: 3.4
Main memory size: 1024 Mbytes
Instruction cache size: 32 Kbytes
Data cache size: 32 Kbytes
>Description:
Building OpenOffice using gcc 3.0 results in a core dump on line 1432, which is an enum dangling within a member function.
I tried to build the .ii.gz files as instructed, however the resulting file was shortened way before the problem.
So I have attached the file in question ... which could otherwise be found at:
http://www.openoffice.org/source/browse/util/tools/source/fsys/urlobj.cxx?rev=1.15&content-type=text/x-cvsweb-markup
Workaround: move enum to top of member function
This is the OpenOffice bug involved:
http://www.openoffice.org/issues/show_bug.cgi?id=1156
And here is the patch I applied to the file I have attached.
http://www.openoffice.org/issues/showattachment.cgi?attach_id=332
>How-To-Repeat:
g++ -v -save-temps -c -I. -I. -I../inc -I../../inc -I../../unx/inc -I../../unxirxm3.pro/inc -I. -I/projects/sise/openoffice/devel/workpits/OO632B_GNUD/workarea/solver/632/unxirxm3.pro/inc -I/projects/sise/openoffice/devel/workpits/OO632B_GNUD/workarea/solver/632/unxirxm3.pro/inc/external -I/projects/sise/openoffice/devel/workpits/OO632B_GNUD/workarea/solenv/unxirxm3/inc -I/projects/sise/openoffice/devel/workpits/OO632B_GNUD/workarea/solenv/inc -I/projects/sise/openoffice/devel/workpits/OO632B_GNUD/workarea/res -I/usr/include/CC/stlport -I/projects/sise/openoffice/devel/workpits/OO632B_GNUD/workarea/solenv/inc/Xp31 -I/projects/sise/openoffice/devel/workpits/java_1.2.2/usr/java//include -I/projects/sise/openoffice/devel/workpits/java_1.2.2/usr/java//include/irix -I/projects/sise/openoffice/devel/workpits/java_1.2.2/usr/java//include/native_threads/include -I. -I../../res -I. -g -O -fno-for-scope -fpermissive -fguiding-decls -DIRIX -DUNX -DVCL -DGCC -DC295 -DMIPS -DUSE_PSPRINT -DTF_UCB -DENABLEUNICODE -DTF_FILTER -DCVER=C295 -D_USE_NAMESPACE -D__GNU_STL__=3 -DVCL -D_STD_NO_NAMESPACE -D_VOS_NO_NAMESPACE -D_UNO_NO_NAMESPACE -D__DMAKE -DUNIX -DSUPD=632 -DBUILD=6483 -DSOLAR_PLUGIN -DVCL -DSO3 -DDEBUG -D_DEBUG -DPRODUCT -DNDEBUG -DPRODUCT_FULL -DEXCEPTIONS_OFF -DGUI -DSRC632 -DTF_ONE51 -DMULTITHREAD -o ../../unxirxm3.pro/obj/urlobj.o /projects/sise/openoffice/devel/workpits/OO632B_GNUD/workarea/tools/source/fsys/urlobj.cxx
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the Gcc-bugs
mailing list