X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: Lewis Hyatt 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: <9219 DOT 63 DOT 110 DOT 244 DOT 98 DOT 1191548518 DOT squirrel AT webmail DOT jessies DOT 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 AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 > 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/