From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19548 invoked by alias); 12 Mar 2013 16:04:19 -0000 Received: (qmail 19539 invoked by uid 22791); 12 Mar 2013 16:04:18 -0000 X-SWARE-Spam-Status: No, hits=-8.9 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_SPAMHAUS_DROP,KHOP_THREADED,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,RP_MATCHES_RCVD,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 12 Mar 2013 16:03:42 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r2CG3dn3007678 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 12 Mar 2013 12:03:39 -0400 Received: from [127.0.0.1] (ovpn01.gateway.prod.ext.ams2.redhat.com [10.39.146.11]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r2CG3bpT017448; Tue, 12 Mar 2013 12:03:38 -0400 Message-ID: <513F51D9.9040604@redhat.com> Date: Tue, 12 Mar 2013 16:04:00 -0000 From: Pedro Alves User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130219 Thunderbird/17.0.3 MIME-Version: 1.0 To: Jan Kratochvil CC: Hui Zhu , gdb-patches ml , Joel Brobecker Subject: Re: [PATCH] Fix gdb crash with tui References: <20130311192521.GA28983@host2.jankratochvil.net> <20130312123654.GA12204@host2.jankratochvil.net> In-Reply-To: <20130312123654.GA12204@host2.jankratochvil.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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: 2013-03/txt/msg00525.txt.bz2 On 03/12/2013 12:36 PM, Jan Kratochvil wrote: > On Tue, 12 Mar 2013 13:21:44 +0100, Hui Zhu wrote: >> Not sure the prev backtrace for crash is right, so I post new one: > > BTW don't you have a recipe for the reproducibility? Don't you have some > unusual terminal size (stty size) for example? Which distro? > > > Jan I just reproduced it on my Fedora 17 box with current mainline. $ stty size 45 172 To reproduce, I just did the steps in the OP. $ ./gdb ./gdb (gdb) start "c-x a" to flip to TUI mode. repeat: press arrow up a bit, so the source display scrolls a bit up. press arrow down a bit, so the source display scrolls a bit down. goto repeat until "---Type to continue, or q to quit---" appears in TUI's console. Then press return. (top-gdb) bt #0 0x0000000000000000 in ?? () #1 0x000000000072ea9a in rl_callback_read_char () at ../../src/readline/callback.c:220 #2 0x00000000005e1c9d in rl_callback_read_char_wrapper (client_data=0x0) at ../../src/gdb/event-top.c:163 #3 0x00000000005e207e in stdin_event_handler (error=0, client_data=0x0) at ../../src/gdb/event-top.c:371 #4 0x00000000005e0c22 in handle_file_event (data=...) at ../../src/gdb/event-loop.c:768 #5 0x00000000005e00cb in process_event () at ../../src/gdb/event-loop.c:342 #6 0x00000000005e0192 in gdb_do_one_event () at ../../src/gdb/event-loop.c:406 #7 0x00000000005e01e3 in start_event_loop () at ../../src/gdb/event-loop.c:431 #8 0x00000000005e1cc7 in cli_command_loop () at ../../src/gdb/event-top.c:176 #9 0x00000000005d8768 in current_interp_command_loop () at ../../src/gdb/interps.c:331 #10 0x00000000005d91a6 in captured_command_loop (data=0x0) at ../../src/gdb/main.c:256 #11 0x00000000005d7512 in catch_errors (func=0x5d918b , func_args=0x0, errstring=0x88f8d4 "", mask=6) at ../../src/gdb/exceptions.c:546 #12 0x00000000005da5b9 in captured_main (data=0x7fff21b3eea0) at ../../src/gdb/main.c:1033 #13 0x00000000005d7512 in catch_errors (func=0x5d9442 , func_args=0x7fff21b3eea0, errstring=0x88f8d4 "", mask=6) at ../../src/gdb/exceptions.c:546 #14 0x00000000005da5ef in gdb_main (args=0x7fff21b3eea0) at ../../src/gdb/main.c:1042 #15 0x000000000045a00a in main (argc=2, argv=0x7fff21b3efa8) at ../../src/gdb/gdb.c:34 (top-gdb) -- Pedro Alves