public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c/7733: Segmentation Fault with -ftest-coverage
@ 2003-05-16 18:36 Dara Hazeghi
  0 siblings, 0 replies; 6+ messages in thread
From: Dara Hazeghi @ 2003-05-16 18:36 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR c/7733; it has been noted by GNATS.

From: Dara Hazeghi <dhazeghi@yahoo.com>
To: Simon.Wallis@arm.com
Cc: gcc-gnats@gcc.gnu.org
Subject: Re: c/7733: Segmentation Fault with -ftest-coverage
Date: Fri, 16 May 2003 11:35:47 -0700 (PDT)

 --- Simon Wallis <simon.wallis@arm.com> wrote:
 > I've built my application with "-fprofile-arcs
 > -ftest-coverage -O1 -g"
 > using gcc 3.3 on solaris 2.8
 > 
 > The behaviour is exactly the same as gcc 3.2.3:
 > It builds OK, but on startup, reports
 >   Program received signal SIGILL, Illegal
 > instruction.
 >   0x00210ff0 in atexit@@SYSVABI_1.3 ()
 > 
 > I rebuilt with "-fprofile-arcs -O1 -g" and got the
 > same SIGILL crash.
 > 
 > I rebuilt with "-O1 -g" and the image ran fine.
 
 Darn. Could you send a testcase that exhibits this
 particular problem, so we can figure out whether this
 a SPARC bug, or a profiling bug? Thanks,
 
 Dara
 
 P.S. If it's possible for you to check that this
 occurs under linux/x86 on gcc 3.3 too, that'd be great.
 
 __________________________________
 Do you Yahoo!?
 The New Yahoo! Search - Faster. Easier. Bingo.
 http://search.yahoo.com


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: c/7733: Segmentation Fault with -ftest-coverage
@ 2003-05-13  9:36 Simon Wallis
  0 siblings, 0 replies; 6+ messages in thread
From: Simon Wallis @ 2003-05-13  9:36 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR c/7733; it has been noted by GNATS.

From: Simon Wallis <simon.wallis@arm.com>
To: dhazeghi@yahoo.com
Cc: gcc-gnats@gcc.gnu.org, swallis@arm.com, sdouglass@arm.com
Subject: Re: c/7733: Segmentation Fault with -ftest-coverage
Date: Tue, 13 May 2003 10:33:04 BST

 Hi Dara,
 
 I have tried compiling my application with "-fprofile-arcs
 -ftest-coverage -O1 -g" using gcc 3.2.3 on solaris 2.8.
 I no longer see the segfault during compilation.
 
 However, the resulting image always crashes very soon after start up,
 as follows:
   Program received signal SIGILL, Illegal instruction.
   0x0020592c in atexit@@SYSVABI_1.3 ()
 
 I have not investigated further.
 
 Simon.
 
 > Date: Fri, 9 May 2003 21:09:45 -0700
 > Subject: Re: c/7733: Segmentation Fault with -ftest-coverage
 > From: Dara Hazeghi <dhazeghi@yahoo.com>
 > To: gcc-gnats@gcc.gnu.org, swallis@arm.com, sdouglass@arm.com
 > 
 > http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit- 
 > trail&database=gcc&pr=7733
 > 
 > Hello,
 > 
 > using gcc 3.2.3, 3.3 branch or mainline (20030509), and compiling the  
 > testcase with -ftest-coverage, I do not get any ICE or segfault. Can  
 > the submitter confirm whether they are still encountering this bug with  
 > a current gcc version?
 > 
 > Dara
 
 -- 
 Simon Wallis
 Senior Software Engineer, Development Systems
 ARM Ltd
 110 Fulbourn Road
 Cambridge, CB1 9NJ
 United Kingdom
 Tel: +44 1223 400400,   Fax: +44 1223 400410
 Direct Dial: +44 1223 400429
 
 This e-mail message is intended for the addressee(s) only and may contain information that is the property of, and/or subject to a confidentiality agreement between the intended recipient(s), their organisation and/or the ARM Group of Companies. If you are not an intended recipient of this e-mail message, you should not read, copy, forward or otherwise distribute or further disclose the information in it; misuse of the contents of this e-mail message may violate various laws in your state, country or juris diction. If you have received this e-mail message in error, please contact the originator of this e-mail message via e-mail and delete all copies of this message from your computer or network, thank you.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: c/7733: Segmentation Fault with -ftest-coverage
@ 2003-05-10  7:46 giovannibajo
  0 siblings, 0 replies; 6+ messages in thread
From: giovannibajo @ 2003-05-10  7:46 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, nobody, sdouglass, swallis

Synopsis: Segmentation Fault with -ftest-coverage

