From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32460 invoked by alias); 15 Feb 2005 21:46:33 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 32380 invoked by uid 48); 15 Feb 2005 21:46:27 -0000 Date: Wed, 16 Feb 2005 03:37:00 -0000 Message-ID: <20050215214627.32379.qmail@sourceware.org> From: "lothar at xcerla dot com" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20050215214329.19985.lothar@xcerla.com> References: <20050215214329.19985.lothar@xcerla.com> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug middle-end/19985] executables created with -fprofile-arcs -ftest-coverage segfault in gcov_exit () X-Bugzilla-Reason: CC X-SW-Source: 2005-02/txt/msg01667.txt.bz2 List-Id: ------- Additional Comments From lothar at xcerla dot com 2005-02-15 21:46 ------- Created an attachment (id=8201) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8201&action=view) test case to reproduce the segfault This is a project of a small test case that reproduces the segmentation fault. It's build tool is SCons. If you don not want to use SCons, here's the command line(s) executed: /opt2/GNU/bin/g++-3.4.1 -O0 -g -D_REENTRANT -W -Wall -Wpointer-arith -Wno-uninitialized -Woverloaded-virtual -Wcast-align -Wwrite-strings -Wcomments -march=pentiumpro -DCOVERAGE -fprofile-arcs -ftest-coverage -Isrc -c -o src/prog/.build/posix/coverage/main.o src/prog/main.cpp /opt2/GNU/bin/g++-3.4.1 -g -Wl,-E -o bin/posix/coverage/prog src/prog/.build/posix/coverage/main.o -Llib/posix/coverage -lstdc++ -lpthread -lrt -ldl -lgcov /opt2/GNU/bin/g++-3.4.1 -O0 -g -D_REENTRANT -W -Wall -Wpointer-arith -Wno-uninitialized -Woverloaded-virtual -Wcast-align -Wwrite-strings -Wcomments -march=pentiumpro -DCOVERAGE -fprofile-arcs -ftest-coverage -fPIC -Isrc -c -o src/calc/.build/posix/coverage/calc.os src/calc/calc.cpp /opt2/GNU/bin/g++-3.4.1 -g -Wl,-E -Wl,-soname=libcalc.so.1.0 -shared -o lib/posix/coverage/libcalc.so src/calc/.build/posix/coverage/calc.os -Llib/posix/coverage -lstdc++ -lpthread -lrt -ldl -lgcov -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19985