From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10934 invoked by alias); 19 Oct 2011 18:20:27 -0000 Received: (qmail 10917 invoked by uid 22791); 19 Oct 2011 18:20:24 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from mpv1.tis.CWRU.Edu (HELO mpv1.tis.cwru.edu) (129.22.105.36) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 19 Oct 2011 18:20:07 +0000 Received: from mpv5.tis.cwru.edu (EHLO mpv5.cwru.edu) ([129.22.105.51]) by mpv1.tis.cwru.edu (MOS 4.3.3-GA FastPath queued) with ESMTP id BRQ87074 (AUTH cpr); Wed, 19 Oct 2011 14:20:06 -0400 (EDT) Received: from caleb.INS.CWRU.Edu (EHLO caleb.ins.cwru.edu) ([129.22.8.211]) by mpv5.cwru.edu (MOS 4.3.3-GA FastPath queued) with ESMTP id ALT81075 (AUTH cpr); Wed, 19 Oct 2011 14:20:05 -0400 (EDT) Message-ID: <4E9F14D4.9010802@case.edu> Date: Wed, 19 Oct 2011 18:50:00 -0000 From: Chet Ramey Reply-To: chet.ramey@case.edu User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 MIME-Version: 1.0 To: Jan Kratochvil CC: bug-readline@gnu.org, gdb-patches@sourceware.org, Sterling Augustine , chet.ramey@case.edu Subject: Re: [Bug-readline] [readline patch, gdb-7.3?] Avoid free from a signal handler [Re: [PATCH] Make interrupting tab-completion safe.] References: <20110612121158.GA10611@host1.jankratochvil.net> <20110626222146.GA4410@host1.jankratochvil.net> <4E0B2E83.9030202@case.edu> <20110629203457.GA28353@host1.jankratochvil.net> <4E0C8A5D.7000807@case.edu> <20110706154621.GA17142@host1.jankratochvil.net> <110706155826.AA07325.SM@caleb.INS.CWRU.Edu> <20110706164400.GA31447@host1.jankratochvil.net> <4E15A220.4030404@case.edu> <20111019163257.GA20394@host1.jankratochvil.net> In-Reply-To: <20111019163257.GA20394@host1.jankratochvil.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Junkmail-Signature-Raw: score=unknown, refid=str=0001.0A020207.4E9F14D6.0099,ss=1,re=0.000,fgs=0, ip=0.0.0.0, so=2011-07-25 19:15:43, dmn=2011-05-27 18:58:46, mode=single engine Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2011-10/txt/msg00536.txt.bz2 On 10/19/11 12:32 PM, Jan Kratochvil wrote: > On Thu, 07 Jul 2011 14:10:08 +0200, Chet Ramey wrote: >> The impression I got from your earlier message is that is is very easy >> to reproduce using a GDB .exp file: >> >> "Used this GDB .exp file, reproducible in several seconds" >> >> All I am asking you do to is to check whether you can reproduce it using >> the same .exp file after removing references to _rl_interrupt_immediately >> in complete.c. > > After removing the workaround: > https://lists.gnu.org/archive/html/bug-readline/2011-06/msg00003.html > > and removing the changes of _rl_interrupt_immediately in complete.c the > memory corruption is still reproducible: > *** glibc detected *** .../gdb/testsuite/../../gdb/gdb: munmap_chunk(): invalid pointer: 0x000000000718ef70 *** Wow, a blast from the past. :-) The next version of readline will do this a different way, avoiding executing very much code in a signal handling context. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/