X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: Lewis Hyatt <lhyatt@princeton.edu>
Subject:  Re: 1.5.24-2: zero-length write() and ioctl() on fd -1 cause               crashes
Date:  Fri, 05 Oct 2007 00:25:44 -0400
Lines: 23
Message-ID:  <4705BCC8.9010008@princeton.edu>
References:  <fe3t7j$ik1$1@sea.gmane.org> <9219.63.110.244.98.1191548518.squirrel@webmail.jessies.org>
Mime-Version:  1.0
Content-Type:  text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding:  7bit
User-Agent: Thunderbird 2.0.0.6 (Windows/20070728)
In-Reply-To: <9219.63.110.244.98.1191548518.squirrel@webmail.jessies.org>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

> i can remove the method call, too. this also crashes:
> 
> extern "C" JNIEXPORT void JNICALL
> Java_terminator_terminal_PtyProcess_sendResizeNotification(JNIEnv* env,
> jobject instance, jobject a0, jobject a1) {
>     try {
>         throw std::exception();
>     } catch (const std::exception& ex) {
>     }
> }

OK, well in that case I probably can't be of much help. I can only think 
of two things that don't involve low-level details (of which I know 
nothing):

-If the destructor of jobject can throw... that would immediately 
terminate the program.

-I forget the details, but some compilers will assume that a function 
declared extern "C" won't throw. Maybe that is the explanation?


-Lewis


--
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/

