Received: from eggs.gnu.org ([2001:4830:134:3::10]:49682) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WtaNc-0001Ty-4C for qemu-devel@nongnu.org; Sun, 08 Jun 2014 06:31:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WtaNU-0005pP-GB for qemu-devel@nongnu.org; Sun, 08 Jun 2014 06:31:12 -0400 Received: from benson.vm.bytemark.co.uk ([212.110.190.137]:44720) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WtaNU-0005p2-An for qemu-devel@nongnu.org; Sun, 08 Jun 2014 06:31:04 -0400 Message-ID: <1402223455.15729.185.camel@hastur.hellion.org.uk> From: Ian Campbell Date: Sun, 08 Jun 2014 11:30:55 +0100 In-Reply-To: <1400756406-22617-3-git-send-email-kraxel@redhat.com> References: <1400756406-22617-1-git-send-email-kraxel@redhat.com> <1400756406-22617-3-git-send-email-kraxel@redhat.com> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 2/3] console: rework text terminal cursor logic List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann Cc: qemu-devel@nongnu.org, Anthony Liguori On Thu, 2014-05-22 at 13:00 +0200, Gerd Hoffmann wrote: > Have a global timer. Update all visible terminal windows syncronously. > Right now this can be the active_console only, but that will change > soon. The global timer will disable itself if not needed, so we only > have to care start it if needed. Which might be at console switch time > or when a new displaychangelistener is registered. Running current master (d7d3d6092cb7) I'm seeing a segmentation fault while running: ./aarch64-softmmu/qemu-system-aarch64 -M virt -cpu cortex-a57 -sdl which goes away if I revert this patch. qemu is configured with ./configure --target-list=aarch64-softmmu --enable-sdl The backtrace shows that the timer is NULL. Program received signal SIGSEGV, Segmentation fault. 0x0000555555778204 in timer_mod (ts=0x0, expire_time=662170703) at qemu-timer.c:442 442 timer_mod_ns(ts, expire_time * ts->scale); (gdb) bt #0 0x0000555555778204 in timer_mod (ts=0x0, expire_time=662170703) at qemu-timer.c:442 #1 0x0000555555796130 in text_console_update_cursor_timer () at ui/console.c:1703 #2 text_console_update_cursor (opaque=opaque@entry=0x0) at ui/console.c:1725 #3 0x0000555555798feb in register_displaychangelistener (dcl=) at ui/console.c:1316 #4 0x00005555557a250f in sdl_display_init (ds=ds@entry=0x5555564c0d00, full_screen=-446133248, no_frame=) at ui/sdl.c:946 #5 0x00005555555f50a7 in main (argc=, argv=, envp=) at vl.c:4475 Cheers, Ian.