Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 Date: Mon, 18 Oct 2004 09:12:02 -0400 (EDT) From: Igor Pechtchanski Reply-To: cygwin-xfree AT cygwin DOT com, cygwin AT cygwin DOT com To: cygwin-xfree AT cygwin DOT com cc: cygwin AT cygwin DOT com Subject: Ignoring IsBadWritePtr in GDB (Was Re: Crash in when running Evolution) In-Reply-To: Message-ID: References: <1097787608 DOT 5746 DOT ezmlm AT cygwin DOT com> <1098086132 DOT 18585 DOT 3 DOT camel AT famine> MIME-Version: 1.0 Content-Type: MULTIPART/Mixed; BOUNDARY="Multipart_Mon_Oct_18_19:32:58_2004-1" Content-ID: X-Scanned-By: MIMEDefang 2.39 Note-from-DJ: This may be spam --Multipart_Mon_Oct_18_19:32:58_2004-1 Content-Type: TEXT/PLAIN; CHARSET=ISO-8859-1 Content-Transfer-Encoding: 8BIT Content-ID: On Mon, 18 Oct 2004, Øyvind Harboe wrote: > Even with -multiwindows disabled, I get too many pointer check > SEGFAULT's in GDB to do any debugging. > > Is this a bug in GDB or CygWin? > > (One can fuss over the definition of bug, but ...) On Mon, 18 Oct 2004, Kensuke Matsuzaki wrote: > -clipboard uses pthread, and that causes many many SEGV too. > "(gdb) handle SIGSEGV nostop noprint" > doesn't let gdb stop and print SEGV. > But I'm using bit dirty workaround to ignore only IsBadWritePtr. > > [GDB patch attached] Hmm, there's *got* to be a way to do the same using pure GDB macros, without having to muck with the code... Does anyone know enough about macro writing in GDB to answer this off-hand? Otherwise, I'll do some digging... Igor P.S. Cc'ing this to the main Cygwin list, as this is of interest to the general community as well. -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT com |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! "Happiness lies in being privileged to work hard for long hours in doing whatever you think is worth doing." -- Dr. Jubal Harshaw --Multipart_Mon_Oct_18_19:32:58_2004-1 Content-Type: APPLICATION/OCTET-STREAM; TYPE=patch Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: Content-Disposition: ATTACHMENT; FILENAME="segv.diff" T25seSBpbiBnZGItNi4yLjFfOiBidWlsZApkaWZmIC1ydSBnZGItNi4yLjEv Z2RiL2luZnJ1bi5jIGdkYi02LjIuMV8vZ2RiL2luZnJ1bi5jCi0tLSBnZGIt Ni4yLjEvZ2RiL2luZnJ1bi5jCTIwMDQtMDctMTcgMDQ6NDI6NTcuMDAwMDAw MDAwICswOTAwCisrKyBnZGItNi4yLjFfL2dkYi9pbmZydW4uYwkyMDA0LTA5 LTIyIDA0OjA0OjU5LjI4ODE1MzcwMCArMDkwMApAQCAtMTk0NCw2ICsxOTQ0 LDE2IEBACiAgICAgewogICAgICAgLyogU2lnbmFsIG5vdCBmb3IgZGVidWdn aW5nIHB1cnBvc2VzLiAgKi8KICAgICAgIGludCBwcmludGVkID0gMDsKKyAg ICAgIGNoYXIqIGZ1bmNfbmFtZTsKKworICAgICAgZmluZF9wY19wYXJ0aWFs X2Z1bmN0aW9uIChzdG9wX3BjLCAmZnVuY19uYW1lLCAoQ09SRV9BRERSICop IE5VTEwsCisJCQkJKENPUkVfQUREUiAqKSBOVUxMKTsKKworICAgICAgaWYo c3RyY21wKGZ1bmNfbmFtZSwgIktFUk5FTDMyIUlzQmFkV3JpdGVQdHIiKSA9 PSAwKQorCXsKKwkgIGtlZXBfZ29pbmcgKGVjcyk7CisJICByZXR1cm47CisJ fQogCiAgICAgICBzdG9wcGVkX2J5X3JhbmRvbV9zaWduYWwgPSAxOwogCk9u bHkgaW4gZ2RiLTYuMi4xXy9nZGI6IGluZnJ1bi5jfgo= --Multipart_Mon_Oct_18_19:32:58_2004-1 Content-Type: text/plain; charset=us-ascii -- 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/ --Multipart_Mon_Oct_18_19:32:58_2004-1--