From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11249 invoked by alias); 15 Sep 2003 21:19:19 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 11242 invoked from network); 15 Sep 2003 21:19:18 -0000 Received: from unknown (HELO main.gmane.org) (80.91.224.249) by sources.redhat.com with SMTP; 15 Sep 2003 21:19:18 -0000 Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 19z0kT-0007i1-00 for ; Mon, 15 Sep 2003 23:19:05 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: cygwin@cygwin.com Received: from sea.gmane.org ([80.91.224.252]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19z0kS-0007ht-00 for ; Mon, 15 Sep 2003 23:19:04 +0200 Received: from news by sea.gmane.org with local (Exim 3.35 #1 (Debian)) id 19z0kf-0003iN-00 for ; Mon, 15 Sep 2003 23:19:17 +0200 From: Sam Steingold Subject: isatty bug Date: Mon, 15 Sep 2003 21:19:00 -0000 Organization: disorganization Message-ID: Reply-To: sds@gnu.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@sea.gmane.org X-Attribution: Sam X-Disclaimer: You should not expect anyone to agree with me. User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 X-SW-Source: 2003-09/txt/msg00983.txt.bz2 calling isatty(0) in a program results in a segfault: Exception: STATUS_ACCESS_VIOLATION at eip=00000000 eax=00000000 ebx=00000004 ecx=610CEE30 edx=610CEE18 esi=004073B8 edi=0022FECC ebp=00000400 esp=0022FE00 program=d:\sds\c\scratch.exe cs=001B ds=0023 es=0023 fs=0038 gs=0000 ss=0023 Stack trace: Frame Function Args End of stack trace calling isatty(0) in gdb results in a segfault too: Exception: STATUS_ACCESS_VIOLATION at eip=610B7374 eax=00000010 ebx=00000010 ecx=00000004 edx=00000000 esi=D0105E51 edi=100F7240 ebp=0022F178 esp=0022F16C program=d:\gnu\cygwin\bin\gdb.exe cs=001B ds=0023 es=0023 fs=0038 gs=0000 ss=0023 Stack trace: Frame Function Args 0022F178 610B7374 (100F7240, D0105E51, 00000010, 000005EC) 0022F1A8 004A767A (100F7178, 00000020, D0105E51, 004C26D8) 0022F1C8 004A75C1 (00000020, D0105E51, 00000000, 00000000) 0022F1E8 004B6175 (00000020, 00000000, 00000000, 000005EC) 0022F218 004A5B8D (100F7178, 00000020, 0022F270, 10292E34) 0022F238 004A5085 (100F7178, 00000020, 0022F270, 0042EF07) 0022F298 004A4F14 (102CB4A8, 004A5050, 100F7178, 0042EF59) 0022F2B8 004A51C5 (102CB4A8, 100F7178, 0022F2E8, 0042DDC0) 0022F2E8 004A5403 (100F7178, FFFFFFE2, 0022F3A8, 004D1F07) 0022F2F8 0049B0A5 (00000001, 61602144, 0022F330, 00A00088) 0022F3A8 004D1F07 (101DBAE8, 00000001, 0022F3DC, 00446EB4) 0022F648 0044712F (00000000, 102AE3D8, 0022F684, 00000000) 0022F668 004443F6 (00000000, 102AE3D8, 0022F684, 00000000) 0022F688 0044461F (102AE3D8, 0022F6B8, 00000000, 00000000) 0022F6C8 0047D269 (100C050A, 00000000, 00000001, 00000001) 0022F6E8 0047D2E1 (100C050A, 00000001, 0022F718, 00407A8C) End of stack trace (more stack frames may be present) -- Sam Steingold (http://www.podval.org/~sds) running w2k If brute force does not work, you are not using enough. -- 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/