This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/40163] New: null pointer in remove_unreachable_regions
- From: "dcb314 at hotmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 May 2009 15:36:13 -0000
- Subject: [Bug c++/40163] New: null pointer in remove_unreachable_regions
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
I just tried to compile the Suse Linux package blocxx-2.1.0.342-124.2
with the GNU g++ version 4.5 snapshot 20090514.
The compiler said
LogAppender.cpp: In constructor 'blocxx6::LogAppender::LogAppender(const
blocxx6::StringArray&, const blocxx6::StringArray&, const blocxx6::String&)':
LogAppender.cpp:401: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
Preprocessed source code attached. Flags -fPIC -O2 required.
Here is some valgrind output
==18958== Invalid read of size 8
==18958== at 0x6EEB91: remove_unreachable_regions (bitmap.h:225)
==18958== by 0x8FCA9C: cleanup_eh (tree-eh.c:2764)
==18958== by 0x820CD0: execute_one_pass (passes.c:1283)
==18958== by 0x820F34: execute_pass_list (passes.c:1332)
==18958== by 0x914DFB: tree_rest_of_compilation (tree-optimize.c:394)
==18958== by 0xA77400: cgraph_expand_function (cgraphunit.c:1095)
==18958== by 0xA79154: cgraph_optimize (cgraphunit.c:1154)
==18958== by 0x52E1DC: cp_write_global_declarations (decl2.c:3635)
==18958== by 0x8C6543: toplev_main (toplev.c:1044)
==18958== by 0x54D7585: (below main) (in /lib64/libc-2.9.so)
==18958== Address 0x0 is not stack'd, malloc'd or (recently) free'd
--
Summary: null pointer in remove_unreachable_regions
Product: gcc
Version: 4.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dcb314 at hotmail dot com
GCC host triplet: x86_64-suse-linux
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40163