State-Changed-From-To: analyzed->feedback
State-Changed-By: bajo
State-Changed-When: Sat May 10 07:46:52 2003
State-Changed-Why:
    See Dara's question.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7733


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: c/7733: Segmentation Fault with -ftest-coverage
@ 2003-05-10  4:16 Dara Hazeghi
  0 siblings, 0 replies; 6+ messages in thread
From: Dara Hazeghi @ 2003-05-10  4:16 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR c/7733; it has been noted by GNATS.

From: Dara Hazeghi <dhazeghi@yahoo.com>
To: gcc-gnats@gcc.gnu.org, swallis@arm.com, sdouglass@arm.com
Cc:  
Subject: Re: c/7733: Segmentation Fault with -ftest-coverage
Date: Fri, 9 May 2003 21:09:45 -0700

 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit- 
 trail&database=gcc&pr=7733
 
 Hello,
 
 using gcc 3.2.3, 3.3 branch or mainline (20030509), and compiling the  
 testcase with -ftest-coverage, I do not get any ICE or segfault. Can  
 the submitter confirm whether they are still encountering this bug with  
 a current gcc version?
 
 Dara
 


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: c/7733: Segmentation Fault with -ftest-coverage
@ 2002-08-27  9:26 nathan
  0 siblings, 0 replies; 6+ messages in thread
From: nathan @ 2002-08-27  9:26 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, nobody, sdouglass, swallis

Synopsis: Segmentation Fault with -ftest-coverage

State-Changed-From-To: open->analyzed
State-Changed-By: nathan
State-Changed-When: Tue Aug 27 07:38:38 2002
State-Changed-Why:
    confirmed. the preprocessed code seg faults an i86 compiler.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7733


^ permalink raw reply	[flat|nested] 6+ messages in thread

* c/7733: Segmentation Fault with -ftest-coverage
@ 2002-08-27  5:36 sdouglass
  0 siblings, 0 replies; 6+ messages in thread
From: sdouglass @ 2002-08-27  5:36 UTC (permalink / raw)
  To: gcc-gnats; +Cc: swallis


>Number:         7733
>Category:       c
>Synopsis:       Segmentation Fault with -ftest-coverage
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Aug 27 05:16:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     sdouglass@arm.com
>Release:        gcc 3.1
>Organization:
>Environment:
SunOS 5.6

../src-solaris_2_6-sparc/configure --prefix=/arm/sdt/tools/GNU/gcc/3_1 --exec-prefix=/arm/sdt/tools/GNU/gcc/3_1/solaris_2_6-sparc --program-suffix=-3_1 -v --with-dwarf2 --enable-version-specific-runtime-libs --with-gnu-as --with-as=/arm/sdt/tools/GNU/binutils/2_12/solaris_2_6-sparc/bin/as-2_12 --with-gnu-ld --with-ld=/arm/sdt/tools/GNU/binutils/2_12/solaris_2_6-sparc/bin/ld-2_12
>Description:
Compiling this with '-ftest-coverage -c' on SunOS/Solaris 5.6 causes:

longjmp.c:5: internal error: Segmentation Fault

#include <setjmp.h>

static jmp_buf buf;

void f(int i) { longjmp(buf, i); }
>How-To-Repeat:
gcc -ftest-coverage -c longjmp.c

Here's the .i file (after preprocessing):
# 1 "longjmp.c"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "longjmp.c"
# 1 "/usr/include/setjmp.h" 1 3 4
# 17 "/usr/include/setjmp.h" 3 4
#pragma ident "@(#)setjmp.h	1.26	96/12/18 SMI" 

# 1 "/usr/include/sys/feature_tests.h" 1 3 4
# 11 "/usr/include/sys/feature_tests.h" 3 4
#pragma ident "@(#)feature_tests.h	1.13	97/06/26 SMI"
# 20 "/usr/include/setjmp.h" 2 3 4
# 53 "/usr/include/setjmp.h" 3 4
typedef int jmp_buf[12];





extern int setjmp(jmp_buf);
#pragma unknown_control_flow(setjmp)
extern int _setjmp(jmp_buf);
#pragma unknown_control_flow(_setjmp)
extern void longjmp(jmp_buf, int);
extern void _longjmp(jmp_buf, int);





typedef int sigjmp_buf[19];

extern int sigsetjmp(sigjmp_buf, int);
#pragma unknown_control_flow(sigsetjmp)
extern void siglongjmp(sigjmp_buf, int);
# 2 "longjmp.c" 2

static jmp_buf buf;

void f(int i) { longjmp(buf, i); }
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2003-05-16 18:36 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-16 18:36 c/7733: Segmentation Fault with -ftest-coverage Dara Hazeghi
  -- strict thread matches above, loose matches on Subject: below --
2003-05-13  9:36 Simon Wallis
2003-05-10  7:46 giovannibajo
2003-05-10  4:16 Dara Hazeghi
2002-08-27  9:26 nathan
2002-08-27  5:36 sdouglass

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).