From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30261 invoked by alias); 16 Nov 2014 09:14:36 -0000 Mailing-List: contact cygwin-xfree-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-xfree-owner@cygwin.com Reply-To: cygwin-xfree@cygwin.com Mail-Followup-To: cygwin-xfree@cygwin.com Received: (qmail 30251 invoked by uid 89); 16 Nov 2014 09:14:34 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: plane.gmane.org Received: from plane.gmane.org (HELO plane.gmane.org) (80.91.229.3) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Sun, 16 Nov 2014 09:14:33 +0000 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Xpvue-0003vy-Ve for cygwin-xfree@cygwin.com; Sun, 16 Nov 2014 10:14:29 +0100 Received: from 76-217-5-67.lightspeed.irvnca.sbcglobal.net ([76.217.5.67]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 16 Nov 2014 10:14:28 +0100 Received: from mark by 76-217-5-67.lightspeed.irvnca.sbcglobal.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 16 Nov 2014 10:14:28 +0100 To: cygwin-xfree@cygwin.com From: Mark Geisert Subject: Re: possible bug in libXt or libXaw Date: Sun, 16 Nov 2014 09:14:00 -0000 Message-ID: References: <5467E20A.4000503@gmail.com> <54684F51.5060706@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit User-Agent: Loom/3.14 (http://gmane.org/) X-IsSubscribed: yes X-SW-Source: 2014-11/txt/msg00020.txt.bz2 Marco Atzeri writes: > On 11/16/2014 7:30 AM, Mark Geisert wrote: > > Marco Atzeri writes: > >> this is the pointer causing the segfault > >> > >> (gdb) p form->form.horiz_base > >> $2 = (Widget) 0x6275705f6779632f > >> > >> while similar pointers have a much smaller address, > >> > >> (gdb) p w > >> $5 = (Widget) 0x60014bd50 > >> > >> so it that an assignment not clearing the upper > >> portion of the pointer. > > > > $2 is not a pointer that needed partial clearing, it's a character string > > "/cyg_pub". Possibly a buffer overrun somewhere? Hope the string fragment > > points the way to somebody. > > > > ..mark > > > > thanks for the hint, "/cyg_pub" is a directory on the root > > $ ls -l / |grep pub > lrwxrwxrwx 1 marco Administrators 19 Jun 26 19:11 pub -> > /cygdrive/e/cyg_pub > > where the data file was stored, > however moving it to "/tmp" produce as result > > p ref > $1 = (Widget) 0x635f7261636e5f62 aka c_racn_b > > that is not very meaningful to me, so the pointer corruption > can be very generic. One has to reverse the bytes, so it's "b_ncar_c", but that's likely still not meaningful :-(. You might try: (gdb) set print pretty (gdb) p form->form or (gdb) p *form->form and in the output, look at the struct items before horiz_base to see if one of them is a char array that has been overrun. If it's really hosed, all of the items may have character string contents which means something before (lower than) the address of form->form has been overrun. Good Luck, ..mark -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/