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 Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <20030915234312.66294.qmail@web40708.mail.yahoo.com> Date: Mon, 15 Sep 2003 16:43:12 -0700 (PDT) From: Vijay Kumar Subject: g++ iostream broken on windows 2000 To: cygwin AT cygwin DOT com MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Hi all, I have upgraded to the latest cygwin this morning and I can not anymore run my programs that use ifstream to read input files. It crashes giving segmentation fault. When I ran strace, I found that the actually fails in mmap.cc complaining STATUS_ACCESS_VIOLATION. Here's the simple code I ran. Anybody have any clues? Interestingly the following programs works fine with -mno-cygwin option which unfortunaty I can not use for my application. # include # include int main(int argc, char *argv[]) { char ch; if (argc < 2) { cout << "Usage: a.out file_name" << endl; } ifstream is(argv[1], ios::in); while (! is.eof()) { is.get(ch); cout << ch; } is.close(); return 0; } Thanks, - Vijay __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/