Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com From: KRISTOF DOT DOFFING AT lhsystems DOT com Message-ID: <4FBF09C6D88BD011A5B74000611400100669ACE2@XNT-FRABASE-2> To: cygwin AT cygwin DOT com Subject: AW: STATUS+-AF8-ACCESS+-AF8-VIOLATION Exception Date: Thu, 24 Jan 2002 14:01:41 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="utf-7" Of course it crashes. writing to a string literal +ACo-is+ACo- an access violation. BTW: This piece of code is a violation of any good taste and should crash on any system. (depends on whether the string constant is stored on the data segment or in the code segment). Nevertheless, this is not really a cygwin topic (ASAIK). Kristof Doffing Lufthansa Systems Airline Services GmbH, FRA AS/S FAC, Hugo-Eckener-Ring A.8.02 60549 Frankfurt/Main Tel.: +-49 69 / 696 92630 Fax : +-49 69 / 696 92062 -----Urspr+APw-ngliche Nachricht----- Von: Amos +AFs-mailto:tirtsab+AEA-inter.net.il+AF0- Gesendet am: Donnerstag, 24. Januar 2002 14:01 An: cygwin+AEA-cygwin.com Betreff: STATUS+-AF8-ACCESS+-AF8-VIOLATION Exception Hi, Any simple c program that uses a string function crashes with the STATUS+AF8-ACCESS+AF8-VIOLATION exception. +ACM-include +ADw-string.h+AD4- main() +AHs- char +ACo-abc +AD0- +ACI-a b c+ACIAOw- strcpy(abc, +ACI-hello+ACI-)+ADs- printf(+ACIAJQ-s+AFw-n+ACI-, abc)+ADs- +AH0- Can you please help me. I use Windows2000. Thanks, Amos -- Unsubscribe info: http://cygwin.com/ml/+ACM-unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ -- 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/