public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: lerios@cs.stanford.edu To: gcc-gnats@gcc.gnu.org Subject: other/3845: Standard streams closed when g++-produced DLL loaded. Date: Fri, 27 Jul 2001 11:06:00 -0000 [thread overview] Message-ID: <20010727180051.16502.qmail@sourceware.cygnus.com> (raw) >Number: 3845 >Category: other >Synopsis: Standard streams closed when g++-produced DLL loaded. >Confidential: no >Severity: critical >Priority: low >Responsible: unassigned >State: open >Class: wrong-code >Submitter-Id: net >Arrival-Date: Fri Jul 27 11:06:00 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Apostolos Lerios >Release: gcc version 2.95.3-5 (cygwin special) >Organization: >Environment: Win2k SP1 CYGWIN_NT-5.0 IONIAN 1.3.2(0.39/3/2) 2001-05-20 23:28 i686 unknown java version "1.3.0_02" >Description: When a non-cygwin exe (e.g. the Java run-time) loads a Cygwin-produced DLL that was created using C++, the Cygwin DLL bootstrap code closes the standard error and output streams of the non-cygwin exe. >How-To-Repeat: Unzip attachment, run "makeit.bat". Complete example is 10 lines. You should see "abab", but you'll get "ab". BUT if you redirect the output/error into a file, the file will get "abab". So make sure you run with the console/terminal being the stdout/stderr. >Fix: None know. Looked in the Cygwin source, discovered there is some special treatment of consoles for stdout, stderr, but didn't figure out a fix. >Release-Note: >Audit-Trail: >Unformatted: ----gnatsweb-attachment---- Content-Type: application/x-zip-compressed; name="jni.zip" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="jni.zip" UEsDBBQAAAAIAHxV+yotFUZ7egAAAPsAAAAQAAAAam5pL0ludm9rZXIuamF2YSsoTcrJTFZIzkks LlbwzCvLz04t4uWq5uVSAILiksQSoGRZfmaKQm5iZp5GcElRZl56dKxCYlF6sSZEEVQtCARXFpek 5uqlFhXpFQAVluTkaSglKmlaY6jILy1BqEjCpiInPzHFJzOpKLGoEqgiMQWbGrLtqeXlAiIAUEsD BBQAAAAIAG5W+yppaHeLXgAAAHYAAAAOAAAAam5pL21ha2VpdC5iYXQ1yEEOgyAQBdC9iXeYvf3c wxO4/gyTFkVoEIm9fdM0Lt/TaRIcL1YLgiU9ALvepTaET+Ye9c5Mnww8W0Hc+TR4HiYo4hlcSEky W+zmVMdhZafKnHvZrLqf/nfXOHwBUEsDBAoAAAAAAHJV+yqdo1UjKAAAACgAAAANAAAAam5pL25h dGl2ZS5jY19fZGVjbHNwZWMgKGRsbGV4cG9ydCkgaW50IGFueSgpDQp7DQp9DQpQSwMECgAAAAAA c1b7KgAAAAAAAAAAAAAAAAQAAABqbmkvUEsBAhQAFAAAAAgAfFX7Ki0VRnt6AAAA+wAAABAAAAAA AAAAAQAgALaBAAAAAGpuaS9JbnZva2VyLmphdmFQSwECFAAUAAAACABuVvsqaWh3i14AAAB2AAAA DgAAAAAAAAABACAA/4GoAAAAam5pL21ha2VpdC5iYXRQSwECFAAKAAAAAAByVfsqnaNVIygAAAAo AAAADQAAAAAAAAABACAAtoEyAQAAam5pL25hdGl2ZS5jY1BLAQIUAAoAAAAAAHNW+yoAAAAAAAAA AAAAAAAEAAAAAAAAAAAAEAD/QYUBAABqbmkvUEsFBgAAAAAEAAQA5wAAAKcBAAAAAA==
reply other threads:[~2001-07-27 11:06 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20010727180051.16502.qmail@sourceware.cygnus.com \ --to=lerios@cs.stanford.edu \ --cc=gcc-gnats@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).