This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug testsuite/49979] New: FAIL: gcc.dg/20030711-1.c execution test
- From: "danglin at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 4 Aug 2011 17:00:29 +0000
- Subject: [Bug testsuite/49979] New: FAIL: gcc.dg/20030711-1.c execution test
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49979
Summary: FAIL: gcc.dg/20030711-1.c execution test
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: testsuite
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: danglin@gcc.gnu.org
Host: hppa*-*-*
Target: hppa*-*-*
Build: hppa*-*-*
The PA backend does not have cmpstrnsi, so __builtin_strncmp is not expanded.
As a result, the strncmp library call is used in function test.
Because the compare operation extends beyond the mmap'd region after unmapping,
it may cause a segv. It is not clear at this time why the segv isn't
consistent. I have never seen it with HP-UX 11.11 or Linux.
First seen on HP-UX 11.00:
-bash-3.2$ ./xgcc -B./ -v
Reading specs from ./specs
COLLECT_GCC=./xgcc
COLLECT_LTO_WRAPPER=./lto-wrapper
Target: hppa64-hp-hpux11.00
Configured with: ../gcc/configure --with-gnu-as --with-as=/opt/gnu64/bin/as
--with-ld=/usr/ccs/bin/ld --enable-shared --with-local-prefix=/opt/gnu64
--prefix=/opt/gnu64/gcc/gcc-4.7 --build=hppa64-hp-hpux11.00 --disable-nls
--disable-build-poststage1-with-cxx --with-gmp=/opt/gnu64/gcc/gmp
--enable-languages=c,c++,fortran,objc,obj-c++
Thread model: posix
gcc version 4.7.0 20110731 (experimental) [trunk revision 176976] (GCC)