| www.delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| X-Spam-Check-By: | sourceware.org |
| To: | cygwin AT cygwin DOT com |
| From: | Lewis Hyatt <lhyatt AT princeton DOT 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 AT sea DOT gmane DOT org> <9219 DOT 63 DOT 110 DOT 244 DOT 98 DOT 1191548518 DOT squirrel AT webmail DOT jessies DOT org> |
| Mime-Version: | 1.0 |
| 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 |
| List-Id: | <cygwin.cygwin.com> |
| List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| 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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |