All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [Bug 804517] [NEW] qemu crashes on Darwin in qemu_iohandler_poll
@ 2011-07-01 20:02 Damjan Marion
  2011-07-01 20:02 ` [Qemu-devel] [Bug 804517] " Damjan Marion
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Damjan Marion @ 2011-07-01 20:02 UTC (permalink / raw)
  To: qemu-devel

Public bug reported:

I have an issue when I try to run qemu-system-arm on Mac OS X. 
Sometime between 1 and 15 secs after qemu is started it crashes
as shown bellow.

Same thing on linux host works fine.

Is anybody else experiencing this?
Any Hints?

Thanks,

Damjan


(gdb) run
Starting program: /opt/arm-qemu/bin/qemu-system-arm -M verdex -pflash flash.img -nographic -monitor null -m 289
Reading symbols for shared libraries .++++++++++++++........................................................................................ done
pxa2xx_clkpwr_write: CPU frequency change attempt


U-Boot 1.2.0 (May 10 2008 - 21:17:19) - PXA270@400 MHz - 1604

*** Welcome to Gumstix ***

DRAM:  256 MB
Flash: 32 MB
Using default environment

Hit any key to stop autoboot:  1 
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x00007fff5fbfed30
0x00007fff5fbfed30 in ?? ()
(gdb) 
(gdb) bt
#0  0x00007fff5fbfed30 in ?? ()
#1  0x00000001000c26f4 in qemu_iohandler_poll ()
#2  0x00000001001975ae in main_loop_wait ()
#3  0x00000001001976e2 in main_loop ()
#4  0x000000010019bfbc in qemu_main ()
#5  0x00000001000d63a5 in main ()
(gdb)

** Affects: qemu
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/804517

Title:
  qemu crashes on Darwin in qemu_iohandler_poll

Status in QEMU:
  New

Bug description:
  I have an issue when I try to run qemu-system-arm on Mac OS X. 
  Sometime between 1 and 15 secs after qemu is started it crashes
  as shown bellow.

  Same thing on linux host works fine.

  Is anybody else experiencing this?
  Any Hints?

  Thanks,

  Damjan


  (gdb) run
  Starting program: /opt/arm-qemu/bin/qemu-system-arm -M verdex -pflash flash.img -nographic -monitor null -m 289
  Reading symbols for shared libraries .++++++++++++++........................................................................................ done
  pxa2xx_clkpwr_write: CPU frequency change attempt

  
  U-Boot 1.2.0 (May 10 2008 - 21:17:19) - PXA270@400 MHz - 1604

  *** Welcome to Gumstix ***

  DRAM:  256 MB
  Flash: 32 MB
  Using default environment

  Hit any key to stop autoboot:  1 
  Program received signal EXC_BAD_ACCESS, Could not access memory.
  Reason: KERN_PROTECTION_FAILURE at address: 0x00007fff5fbfed30
  0x00007fff5fbfed30 in ?? ()
  (gdb) 
  (gdb) bt
  #0  0x00007fff5fbfed30 in ?? ()
  #1  0x00000001000c26f4 in qemu_iohandler_poll ()
  #2  0x00000001001975ae in main_loop_wait ()
  #3  0x00000001001976e2 in main_loop ()
  #4  0x000000010019bfbc in qemu_main ()
  #5  0x00000001000d63a5 in main ()
  (gdb)

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/804517/+subscriptions

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Qemu-devel] [Bug 804517] Re: qemu crashes on Darwin in qemu_iohandler_poll
  2011-07-01 20:02 [Qemu-devel] [Bug 804517] [NEW] qemu crashes on Darwin in qemu_iohandler_poll Damjan Marion
@ 2011-07-01 20:02 ` Damjan Marion
  2012-10-19 19:19 ` Oliver
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Damjan Marion @ 2011-07-01 20:02 UTC (permalink / raw)
  To: qemu-devel

fter bisection seems that this starts happening after following patch:

commit 09716e45a05cc0c93bcf55bd0c0888dd678e490f
Author: Alexander Graf <agraf@suse.de>
Date:   Thu Jun 9 00:55:37 2011 +0200

   sigfd: use pthread_sigmask


diff --git a/compatfd.c b/compatfd.c
index bd377c4..41586ce 100644
--- a/compatfd.c
+++ b/compatfd.c
@@ -29,7 +29,7 @@ static void *sigwait_compat(void *opaque)
    sigset_t all;

    sigfillset(&all);
-    sigprocmask(SIG_BLOCK, &all, NULL);
+    pthread_sigmask(SIG_BLOCK, &all, NULL);

    while (1) {


However before this patch qemu doesn't respond to keyboard (i.e. commit 31b7c261).

Last full working commit is 630ecca.

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/804517

Title:
  qemu crashes on Darwin in qemu_iohandler_poll

Status in QEMU:
  New

Bug description:
  I have an issue when I try to run qemu-system-arm on Mac OS X. 
  Sometime between 1 and 15 secs after qemu is started it crashes
  as shown bellow.

  Same thing on linux host works fine.

  Is anybody else experiencing this?
  Any Hints?

  Thanks,

  Damjan


  (gdb) run
  Starting program: /opt/arm-qemu/bin/qemu-system-arm -M verdex -pflash flash.img -nographic -monitor null -m 289
  Reading symbols for shared libraries .++++++++++++++........................................................................................ done
  pxa2xx_clkpwr_write: CPU frequency change attempt

  
  U-Boot 1.2.0 (May 10 2008 - 21:17:19) - PXA270@400 MHz - 1604

  *** Welcome to Gumstix ***

  DRAM:  256 MB
  Flash: 32 MB
  Using default environment

  Hit any key to stop autoboot:  1 
  Program received signal EXC_BAD_ACCESS, Could not access memory.
  Reason: KERN_PROTECTION_FAILURE at address: 0x00007fff5fbfed30
  0x00007fff5fbfed30 in ?? ()
  (gdb) 
  (gdb) bt
  #0  0x00007fff5fbfed30 in ?? ()
  #1  0x00000001000c26f4 in qemu_iohandler_poll ()
  #2  0x00000001001975ae in main_loop_wait ()
  #3  0x00000001001976e2 in main_loop ()
  #4  0x000000010019bfbc in qemu_main ()
  #5  0x00000001000d63a5 in main ()
  (gdb)

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/804517/+subscriptions

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [Qemu-devel] [Bug 804517] Re: qemu crashes on Darwin in qemu_iohandler_poll
  2011-07-01 20:02 [Qemu-devel] [Bug 804517] [NEW] qemu crashes on Darwin in qemu_iohandler_poll Damjan Marion
  2011-07-01 20:02 ` [Qemu-devel] [Bug 804517] " Damjan Marion
