delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/10/19/01:17:20

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Reply-To: <chikayama AT logos DOT t DOT u-tokyo DOT ac DOT jp>
From: "Takashi Chikayama" <chikayama AT kjps DOT net>
To: <cygwin AT cygwin DOT com>
Cc: "'ICPC02'" <kurage AT cs DOT meiji DOT ac DOT jp>
Subject: 1.3.12: gcc bug: variable named "end"
Date: Sat, 19 Oct 2002 14:16:56 +0900
Message-ID: <000c01c2772e$c221c830$1176fea9@X22Chikayama>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106

CYGWIN_NT-5.1 X22CHIKAYAMA 1.3.12(0.54/3/2) 2002-07-06 02:16 i686
unknown
gcc 2.95.3-5

The following program causes a segmentation fault.
---
int end;
main() { end = 0; }
---
Seems that the problem is with the variable name "end".
In the object code tries to store in some invalid address.
Variables with other names, of course, does not cause this.

- Takashi Chikayama AT Dept. of Frontier Informatics, the Univ. of Tokyo
- 7-3-1 Hongo, Bunkyo-ku, Tokyo 113 Japan
- Tel. +81-3-5841-6658; Fax. +81-3-5841-8572



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019