public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c/10735: Crash on incorrect type conversion
@ 2003-05-10 23:36 Alexander V. Inyukhin
  0 siblings, 0 replies; 6+ messages in thread
From: Alexander V. Inyukhin @ 2003-05-10 23:36 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1509 bytes --]

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

From: "Alexander V. Inyukhin" <shurick@pisem.net>
To: Dara Hazeghi <dhazeghi@yahoo.com>
Cc: gcc-gnats@gcc.gnu.org
Subject: Re: c/10735: Crash on incorrect type conversion
Date: Sun, 11 May 2003 03:34:10 +0400

 On Sat, May 10, 2003 at 04:24:20PM -0700, Dara Hazeghi wrote:
 > http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit- 
 > trail&database=gcc&pr=10735
 > 
 > Hello,
 > 
 > you don't mention a platform in your bug report, nor do you give the  
 > exact error message. Both are essential to tracking down your bug.  
 > Could you please add them (just replying to this message will do so).  
 > Also, if possible, can you try your testcase on gcc 3.2.3? Thanks,
 
 Sorry, I forget to add this.
 
 Reading specs from /opt/gcc-3.2.3/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/specs
 Configured with: ./configure --prefix=/opt/gcc-3.2.3 --enable-__cxa_atexit --enable-threads=posix --enable-shared
 Thread model: posix
 gcc version 3.2.3
 
 $ /opt/gcc-3.2.3/bin/gcc 1.c -mmmx
 1.c: In function `test':
 1.c:7: internal error: Segmentation fault
 Please submit a full bug report,
 with preprocessed source if appropriate.
 See <URL:http://gcc.gnu.org/bugs.html> for instructions.
 
 
 
 
 åxample below handled correctly by gcc:
 
 typedef int __v4hi __attribute__ ((__mode__ (__V4HI__)));
 
 __v4hi test3;
 
 void test()
 {
 	long long test4;
 	test4 = test3;  // <== incompatible types in assignment
 	if (test4 != 0)
 	return;
 }


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

* Re: c/10735: Crash on incorrect type conversion
@ 2003-05-12 15:11 bangerth
  0 siblings, 0 replies; 6+ messages in thread
From: bangerth @ 2003-05-12 15:11 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, nobody, shurick

Synopsis: Crash on incorrect type conversion

State-Changed-From-To: open->analyzed
State-Changed-By: bangerth
State-Changed-When: Mon May 12 15:11:08 2003
State-Changed-Why:
    Confirmed with 3.2.3, 3.3 and 3.4

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


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

* Re: c/10735: Crash on incorrect type conversion
@ 2003-05-12  0:06 Dara Hazeghi
  0 siblings, 0 replies; 6+ messages in thread
From: Dara Hazeghi @ 2003-05-12  0:06 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

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

From: Dara Hazeghi <dhazeghi@yahoo.com>
To: "Alexander V. Inyukhin" <shurick@pisem.net>
Cc: gcc-gnats@gcc.gnu.org
Subject: Re: c/10735: Crash on incorrect type conversion
Date: Sun, 11 May 2003 17:00:22 -0700 (PDT)

 Hello Alexander,
 
 thanks for the additional information. I can replicate
 the crash exhibited by your original testcase on gcc
 3.3 prerelease and mainline (20030509). Thanks,
 
 Dara
 
 __________________________________
 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/10735: Crash on incorrect type conversion
@ 2003-05-10 23:56 Andrew Pinski
  0 siblings, 0 replies; 6+ messages in thread
From: Andrew Pinski @ 2003-05-10 23:56 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

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

From: Andrew Pinski <pinskia@physics.uc.edu>
To: shurick@pisem.net
Cc: Andrew Pinski <pinskia@physics.uc.edu>, gcc-gnats@gcc.gnu.org
Subject: Re: c/10735: Crash on incorrect type conversion
Date: Sat, 10 May 2003 19:55:00 -0400

 Here is the backtrace for the segfault:
 
 Program received signal EXC_BAD_ACCESS, Could not access memory.
 convert (type=0xe685b0, expr=0x0) at 
 /Volumes/UFS_Partition/pinskia/src/fsf/gcc/src/gcc/c-convert.c:71
 71        if (type == TREE_TYPE (expr)
 (gdb) bt
 #0  convert (type=0xe685b0, expr=0x0) at 
 /Volumes/UFS_Partition/pinskia/src/fsf/gcc/src/gcc/c-convert.c:71
 #1  0x0002936c in shorten_compare (op0_ptr=0xbffff3b4, 
 op1_ptr=0xbffff3b8, restype_ptr=0xbffff3bc, rescode_ptr=0xea9150) at 
 /Volumes/UFS_Partition/pinskia/src/fsf/gcc/src/gcc/c-common.c:2429
 #2  0x0001cc34 in build_binary_op (code=NE_EXPR, orig_op0=0x6a, 
 orig_op1=0xbffff3b8, convert_p=0) at 
 /Volumes/UFS_Partition/pinskia/src/fsf/gcc/src/gcc/c-typeck.c:2452
 #3  0x0001c3a4 in parser_build_binary_op (code=ERROR_MARK, arg1=0x0, 
 arg2=0xe906c0) at 
 /Volumes/UFS_Partition/pinskia/src/fsf/gcc/src/gcc/c-typeck.c:1786
 #4  0x000055d4 in yyparse () at c-parse.y:554
 #5  0x000345d4 in c_common_parse_file (set_yydebug=15107504) at 
 /Volumes/UFS_Partition/pinskia/src/fsf/gcc/src/gcc/c-opts.c:1634
 #6  0x000798e0 in compile_file () at 
 /Volumes/UFS_Partition/pinskia/src/fsf/gcc/src/gcc/toplev.c:2229
 #7  0x0007f06c in do_compile () at 
 /Volumes/UFS_Partition/pinskia/src/fsf/gcc/src/gcc/toplev.c:5603
 #8  0x0007f0f8 in toplev_main (argc=15, argv=0xbffffbdc) at 
 /Volumes/UFS_Partition/pinskia/src/fsf/gcc/src/gcc/toplev.c:5649
 #9  0x00001f00 in _start (argc=15, argv=0xbffffbdc, envp=0xbffffc1c) at 
 /SourceCache/Csu/Csu-45/crt.c:267
 #10 0x00001d80 in start ()
 
 Thanks,
 Andrew Pinski
 


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

* Re: c/10735: Crash on incorrect type conversion
@ 2003-05-10 23:26 Dara Hazeghi
  0 siblings, 0 replies; 6+ messages in thread
From: Dara Hazeghi @ 2003-05-10 23:26 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

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

From: Dara Hazeghi <dhazeghi@yahoo.com>
To: gcc-gnats@gcc.gnu.org, shurick@pisem.net
Cc:  
Subject: Re: c/10735: Crash on incorrect type conversion
Date: Sat, 10 May 2003 16:24:20 -0700

 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit- 
 trail&database=gcc&pr=10735
 
 Hello,
 
 you don't mention a platform in your bug report, nor do you give the  
 exact error message. Both are essential to tracking down your bug.  
 Could you please add them (just replying to this message will do so).  
 Also, if possible, can you try your testcase on gcc 3.2.3? Thanks,
 
 Dara
 


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

* c/10735: Crash on incorrect type conversion
@ 2003-05-10 22:16 shurick
  0 siblings, 0 replies; 6+ messages in thread
From: shurick @ 2003-05-10 22:16 UTC (permalink / raw)
  To: gcc-gnats


>Number:         10735
>Category:       c
>Synopsis:       Crash on incorrect type conversion
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-illegal-code
>Submitter-Id:   net
>Arrival-Date:   Sat May 10 22:16:01 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     shurick@pisem.net
>Release:        gcc-3.2.2
>Organization:
>Environment:

>Description:
typedef int __v4hi __attribute__ ((__mode__ (__V4HI__)));

__v4hi test3;

void test()
{
        if ((long long)test3 != 0)   // <= ICE here
                return;
}

>How-To-Repeat:

>Fix:

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


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

end of thread, other threads:[~2003-05-12 15:11 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-10 23:36 c/10735: Crash on incorrect type conversion Alexander V. Inyukhin
  -- strict thread matches above, loose matches on Subject: below --
2003-05-12 15:11 bangerth
2003-05-12  0:06 Dara Hazeghi
2003-05-10 23:56 Andrew Pinski
2003-05-10 23:26 Dara Hazeghi
2003-05-10 22:16 shurick

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).