@ 2012-10-19 19:19 ` Oliver
  2017-01-23 11:08 ` Thomas Huth
  2017-03-25  4:17 ` Launchpad Bug Tracker
  3 siblings, 0 replies; 5+ messages in thread
From: Oliver @ 2012-10-19 19:19 UTC (permalink / raw)
  To: qemu-devel

I am seeing the same think when I try to run a sample built under gcc
from the TI tools

117	void qemu_iohandler_poll(fd_set *readfds, fd_set *writefds, fd_set *xfds, int ret)
118	{
119	    if (ret > 0) {
120	        IOHandlerRecord *pioh, *ioh;
121	
122	        QLIST_FOREACH_SAFE(ioh, &io_handlers, next, pioh) {
(gdb) l
123	            if (!ioh->deleted && ioh->fd_read && FD_ISSET(ioh->fd, readfds)) {
124	                ioh->fd_read(ioh->opaque);
125	            }

(gdb) print ioh
$2 = (IOHandlerRecord *) 0x5

However Peter Maydell sent me a kernel image that runs fine on OS X.
However when I try to run it under gdb I get the same problem that you
see.

Oliver

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/804517

Title:
  qemu crashes on Darwin in qemu_iohandler_poll

Status in QEMU:
  New

Bug description:
  I have an issue when I try to run qemu-system-arm on Mac OS X. 
  Sometime between 1 and 15 secs after qemu is started it crashes
  as shown bellow.

  Same thing on linux host works fine.

  Is anybody else experiencing this?
  Any Hints?

  Thanks,

  Damjan


  (gdb) run
  Starting program: /opt/arm-qemu/bin/qemu-system-arm -M verdex -pflash flash.img -nographic -monitor null -m 289
  Reading symbols for shared libraries .++++++++++++++........................................................................................ done
  pxa2xx_clkpwr_write: CPU frequency change attempt

  
  U-Boot 1.2.0 (May 10 2008 - 21:17:19) - PXA270@400 MHz - 1604

  *** Welcome to Gumstix ***

  DRAM:  256 MB
  Flash: 32 MB
  Using default environment

  Hit any key to stop autoboot:  1 
  Program received signal EXC_BAD_ACCESS, Could not access memory.
  Reason: KERN_PROTECTION_FAILURE at address: 0x00007fff5fbfed30
  0x00007fff5fbfed30 in ?? ()
  (gdb) 
  (gdb) bt
  #0  0x00007fff5fbfed30 in ?? ()
  #1  0x00000001000c26f4 in qemu_iohandler_poll ()
  #2  0x00000001001975ae in main_loop_wait ()
  #3  0x00000001001976e2 in main_loop ()
  #4  0x000000010019bfbc in qemu_main ()
  #5  0x00000001000d63a5 in main ()
  (gdb)

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/804517/+subscriptions

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Qemu-devel] [Bug 804517] Re: qemu crashes on Darwin in qemu_iohandler_poll
  2011-07-01 20:02 [Qemu-devel] [Bug 804517] [NEW] qemu crashes on Darwin in qemu_iohandler_poll Damjan Marion
  2011-07-01 20:02 ` [Qemu-devel] [Bug 804517] " Damjan Marion
  2012-10-19 19:19 ` Oliver
@ 2017-01-23 11:08 ` Thomas Huth
  2017-03-25  4:17 ` Launchpad Bug Tracker
  3 siblings, 0 replies; 5+ messages in thread
From: Thomas Huth @ 2017-01-23 11:08 UTC (permalink / raw)
  To: qemu-devel

Can you still reproduce this issue with the latest version of QEMU, or
could we close this ticket nowadays?

** Changed in: qemu
       Status: New => Incomplete

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/804517

Title:
  qemu crashes on Darwin in qemu_iohandler_poll

Status in QEMU:
  Incomplete

Bug description:
  I have an issue when I try to run qemu-system-arm on Mac OS X. 
  Sometime between 1 and 15 secs after qemu is started it crashes
  as shown bellow.

  Same thing on linux host works fine.

  Is anybody else experiencing this?
  Any Hints?

  Thanks,

  Damjan


  (gdb) run
  Starting program: /opt/arm-qemu/bin/qemu-system-arm -M verdex -pflash flash.img -nographic -monitor null -m 289
  Reading symbols for shared libraries .++++++++++++++........................................................................................ done
  pxa2xx_clkpwr_write: CPU frequency change attempt

  
  U-Boot 1.2.0 (May 10 2008 - 21:17:19) - PXA270@400 MHz - 1604

  *** Welcome to Gumstix ***

  DRAM:  256 MB
  Flash: 32 MB
  Using default environment

  Hit any key to stop autoboot:  1 
  Program received signal EXC_BAD_ACCESS, Could not access memory.
  Reason: KERN_PROTECTION_FAILURE at address: 0x00007fff5fbfed30
  0x00007fff5fbfed30 in ?? ()
  (gdb) 
  (gdb) bt
  #0  0x00007fff5fbfed30 in ?? ()
  #1  0x00000001000c26f4 in qemu_iohandler_poll ()
  #2  0x00000001001975ae in main_loop_wait ()
  #3  0x00000001001976e2 in main_loop ()
  #4  0x000000010019bfbc in qemu_main ()
  #5  0x00000001000d63a5 in main ()
  (gdb)

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/804517/+subscriptions

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Qemu-devel] [Bug 804517] Re: qemu crashes on Darwin in qemu_iohandler_poll
  2011-07-01 20:02 [Qemu-devel] [Bug 804517] [NEW] qemu crashes on Darwin in qemu_iohandler_poll Damjan Marion
                   ` (2 preceding siblings ...)
  2017-01-23 11:08 ` Thomas Huth
@ 2017-03-25  4:17 ` Launchpad Bug Tracker
  3 siblings, 0 replies; 5+ messages in thread
From: Launchpad Bug Tracker @ 2017-03-25  4:17 UTC (permalink / raw)
  To: qemu-devel

[Expired for QEMU because there has been no activity for 60 days.]

** Changed in: qemu
       Status: Incomplete => Expired

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/804517

Title:
  qemu crashes on Darwin in qemu_iohandler_poll

Status in QEMU:
  Expired

Bug description:
  I have an issue when I try to run qemu-system-arm on Mac OS X. 
  Sometime between 1 and 15 secs after qemu is started it crashes
  as shown bellow.

  Same thing on linux host works fine.

  Is anybody else experiencing this?
  Any Hints?

  Thanks,

  Damjan


  (gdb) run
  Starting program: /opt/arm-qemu/bin/qemu-system-arm -M verdex -pflash flash.img -nographic -monitor null -m 289
  Reading symbols for shared libraries .++++++++++++++........................................................................................ done
  pxa2xx_clkpwr_write: CPU frequency change attempt

  
  U-Boot 1.2.0 (May 10 2008 - 21:17:19) - PXA270@400 MHz - 1604

  *** Welcome to Gumstix ***

  DRAM:  256 MB
  Flash: 32 MB
  Using default environment

  Hit any key to stop autoboot:  1 
  Program received signal EXC_BAD_ACCESS, Could not access memory.
  Reason: KERN_PROTECTION_FAILURE at address: 0x00007fff5fbfed30
  0x00007fff5fbfed30 in ?? ()
  (gdb) 
  (gdb) bt
  #0  0x00007fff5fbfed30 in ?? ()
  #1  0x00000001000c26f4 in qemu_iohandler_poll ()
  #2  0x00000001001975ae in main_loop_wait ()
  #3  0x00000001001976e2 in main_loop ()
  #4  0x000000010019bfbc in qemu_main ()
  #5  0x00000001000d63a5 in main ()
  (gdb)

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/804517/+subscriptions

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-03-25  4:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-01 20:02 [Qemu-devel] [Bug 804517] [NEW] qemu crashes on Darwin in qemu_iohandler_poll Damjan Marion
2011-07-01 20:02 ` [Qemu-devel] [Bug 804517] " Damjan Marion
2012-10-19 19:19 ` Oliver
2017-01-23 11:08 ` Thomas Huth
2017-03-25  4:17 ` Launchpad Bug Tracker

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.