All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [Bug 955379] [NEW] cmake hangs with qemu-arm-static
@ 2012-03-14 19:23 Tom Mullins
  2012-05-09 15:13 ` [Qemu-devel] [Bug 955379] " David Sugar
                   ` (65 more replies)
  0 siblings, 66 replies; 74+ messages in thread
From: Tom Mullins @ 2012-03-14 19:23 UTC (permalink / raw)
  To: qemu-devel

Public bug reported:

I'm using git commit 3e7ecd976b06f... configured with --target-list=arm-
linux-user --static in a chroot environment to compile some things. I
ran into this problem with both pcl and opencv-2.3.1. cmake consistently
freezes at some point during its execution, though in a different spot
each time, usually during a step when it's searching for some libraries.
For instance, pcl most commonly stops after:

[snip]
-- Boost version: 1.46.1
-- Found the following Boost libraries:
--   system
--   filesystem
--   thread
--   date_time
-- checking for module 'eigen3'
--   found eigen3, version 3.0.1

which is perplexing because it freezes after finding what it wants, not
during the search. When it does get past that point, it does so almost
immediately but freezes somewhere else.

I'm using 64-bit Ubuntu 11.10 with kernel release 3.0.0-16-generic with
an Intel i5.

** 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/955379

Title:
  cmake hangs with qemu-arm-static

Status in QEMU:
  New

Bug description:
  I'm using git commit 3e7ecd976b06f... configured with --target-list
  =arm-linux-user --static in a chroot environment to compile some
  things. I ran into this problem with both pcl and opencv-2.3.1. cmake
  consistently freezes at some point during its execution, though in a
  different spot each time, usually during a step when it's searching
  for some libraries. For instance, pcl most commonly stops after:

  [snip]
  -- Boost version: 1.46.1
  -- Found the following Boost libraries:
  --   system
  --   filesystem
  --   thread
  --   date_time
  -- checking for module 'eigen3'
  --   found eigen3, version 3.0.1

  which is perplexing because it freezes after finding what it wants,
  not during the search. When it does get past that point, it does so
  almost immediately but freezes somewhere else.

  I'm using 64-bit Ubuntu 11.10 with kernel release 3.0.0-16-generic
  with an Intel i5.

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

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

* [Qemu-devel] [Bug 955379] Re: cmake hangs with qemu-arm-static
  2012-03-14 19:23 [Qemu-devel] [Bug 955379] [NEW] cmake hangs with qemu-arm-static Tom Mullins
@ 2012-05-09 15:13 ` David Sugar
  2012-11-21 23:12 ` Ricardo Salveti
                   ` (64 subsequent siblings)
  65 siblings, 0 replies; 74+ messages in thread
From: David Sugar @ 2012-05-09 15:13 UTC (permalink / raw)
  To: qemu-devel

I have found several places cmake may hang, with either qemu-arm-static
or mipsel, and in debian (testing) as well as in Ubuntu.  One of them is
the cmake check for c++ compiler, which can be overridden.  Things that
use cmake's pkg_check_modules and pkg-config files will also hang.
Curiously, outside of cmake, equivs also will similarly hang if used.
All these things can make it very difficult to use qemu user static
driven chroot's or qemu pbuilder for pkg building at present.

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

Title:
  cmake hangs with qemu-arm-static

Status in QEMU:
  New

Bug description:
  I'm using git commit 3e7ecd976b06f... configured with --target-list
  =arm-linux-user --static in a chroot environment to compile some
  things. I ran into this problem with both pcl and opencv-2.3.1. cmake
  consistently freezes at some point during its execution, though in a
  different spot each time, usually during a step when it's searching
  for some libraries. For instance, pcl most commonly stops after:

  [snip]
  -- Boost version: 1.46.1
  -- Found the following Boost libraries:
  --   system
  --   filesystem
  --   thread
  --   date_time
  -- checking for module 'eigen3'
  --   found eigen3, version 3.0.1

  which is perplexing because it freezes after finding what it wants,
  not during the search. When it does get past that point, it does so
  almost immediately but freezes somewhere else.

  I'm using 64-bit Ubuntu 11.10 with kernel release 3.0.0-16-generic
  with an Intel i5.

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

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

* [Qemu-devel] [Bug 955379] Re: cmake hangs with qemu-arm-static
  2012-03-14 19:23 [Qemu-devel] [Bug 955379] [NEW] cmake hangs with qemu-arm-static Tom Mullins
  2012-05-09 15:13 ` [Qemu-devel] [Bug 955379] " David Sugar
@ 2012-11-21 23:12 ` Ricardo Salveti
  2012-11-21 23:13 ` Tim Penhey
                   ` (63 subsequent siblings)
  65 siblings, 0 replies; 74+ messages in thread
From: Ricardo Salveti @ 2012-11-21 23:12 UTC (permalink / raw)
  To: qemu-devel

** Also affects: qemu-linaro
   Importance: Undecided
       Status: New

** Also affects: qemu-linaro (Ubuntu)
   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/955379

Title:
  cmake hangs with qemu-arm-static

Status in QEMU:
  New
Status in Linaro QEMU:
  New
Status in “qemu-linaro” package in Ubuntu:
  New

Bug description:
  I'm using git commit 3e7ecd976b06f... configured with --target-list
  =arm-linux-user --static in a chroot environment to compile some
  things. I ran into this problem with both pcl and opencv-2.3.1. cmake
  consistently freezes at some point during its execution, though in a
  different spot each time, usually during a step when it's searching
  for some libraries. For instance, pcl most commonly stops after:

  [snip]
  -- Boost version: 1.46.1
  -- Found the following Boost libraries:
  --   system
  --   filesystem
  --   thread
  --   date_time
  -- checking for module 'eigen3'
  --   found eigen3, version 3.0.1

  which is perplexing because it freezes after finding what it wants,
  not during the search. When it does get past that point, it does so
  almost immediately but freezes somewhere else.

  I'm using 64-bit Ubuntu 11.10 with kernel release 3.0.0-16-generic
  with an Intel i5.

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

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

* [Qemu-devel] [Bug 955379] Re: cmake hangs with qemu-arm-static
  2012-03-14 19:23 [Qemu-devel] [Bug 955379] [NEW] cmake hangs with qemu-arm-static Tom Mullins
  2012-05-09 15:13 ` [Qemu-devel] [Bug 955379] " David Sugar
  2012-11-21 23:12 ` Ricardo Salveti
@ 2012-11-21 23:13 ` Tim Penhey
  2012-11-21 23:13 ` Ricardo Salveti
                   ` (62 subsequent siblings)
  65 siblings, 0 replies; 74+ messages in thread
From: Tim Penhey @ 2012-11-21 23:13 UTC (permalink / raw)
  To: qemu-devel

I am also having this issue with latest qemu on quantal using an armhf
chroot.

cmake will occasionally finish, but mostly it just hangs, most often in
the pkg_check bits.

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

Title:
  cmake hangs with qemu-arm-static

Status in QEMU:
  New
Status in Linaro QEMU:
  New
Status in “qemu-linaro” package in Ubuntu:
  New

Bug description:
  I'm using git commit 3e7ecd976b06f... configured with --target-list
  =arm-linux-user --static in a chroot environment to compile some
  things. I ran into this problem with both pcl and opencv-2.3.1. cmake
  consistently freezes at some point during its execution, though in a
  different spot each time, usually during a step when it's searching
  for some libraries. For instance, pcl most commonly stops after:

  [snip]
  -- Boost version: 1.46.1
  -- Found the following Boost libraries:
  --   system
  --   filesystem
  --   thread
  --   date_time
  -- checking for module 'eigen3'
  --   found eigen3, version 3.0.1

  which is perplexing because it freezes after finding what it wants,
  not during the search. When it does get past that point, it does so
  almost immediately but freezes somewhere else.

  I'm using 64-bit Ubuntu 11.10 with kernel release 3.0.0-16-generic
  with an Intel i5.

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

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

* [Qemu-devel] [Bug 955379] Re: cmake hangs with qemu-arm-static
  2012-03-14 19:23 [Qemu-devel] [Bug 955379] [NEW] cmake hangs with qemu-arm-static Tom Mullins
                   ` (2 preceding siblings ...)
  2012-11-21 23:13 ` Tim Penhey
@ 2012-11-21 23:13 ` Ricardo Salveti
  2012-11-22  9:25 ` Peter Maydell
                   ` (61 subsequent siblings)
  65 siblings, 0 replies; 74+ messages in thread
From: Ricardo Salveti @ 2012-11-21 23:13 UTC (permalink / raw)
  To: qemu-devel

I can confirm that this is still an issue even with latest qemu-linaro,
from Quantal (1.2.0-2012.09-0ubuntu1).

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

Title:
  cmake hangs with qemu-arm-static

Status in QEMU:
  New
Status in Linaro QEMU:
  New
Status in “qemu-linaro” package in Ubuntu:
  New

Bug description:
  I'm using git commit 3e7ecd976b06f... configured with --target-list
  =arm-linux-user --static in a chroot environment to compile some
  things. I ran into this problem with both pcl and opencv-2.3.1. cmake
  consistently freezes at some point during its execution, though in a
  different spot each time, usually during a step when it's searching
  for some libraries. For instance, pcl most commonly stops after:

  [snip]
  -- Boost version: 1.46.1
  -- Found the following Boost libraries:
  --   system
  --   filesystem
  --   thread
  --   date_time
  -- checking for module 'eigen3'
  --   found eigen3, version 3.0.1

  which is perplexing because it freezes after finding what it wants,
  not during the search. When it does get past that point, it does so
  almost immediately but freezes somewhere else.

  I'm using 64-bit Ubuntu 11.10 with kernel release 3.0.0-16-generic
  with an Intel i5.

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

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

* [Qemu-devel] [Bug 955379] Re: cmake hangs with qemu-arm-static
  2012-03-14 19:23 [Qemu-devel] [Bug 955379] [NEW] cmake hangs with qemu-arm-static Tom Mullins
                   ` (3 preceding siblings ...)
  2012-11-21 23:13 ` Ricardo Salveti
@ 2012-11-22  9:25 ` Peter Maydell
  2012-11-23 11:20 ` Launchpad Bug Tracker
                   ` (60 subsequent siblings)
  65 siblings, 0 replies; 74+ messages in thread
From: Peter Maydell @ 2012-11-22  9:25 UTC (permalink / raw)
  To: qemu-devel

If you can provide a simple straightforward reproduce case that would be
useful.

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

Title:
  cmake hangs with qemu-arm-static

Status in QEMU:
  New
Status in Linaro QEMU:
  New
Status in “qemu-linaro” package in Ubuntu:
  New

Bug description:
  I'm using git commit 3e7ecd976b06f... configured with --target-list
  =arm-linux-user --static in a chroot environment to compile some
  things. I ran into this problem with both pcl and opencv-2.3.1. cmake
  consistently freezes at some point during its execution, though in a
  different spot each time, usually during a step when it's searching
  for some libraries. For instance, pcl most commonly stops after:

  [snip]
  -- Boost version: 1.46.1
  -- Found the following Boost libraries:
  --   system
  --   filesystem
  --   thread
  --   date_time
  -- checking for module 'eigen3'
  --   found eigen3, version 3.0.1

  which is perplexing because it freezes after finding what it wants,
  not during the search. When it does get past that point, it does so
  almost immediately but freezes somewhere else.

  I'm using 64-bit Ubuntu 11.10 with kernel release 3.0.0-16-generic
  with an Intel i5.

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

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

* [Qemu-devel] [Bug 955379] Re: cmake hangs with qemu-arm-static
  2012-03-14 19:23 [Qemu-devel] [Bug 955379] [NEW] cmake hangs with qemu-arm-static Tom Mullins
                   ` (4 preceding siblings ...)
  2012-11-22  9:25 ` Peter Maydell
@ 2012-11-23 11:20 ` Launchpad Bug Tracker
  2012-11-25 20:40 ` Tim Penhey
                   ` (59 subsequent siblings)
  65 siblings, 0 replies; 74+ messages in thread
From: Launchpad Bug Tracker @ 2012-11-23 11:20 UTC (permalink / raw)
  To: qemu-devel

Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: qemu-linaro (Ubuntu)
       Status: New => Confirmed

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

Title:
  cmake hangs with qemu-arm-static

Status in QEMU:
  New
Status in Linaro QEMU:
  New
Status in “qemu-linaro” package in Ubuntu:
  Confirmed

Bug description:
  I'm using git commit 3e7ecd976b06f... configured with --target-list
  =arm-linux-user --static in a chroot environment to compile some
  things. I ran into this problem with both pcl and opencv-2.3.1. cmake
  consistently freezes at some point during its execution, though in a
  different spot each time, usually during a step when it's searching
  for some libraries. For instance, pcl most commonly stops after:

  [snip]
  -- Boost version: 1.46.1
  -- Found the following Boost libraries:
  --   system
  --   filesystem
  --   thread
  --   date_time
  -- checking for module 'eigen3'
  --   found eigen3, version 3.0.1

  which is perplexing because it freezes after finding what it wants,
  not during the search. When it does get past that point, it does so
  almost immediately but freezes somewhere else.

  I'm using 64-bit Ubuntu 11.10 with kernel release 3.0.0-16-generic
  with an Intel i5.

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

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

* [Qemu-devel] [Bug 955379] Re: cmake hangs with qemu-arm-static
  2012-03-14 19:23 [Qemu-devel] [Bug 955379] [NEW] cmake hangs with qemu-arm-static Tom Mullins
                   ` (5 preceding siblings ...)
  2012-11-23 11:20 ` Launchpad Bug Tracker
@ 2012-11-25 20:40 ` Tim Penhey
  2012-11-25 21:35   ` Peter Maydell
  2012-11-28  8:42 ` Janne Karhunen
                   ` (58 subsequent siblings)
  65 siblings, 1 reply; 74+ messages in thread
From: Tim Penhey @ 2012-11-25 20:40 UTC (permalink / raw)
  To: qemu-devel

Peter, if you try to run the cmake file for lp:unity you should hit it.

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

Title:
  cmake hangs with qemu-arm-static

Status in QEMU:
  New
Status in Linaro QEMU:
  New
Status in “qemu-linaro” package in Ubuntu:
  Confirmed

Bug description:
  I'm using git commit 3e7ecd976b06f... configured with --target-list
  =arm-linux-user --static in a chroot environment to compile some
  things. I ran into this problem with both pcl and opencv-2.3.1. cmake
  consistently freezes at some point during its execution, though in a
  different spot each time, usually during a step when it's searching
  for some libraries. For instance, pcl most commonly stops after:

  [snip]
  -- Boost version: 1.46.1
  -- Found the following Boost libraries:
  --   system
  --   filesystem
  --   thread
  --   date_time
  -- checking for module 'eigen3'
  --   found eigen3, version 3.0.1

  which is perplexing because it freezes after finding what it wants,
  not during the search. When it does get past that point, it does so
  almost immediately but freezes somewhere else.

  I'm using 64-bit Ubuntu 11.10 with kernel release 3.0.0-16-generic
  with an Intel i5.

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

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

* Re: [Qemu-devel] [Bug 955379] Re: cmake hangs with qemu-arm-static
  2012-11-25 20:40 ` Tim Penhey
@ 2012-11-25 21:35   ` Peter Maydell
  0 siblings, 0 replies; 74+ messages in thread
From: Peter Maydell @ 2012-11-25 21:35 UTC (permalink / raw)
  To: Bug 955379; +Cc: qemu-devel

On 25 November 2012 20:40, Tim Penhey <tim.penhey@canonical.com> wrote:
> Peter, if you try to run the cmake file for lp:unity you should hit it.

I'm afraid that's way too little detail. Assume I know nothing about
launchpad, cmake or unity, and give me a set of instructions I
can run on a machine which isn't necessarily running ubuntu to
reproduce this, preferably with as small and limited a repro case
as possible. At least, it should be a command line that starts
out "qemu <some stuff>"...

thanks
-- PMM

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

* [Qemu-devel] [Bug 955379] Re: cmake hangs with qemu-arm-static
  2012-03-14 19:23 [Qemu-devel] [Bug 955379] [NEW] cmake hangs with qemu-arm-static Tom Mullins
                   ` (6 preceding siblings ...)
  2012-11-25 20:40 ` Tim Penhey
@ 2012-11-28  8:42 ` Janne Karhunen
  2012-11-28  9:02   ` Peter Maydell
  2012-11-29  9:34 ` Janne Karhunen
                   ` (57 subsequent siblings)
  65 siblings, 1 reply; 74+ messages in thread
From: Janne Karhunen @ 2012-11-28  8:42 UTC (permalink / raw)
  To: qemu-devel

Peter, I have qemu chrootable test case under which you could fire one
command to hit the bug reliably. Only issue is, are you willing to take
a peek at 100M extractable tarball? If not, I'll try to create a smaller
one.

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

Title:
  cmake hangs with qemu-arm-static

Status in QEMU:
  New
Status in Linaro QEMU:
  New
Status in “qemu-linaro” package in Ubuntu:
  Confirmed

Bug description:
  I'm using git commit 3e7ecd976b06f... configured with --target-list
  =arm-linux-user --static in a chroot environment to compile some
  things. I ran into this problem with both pcl and opencv-2.3.1. cmake
  consistently freezes at some point during its execution, though in a
  different spot each time, usually during a step when it's searching
  for some libraries. For instance, pcl most commonly stops after:

  [snip]
  -- Boost version: 1.46.1
  -- Found the following Boost libraries:
  --   system
  --   filesystem
  --   thread
  --   date_time
  -- checking for module 'eigen3'
  --   found eigen3, version 3.0.1

  which is perplexing because it freezes after finding what it wants,
  not during the search. When it does get past that point, it does so
  almost immediately but freezes somewhere else.

  I'm using 64-bit Ubuntu 11.10 with kernel release 3.0.0-16-generic
  with an Intel i5.

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

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

* Re: [Qemu-devel] [Bug 955379] Re: cmake hangs with qemu-arm-static
  2012-11-28  8:42 ` Janne Karhunen
@ 2012-11-28  9:02   ` Peter Maydell
  0 siblings, 0 replies; 74+ messages in thread
From: Peter Maydell @ 2012-11-28  9:02 UTC (permalink / raw)
  To: Bug 955379; +Cc: qemu-devel

On 28 November 2012 08:42, Janne Karhunen <955379@bugs.launchpad.net> wrote:
> Peter, I have qemu chrootable test case under which you could fire one
> command to hit the bug reliably. Only issue is, are you willing to take
> a peek at 100M extractable tarball? If not, I'll try to create a smaller
> one.

Yeah, 100M repro case tarball is manageable.

-- PMM

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

* [Qemu-devel] [Bug 955379] Re: cmake hangs with qemu-arm-static
  2012-03-14 19:23 [Qemu-devel] [Bug 955379] [NEW] cmake hangs with qemu-arm-static Tom Mullins
                   ` (7 preceding siblings ...)
  2012-11-28  8:42 ` Janne Karhunen
@ 2012-11-29  9:34 ` Janne Karhunen
  2012-11-29  9:40 ` Janne Karhunen
                   ` (56 subsequent siblings)
  65 siblings, 0 replies; 74+ messages in thread
From: Janne Karhunen @ 2012-11-29  9:34 UTC (permalink / raw)
  To: qemu-devel

Ok, test case attached (80M tar). This hugely stripped one is not 100% reproducer, but do few loops and you will hit it. Instructions for using:
- extract, chroot
- cd /home/abuild/rpmbuild
- su abuild
- export RPM_BUILD_ROOT=$PWD
- rpmbuild -ba SOURCES/libshortcut.spec


** Attachment added: "Tizen chroot"
   https://bugs.launchpad.net/qemu/+bug/955379/+attachment/3446633/+files/root5-small.tar.bz2

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

Title:
  cmake hangs with qemu-arm-static

Status in QEMU:
  New
Status in Linaro QEMU:
  New
Status in “qemu-linaro” package in Ubuntu:
  Confirmed

Bug description:
  I'm using git commit 3e7ecd976b06f... configured with --target-list
  =arm-linux-user --static in a chroot environment to compile some
  things. I ran into this problem with both pcl and opencv-2.3.1. cmake
  consistently freezes at some point during its execution, though in a
  different spot each time, usually during a step when it's searching
  for some libraries. For instance, pcl most commonly stops after:

  [snip]
  -- Boost version: 1.46.1
  -- Found the following Boost libraries:
  --   system
  --   filesystem
  --   thread
  --   date_time
  -- checking for module 'eigen3'
  --   found eigen3, version 3.0.1

  which is perplexing because it freezes after finding what it wants,
  not during the search. When it does get past that point, it does so
  almost immediately but freezes somewhere else.

  I'm using 64-bit Ubuntu 11.10 with kernel release 3.0.0-16-generic
  with an Intel i5.

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

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

* [Qemu-devel] [Bug 955379] Re: cmake hangs with qemu-arm-static
  2012-03-14 19:23 [Qemu-devel] [Bug 955379] [NEW] cmake hangs with qemu-arm-static Tom Mullins
                   ` (8 preceding siblings ...)
  2012-11-29  9:34 ` Janne Karhunen
@ 2012-11-29  9:40 ` Janne Karhunen
  2012-11-30 15:56 ` Peter Maydell
                   ` (55 subsequent siblings)
  65 siblings, 0 replies; 74+ messages in thread
From: Janne Karhunen @ 2012-11-29  9:40 UTC (permalink / raw)
  To: qemu-devel

Mind you, when you hit the bug it just hangs and cmake test errors are
just to speed up the process of hitting the bug (if cmake just fails you
did not hit the bug). Feel free to try with any qemu variant, they all
hang similarly when bug is hit. I think that root had some suse 1.2 one
inside.

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

Title:
  cmake hangs with qemu-arm-static

Status in QEMU:
  New
Status in Linaro QEMU:
  New
Status in “qemu-linaro” package in Ubuntu:
  Confirmed

Bug description:
  I'm using git commit 3e7ecd976b06f... configured with --target-list
  =arm-linux-user --static in a chroot environment to compile some
  things. I ran into this problem with both pcl and opencv-2.3.1. cmake
  consistently freezes at some point during its execution, though in a
  different spot each time, usually during a step when it's searching
  for some libraries. For instance, pcl most commonly stops after:

  [snip]
  -- Boost version: 1.46.1
  -- Found the following Boost libraries:
  --   system
  --   filesystem
  --   thread
  --   date_time
  -- checking for module 'eigen3'
  --   found eigen3, version 3.0.1

  which is perplexing because it freezes after finding what it wants,
  not during the search. When it does get past that point, it does so
  almost immediately but freezes somewhere else.

  I'm using 64-bit Ubuntu 11.10 with kernel release 3.0.0-16-generic
  with an Intel i5.

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

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

* [Qemu-devel] [Bug 955379] Re: cmake hangs with qemu-arm-static
  2012-03-14 19:23 [Qemu-devel] [Bug 955379] [NEW] cmake hangs with qemu-arm-static Tom Mullins
                   ` (9 preceding siblings ...)
  2012-11-29  9:40 ` Janne Karhunen
@ 2012-11-30 15:56 ` Peter Maydell
  2012-11-30 16:23 ` Janne Karhunen
                   ` (54 subsequent siblings)
  65 siblings, 0 replies; 74+ messages in thread
From: Peter Maydell @ 2012-11-30 15:56 UTC (permalink / raw)
  To: qemu-devel

That test case seems to have very weak reproducibility -- I think I saw
a hang perhaps once in 30+ runs. That's not really usable for debugging,
I'm afraid :-(

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

Title:
  cmake hangs with qemu-arm-static

Status in QEMU:
  New
Status in Linaro QEMU:
  New
Status in “qemu-linaro” package in Ubuntu:
  Confirmed

Bug description:
  I'm using git commit 3e7ecd976b06f... configured with --target-list
  =arm-linux-user --static in a chroot environment to compile some
  things. I ran into this problem with both pcl and opencv-2.3.1. cmake
  consistently freezes at some point during its execution, though in a
  different spot each time, usually during a step when it's searching
  for some libraries. For instance, pcl most commonly stops after:

  [snip]
  -- Boost version: 1.46.1
  -- Found the following Boost libraries:
  --   system
  --   filesystem
  --   thread
  --   date_time
  -- checking for module 'eigen3'
  --   found eigen3, version 3.0.1

  which is perplexing because it freezes after finding what it wants,
  not during the search. When it does get past that point, it does so
  almost immediately but freezes somewhere else.

  I'm using 64-bit Ubuntu 11.10 with kernel release 3.0.0-16-generic
  with an Intel i5.

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

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

* [Qemu-devel] [Bug 955379] Re: cmake hangs with qemu-arm-static
  2012-03-14 19:23 [Qemu-devel] [Bug 955379] [NEW] cmake hangs with qemu-arm-static Tom Mullins
                   ` (10 preceding siblings ...)
  2012-11-30 15:56 ` Peter Maydell
@ 2012-11-30 16:23 ` Janne Karhunen
  2012-11-30 16:38 ` Peter Maydell
                   ` (53 subsequent siblings)
  65 siblings, 0 replies; 74+ messages in thread
From: Janne Karhunen @ 2012-11-30 16:23 UTC (permalink / raw)
  To: qemu-devel

If that is the case for you (for me it reproduces it every 4-5 runs or so), there are two options:
1) put while(true) loop around the rpmbuild and you will hit it always, or
2) I can wrap up a bit bigger cmake usecase that systematically hits it. Warn you though, size will jump to 200M.

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

Title:
  cmake hangs with qemu-arm-static

Status in QEMU:
  New
Status in Linaro QEMU:
  New
Status in “qemu-linaro” package in Ubuntu:
  Confirmed

Bug description:
  I'm using git commit 3e7ecd976b06f... configured with --target-list
  =arm-linux-user --static in a chroot environment to compile some
  things. I ran into this problem with both pcl and opencv-2.3.1. cmake
  consistently freezes at some point during its execution, though in a
  different spot each time, usually during a step when it's searching
  for some libraries. For instance, pcl most commonly stops after:

  [snip]
  -- Boost version: 1.46.1
  -- Found the following Boost libraries:
  --   system
  --   filesystem
  --   thread
  --   date_time
  -- checking for module 'eigen3'
  --   found eigen3, version 3.0.1

  which is perplexing because it freezes after finding what it wants,
  not during the search. When it does get past that point, it does so
  almost immediately but freezes somewhere else.

  I'm using 64-bit Ubuntu 11.10 with kernel release 3.0.0-16-generic
  with an Intel i5.

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

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

* [Qemu-devel] [Bug 955379] Re: cmake hangs with qemu-arm-static
  2012-03-14 19:23 [Qemu-devel] [Bug 955379] [NEW] cmake hangs with qemu-arm-static Tom Mullins
                   ` (11 preceding siblings ...)
  2012-11-30 16:23 ` Janne Karhunen
@ 2012-11-30 16:38 ` Peter Maydell
  2012-11-30 17:17 ` Peter Maydell
                   ` (52 subsequent siblings)
  65 siblings, 0 replies; 74+ messages in thread
From: Peter Maydell @ 2012-11-30 16:38 UTC (permalink / raw)
  To: qemu-devel

I'll take the bigger usecase, please. It's pretty hard to debug race
conditions that don't manifest often enough to let you do useful
logging.

>From the time or two I caught it hanging, it looks like qemu is sleeping in poll, and there's a zombie child process. I wonder if what's happening is that the SIGCHLD is coming in just before syscall.c executes the poll syscall, so that qemu queues the signal for delivery to the guest (but never actually delivers it) and then enters a poll syscall that won't return (because the SIGCHLD has already arrived). If so, fixing this would require the significant redesign sketched out here:
http://lists.gnu.org/archive/html/qemu-devel/2011-12/msg00384.html

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

Title:
  cmake hangs with qemu-arm-static

Status in QEMU:
  New
Status in Linaro QEMU:
  New
Status in “qemu-linaro” package in Ubuntu:
  Confirmed

Bug description:
  I'm using git commit 3e7ecd976b06f... configured with --target-list
  =arm-linux-user --static in a chroot environment to compile some
  things. I ran into this problem with both pcl and opencv-2.3.1. cmake
  consistently freezes at some point during its execution, though in a
  different spot each time, usually during a step when it's searching
  for some libraries. For instance, pcl most commonly stops after:

  [snip]
  -- Boost version: 1.46.1
  -- Found the following Boost libraries:
  --   system
  --   filesystem
  --   thread
  --   date_time
  -- checking for module 'eigen3'
  --   found eigen3, version 3.0.1

  which is perplexing because it freezes after finding what it wants,
  not during the search. When it does get past that point, it does so
  almost immediately but freezes somewhere else.

  I'm using 64-bit Ubuntu 11.10 with kernel release 3.0.0-16-generic
  with an Intel i5.

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

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

* [Qemu-devel] [Bug 955379] Re: cmake hangs with qemu-arm-static
  2012-03-14 19:23 [Qemu-devel] [Bug 955379] [NEW] cmake hangs with qemu-arm-static Tom Mullins
                   ` (12 preceding siblings ...)
  2012-11-30 16:38 ` Peter Maydell
@ 2012-11-30 17:17 ` Peter Maydell
  2012-12-01 10:29 ` Janne Karhunen
                   ` (51 subsequent siblings)
  65 siblings, 0 replies; 74+ messages in thread
From: Peter Maydell @ 2012-11-30 17:17 UTC (permalink / raw)
  To: qemu-devel

Actually I just managed to interact with a hung qemu under a debugger
sufficiently to confirm what is happening here.

CMake's code for running child processes (in kwsys/ProcessUNIX.c) does this:
"On UNIX, a child process is forked to exec the program.  Three output pipes are read by the parent process using a select call to block until data are ready.  Two of the pipes are stdout and stderr for the child.  The third is a special pipe populated by a signal handler to indicate that a child has terminated.  This is used in conjunction with the timeout on the select call to implement a timeout for program even when it closes stdout and stderr and at the same time avoiding races."

So (assuming no timeout set up) we can get the following race:
 * spawn child process
 * parent gets to point of making select() syscall
 * this takes the parent process into qemu's linux-user/main.c code
 * child process exits
 * host kernel sends SIGCHLD to parent
 * qemu's signal handler queues this SIGCHLD and does a cpu_exit, which will make the parent take the signal at the next basic block
 * parent code (still inside main.c or syscall.c) does the actual host select() syscall
 * this blocks forever, because the thing that would wake it up is the signal handler writing to the pipe we're selecting on, but we will never run the signal handler until select exits

Fixing this bug will indeed require the significant rework I referred to
in comment #14, I'm afraid. Don't hold your breath...

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

Title:
  cmake hangs with qemu-arm-static

Status in QEMU:
  New
Status in Linaro QEMU:
  New
Status in “qemu-linaro” package in Ubuntu:
  Confirmed

Bug description:
  I'm using git commit 3e7ecd976b06f... configured with --target-list
  =arm-linux-user --static in a chroot environment to compile some
  things. I ran into this problem with both pcl and opencv-2.3.1. cmake
  consistently freezes at some point during its execution, though in a
  different spot each time, usually during a step when it's searching
  for some libraries. For instance, pcl most commonly stops after:

  [snip]
  -- Boost version: 1.46.1
  -- Found the following Boost libraries:
  --   system
  --   filesystem
  --   thread
  --   date_time
  -- checking for module 'eigen3'
  --   found eigen3, version 3.0.1

  which is perplexing because it freezes after finding what it wants,
  not during the search. When it does get past that point, it does so
  almost immediately but freezes somewhere else.

  I'm using 64-bit Ubuntu 11.10 with kernel release 3.0.0-16-generic
  with an Intel i5.

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

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

* [Qemu-devel] [Bug 955379] Re: cmake hangs with qemu-arm-static
  2012-03-14 19:23 [Qemu-devel] [Bug 955379] [NEW] cmake hangs with qemu-arm-static Tom Mullins
                   ` (13 preceding siblings ...)
  2012-11-30 17:17 ` Peter Maydell
@ 2012-12-01 10:29 ` Janne Karhunen
  2012-12-01 11:27   ` Peter Maydell
  2012-12-02 13:03 ` Peter Maydell
                   ` (50 subsequent siblings)
  65 siblings, 1 reply; 74+ messages in thread
From: Janne Karhunen @ 2012-12-01 10:29 UTC (permalink / raw)
  To: qemu-devel

> this blocks forever, because the thing that would wake it up is the
signal handler writing to the pipe we're selecting on, but we will never
run the signal handler until select exits

Duh, makes sense, have to think about this. Thank you for great analysis
:)

Apparently have to dig into qemu's code to understand this better, but
first thought was that do you think it would be possible to add some
crude hack bit in qemu's signal handler which we could 'almost
atomically' check prior to entering system poll/select/read/whatnot ?
This bit would tell there are user signals queued and handlers should be
executed first.. ?

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

Title:
  cmake hangs with qemu-arm-static

Status in QEMU:
  New
Status in Linaro QEMU:
  New
Status in “qemu-linaro” package in Ubuntu:
  Confirmed

Bug description:
  I'm using git commit 3e7ecd976b06f... configured with --target-list
  =arm-linux-user --static in a chroot environment to compile some
  things. I ran into this problem with both pcl and opencv-2.3.1. cmake
  consistently freezes at some point during its execution, though in a
  different spot each time, usually during a step when it's searching
  for some libraries. For instance, pcl most commonly stops after:

  [snip]
  -- Boost version: 1.46.1
  -- Found the following Boost libraries:
  --   system
  --   filesystem
  --   thread
  --   date_time
  -- checking for module 'eigen3'
  --   found eigen3, version 3.0.1

  which is perplexing because it freezes after finding what it wants,
  not during the search. When it does get past that point, it does so
  almost immediately but freezes somewhere else.

  I'm using 64-bit Ubuntu 11.10 with kernel release 3.0.0-16-generic
  with an Intel i5.

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

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

* Re: [Qemu-devel] [Bug 955379] Re: cmake hangs with qemu-arm-static
  2012-12-01 10:29 ` Janne Karhunen
@ 2012-12-01 11:27   ` Peter Maydell
  2012-12-03 21:20     ` Alexander Graf
  0 siblings, 1 reply; 74+ messages in thread
From: Peter Maydell @ 2012-12-01 11:27 UTC (permalink / raw)
  To: Bug 955379; +Cc: qemu-devel

On 1 December 2012 10:29, Janne Karhunen <955379@bugs.launchpad.net> wrote:
>> this blocks forever, because the thing that would wake it up is the
> signal handler writing to the pipe we're selecting on, but we will never
> run the signal handler until select exits
>
> Duh, makes sense, have to think about this. Thank you for great analysis
> :)
>
> Apparently have to dig into qemu's code to understand this better, but
> first thought was that do you think it would be possible to add some
> crude hack bit in qemu's signal handler which we could 'almost
> atomically' check prior to entering system poll/select/read/whatnot ?
> This bit would tell there are user signals queued and handlers should be
> executed first.. ?

Nope, it's still not going to be non-racy that way (and it would still
be a pretty invasive change so it doesn't really make it easier either
I think).

-- PMM

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

* [Qemu-devel] [Bug 955379] Re: cmake hangs with qemu-arm-static
  2012-03-14 19:23 [Qemu-devel] [Bug 955379] [NEW] cmake hangs with qemu-arm-static Tom Mullins
                   ` (14 preceding siblings ...)
  2012-12-01 10:29 ` Janne Karhunen
@ 2012-12-02 13:03 ` Peter Maydell
  2012-12-04  6:41 ` Janne Karhunen
                   ` (49 subsequent siblings)
  65 siblings, 0 replies; 74+ messages in thread
From: Peter Maydell @ 2012-12-02 13:03 UTC (permalink / raw)
  To: qemu-devel

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

** Changed in: qemu-linaro
       Status: New => Confirmed

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

Title:
  cmake hangs with qemu-arm-static

Status in QEMU:
  Confirmed
Status in Linaro QEMU:
  Confirmed
Status in “qemu-linaro” package in Ubuntu:
  Confirmed

Bug description:
  I'm using git commit 3e7ecd976b06f... configured with --target-list
  =arm-linux-user --static in a chroot environment to compile some
  things. I ran into this problem with both pcl and opencv-2.3.1. cmake
  consistently freezes at some point during its execution, though in a
  different spot each time, usually during a step when it's searching
  for some libraries. For instance, pcl most commonly stops after:

  [snip]
  -- Boost version: 1.46.1
  -- Found the following Boost libraries:
  --   system
  --   filesystem
  --   thread
  --   date_time
  -- checking for module 'eigen3'
  --   found eigen3, version 3.0.1

  which is perplexing because it freezes after finding what it wants,
  not during the search. When it does get past that point, it does so
  almost immediately but freezes somewhere else.

  I'm using 64-bit Ubuntu 11.10 with kernel release 3.0.0-16-generic
  with an Intel i5.

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

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

* Re: [Qemu-devel] [Bug 955379] Re: cmake hangs with qemu-arm-static
  2012-12-01 11:27   ` Peter Maydell
@ 2012-12-03 21:20     ` Alexander Graf
  2012-12-03 21:57       ` Peter Maydell
  0 siblings, 1 reply; 74+ messages in thread
From: Alexander Graf @ 2012-12-03 21:20 UTC (permalink / raw)
  To: Peter Maydell; +Cc: qemu-devel, Bug 955379


On 01.12.2012, at 12:27, Peter Maydell wrote:

> On 1 December 2012 10:29, Janne Karhunen <955379@bugs.launchpad.net> wrote:
>>> this blocks forever, because the thing that would wake it up is the
>> signal handler writing to the pipe we're selecting on, but we will never
>> run the signal handler until select exits
>> 
>> Duh, makes sense, have to think about this. Thank you for great analysis
>> :)
>> 
>> Apparently have to dig into qemu's code to understand this better, but
>> first thought was that do you think it would be possible to add some
>> crude hack bit in qemu's signal handler which we could 'almost
>> atomically' check prior to entering system poll/select/read/whatnot ?
>> This bit would tell there are user signals queued and handlers should be
>> executed first.. ?
> 
> Nope, it's still not going to be non-racy that way (and it would still
> be a pretty invasive change so it doesn't really make it easier either
> I think).

Could you please try and see if this patch makes a difference?

http://repo.or.cz/w/qemu/agraf.git/patch/489924aa0115dc6cfcd4e91b0747da4ff8425d1f


Alex

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

* Re: [Qemu-devel] [Bug 955379] Re: cmake hangs with qemu-arm-static
  2012-12-03 21:20     ` Alexander Graf
@ 2012-12-03 21:57       ` Peter Maydell
  0 siblings, 0 replies; 74+ messages in thread
From: Peter Maydell @ 2012-12-03 21:57 UTC (permalink / raw)
  To: Alexander Graf; +Cc: qemu-devel, Bug 955379

On 3 December 2012 21:20, Alexander Graf <agraf@suse.de> wrote:
> Could you please try and see if this patch makes a difference?
>
> http://repo.or.cz/w/qemu/agraf.git/patch/489924aa0115dc6cfcd4e91b0747da4ff8425d1f

I think the answer will turn out to be "no" (though it's worth
testing anyway), because the syscall we're blocking in in this
case is select(), which is a syscall which will exit when a
signal arrives anyway. That is, I think we're really hitting
the race condition of the signal arriving while we're in QEMU's
C code, rather than the stuck-in-blocking-syscall of the boehm
GC case.

-- PMM

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

* [Qemu-devel] [Bug 955379] Re: cmake hangs with qemu-arm-static
  2012-03-14 19:23 [Qemu-devel] [Bug 955379] [NEW] cmake hangs with qemu-arm-static Tom Mullins
                   ` (15 preceding siblings ...)
  2012-12-02 13:03 ` Peter Maydell
@ 2012-12-04  6:41 ` Janne Karhunen
  2012-12-04  9:32 ` Peter Maydell
                   ` (48 subsequent siblings)
  65 siblings, 0 replies; 74+ messages in thread
From: Janne Karhunen @ 2012-12-04  6:41 UTC (permalink / raw)
  To: qemu-devel

So I guess 'raciness' of my proposed patch would only depend on how
small I could squeeze the section between 'sigpending' flag comparison
and actual syscall entering?

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

Title:
  cmake hangs with qemu-arm-static

Status in QEMU:
  Confirmed
Status in Linaro QEMU:
  Confirmed
Status in “qemu-linaro” package in Ubuntu:
  Confirmed

Bug description:
  I'm using git commit 3e7ecd976b06f... configured with --target-list
  =arm-linux-user --static in a chroot environment to compile some
  things. I ran into this problem with both pcl and opencv-2.3.1. cmake
  consistently freezes at some point during its execution, though in a
  different spot each time, usually during a step when it's searching
  for some libraries. For instance, pcl most commonly stops after:

  [snip]
  -- Boost version: 1.46.1
  -- Found the following Boost libraries:
  --   system
  --   filesystem
  --   thread
  --   date_time
  -- checking for module 'eigen3'
  --   found eigen3, version 3.0.1

  which is perplexing because it freezes after finding what it wants,
  not during the search. When it does get past that point, it does so
  almost immediately but freezes somewhere else.

  I'm using 64-bit Ubuntu 11.10 with kernel release 3.0.0-16-generic
  with an Intel i5.

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

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

* [Qemu-devel] [Bug 955379] Re: cmake hangs with qemu-arm-static
  2012-03-14 19:23 [Qemu-devel] [Bug 955379] [NEW] cmake hangs with qemu-arm-static Tom Mullins
                   ` (16 preceding siblings ...)
  2012-12-04  6:41 ` Janne Karhunen
@ 2012-12-04  9:32 ` Peter Maydell
  2012-12-04 11:21 ` Janne Karhunen
                   ` (47 subsequent siblings)
  65 siblings, 0 replies; 74+ messages in thread
From: Peter Maydell @ 2012-12-04  9:32 UTC (permalink / raw)
  To: qemu-devel

Yes. You can never shut the window completely trying to do it that way,
which is why you need fix the problem properly instead.

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

Title:
  cmake hangs with qemu-arm-static

Status in QEMU:
  Confirmed
Status in Linaro QEMU:
  Confirmed
Status in “qemu-linaro” package in Ubuntu:
  Confirmed

Bug description:
  I'm using git commit 3e7ecd976b06f... configured with --target-list
  =arm-linux-user --static in a chroot environment to compile some
  things. I ran into this problem with both pcl and opencv-2.3.1. cmake
  consistently freezes at some point during its execution, though in a
  different spot each time, usually during a step when it's searching
  for some libraries. For instance, pcl most commonly stops after:

  [snip]
  -- Boost version: 1.46.1
  -- Found the following Boost libraries:
  --   system
  --   filesystem
  --   thread
  --   date_time
  -- checking for module 'eigen3'
  --   found eigen3, version 3.0.1

  which is perplexing because it freezes after finding what it wants,
  not during the search. When it does get past that point, it does so
  almost immediately but freezes somewhere else.

  I'm using 64-bit Ubuntu 11.10 with kernel release 3.0.0-16-generic
  with an Intel i5.

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

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

* [Qemu-devel] [Bug 955379] Re: cmake hangs with qemu-arm-static
  2012-03-14 19:23 [Qemu-devel] [Bug 955379] [NEW] cmake hangs with qemu-arm-static Tom Mullins
                   ` (17 preceding siblings ...)
  2012-12-04  9:32 ` Peter Maydell
@ 2012-12-04 11:21 ` Janne Karhunen
  2012-12-04 11:39   ` Peter Maydell
  2012-12-04 11:43 ` Janne Karhunen
                   ` (46 subsequent siblings)
  65 siblings, 1 reply; 74+ messages in thread
From: Janne Karhunen @ 2012-12-04 11:21 UTC (permalink / raw)
  To: qemu-devel

And what would break if we make poll timeout instantly in case there are
signals pending and restart the given syscall after handlers run?

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

Title:
  cmake hangs with qemu-arm-static

Status in QEMU:
  Confirmed
Status in Linaro QEMU:
  Confirmed
Status in “qemu-linaro” package in Ubuntu:
  Confirmed

Bug description:
  I'm using git commit 3e7ecd976b06f... configured with --target-list
  =arm-linux-user --static in a chroot environment to compile some
  things. I ran into this problem with both pcl and opencv-2.3.1. cmake
  consistently freezes at some point during its execution, though in a
  different spot each time, usually during a step when it's searching
  for some libraries. For instance, pcl most commonly stops after:

  [snip]
  -- Boost version: 1.46.1
  -- Found the following Boost libraries:
  --   system
  --   filesystem
  --   thread
  --   date_time
  -- checking for module 'eigen3'
  --   found eigen3, version 3.0.1

  which is perplexing because it freezes after finding what it wants,
  not during the search. When it does get past that point, it does so
  almost immediately but freezes somewhere else.

  I'm using 64-bit Ubuntu 11.10 with kernel release 3.0.0-16-generic
  with an Intel i5.

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

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

* Re: [Qemu-devel] [Bug 955379] Re: cmake hangs with qemu-arm-static
  2012-12-04 11:21 ` Janne Karhunen
@ 2012-12-04 11:39   ` Peter Maydell
  0 siblings, 0 replies; 74+ messages in thread
From: Peter Maydell @ 2012-12-04 11:39 UTC (permalink / raw)
  To: Bug 955379; +Cc: qemu-devel

On 4 December 2012 11:21, Janne Karhunen <955379@bugs.launchpad.net> wrote:
> And what would break if we make poll timeout instantly in case there are
> signals pending and restart the given syscall after handlers run?

If there are signals pending in the host kernel poll will *already*
return immediately. If there is a signal pending in the QEMU signal
queue (because the host kernel just delivered it to us) then there
will always be a window between the point where you say "ok, queue
is empty" and actually doing the host syscall, where a signal could
be delivered and put in the queue. You cannot fix this bug in the way
you are trying to: you must handle this case by longjumping out of
the signal handler. I've already sketched the correct design for
fixing this.

[to anybody in the peanut gallery who is thinking about pselect()
now: yes, you could perhaps hack something up with that, but it would
still be a big patch with a bunch of corner cases to review, and
it would only fix this bug for this particular syscall, not in
general.]

-- PMM

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

* [Qemu-devel] [Bug 955379] Re: cmake hangs with qemu-arm-static
  2012-03-14 19:23 [Qemu-devel] [Bug 955379] [NEW] cmake hangs with qemu-arm-static Tom Mullins
                   ` (18 preceding siblings ...)
  2012-12-04 11:21 ` Janne Karhunen
@ 2012-12-04 11:43 ` Janne Karhunen
  2012-12-04 12:25 ` Janne Karhunen
                   ` (45 subsequent siblings)
  65 siblings, 0 replies; 74+ messages in thread
From: Janne Karhunen @ 2012-12-04 11:43 UTC (permalink / raw)
  To: qemu-devel

Moreover, is there even a need to restart anything, just make it async
call in case signals were pending?

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

Title:
  cmake hangs with qemu-arm-static

Status in QEMU:
  Confirmed
Status in Linaro QEMU:
  Confirmed
Status in “qemu-linaro” package in Ubuntu:
  Confirmed

Bug description:
  I'm using git commit 3e7ecd976b06f... configured with --target-list
  =arm-linux-user --static in a chroot environment to compile some
  things. I ran into this problem with both pcl and opencv-2.3.1. cmake
  consistently freezes at some point during its execution, though in a
  different spot each time, usually during a step when it's searching
  for some libraries. For instance, pcl most commonly stops after:

  [snip]
  -- Boost version: 1.46.1
  -- Found the following Boost libraries:
  --   system
  --   filesystem
  --   thread
  --   date_time
  -- checking for module 'eigen3'
  --   found eigen3, version 3.0.1

  which is perplexing because it freezes after finding what it wants,
  not during the search. When it does get past that point, it does so
  almost immediately but freezes somewhere else.

  I'm using 64-bit Ubuntu 11.10 with kernel release 3.0.0-16-generic
  with an Intel i5.

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

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

* [Qemu-devel] [Bug 955379] Re: cmake hangs with qemu-arm-static
  2012-03-14 19:23 [Qemu-devel] [Bug 955379] [NEW] cmake hangs with qemu-arm-static Tom Mullins
                   ` (19 preceding siblings ...)
  2012-12-04 11:43 ` Janne Karhunen
@ 2012-12-04 12:25 ` Janne Karhunen
  2012-12-05  9:03 ` Janne Karhunen
                   ` (44 subsequent siblings)
  65 siblings, 0 replies; 74+ messages in thread
From: Janne Karhunen @ 2012-12-04 12:25 UTC (permalink / raw)
  To: qemu-devel

Never mind, async/zero timeout call would suffer from same (albeit now
tiny) race. It would make this far less invasive as a change though.

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

Title:
  cmake hangs with qemu-arm-static

Status in QEMU:
  Confirmed
Status in Linaro QEMU:
  Confirmed
Status in “qemu-linaro” package in Ubuntu:
  Confirmed

Bug description:
  I'm using git commit 3e7ecd976b06f... configured with --target-list
  =arm-linux-user --static in a chroot environment to compile some
  things. I ran into this problem with both pcl and opencv-2.3.1. cmake
  consistently freezes at some point during its execution, though in a
  different spot each time, usually during a step when it's searching
  for some libraries. For instance, pcl most commonly stops after:

  [snip]
  -- Boost version: 1.46.1
  -- Found the following Boost libraries:
  --   system
  --   filesystem
  --   thread
  --   date_time
  -- checking for module 'eigen3'
  --   found eigen3, version 3.0.1

  which is perplexing because it freezes after finding what it wants,
  not during the search. When it does get past that point, it does so
  almost immediately but freezes somewhere else.

  I'm using 64-bit Ubuntu 11.10 with kernel release 3.0.0-16-generic
  with an Intel i5.

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

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

* [Qemu-devel] [Bug 955379] Re: cmake hangs with qemu-arm-static
  2012-03-14 19:23 [Qemu-devel] [Bug 955379] [NEW] cmake hangs with qemu-arm-static Tom Mullins
                   ` (20 preceding siblings ...)
  2012-12-04 12:25 ` Janne Karhunen
@ 2012-12-05  9:03 ` Janne Karhunen
  2012-12-05 11:29 ` Janne Karhunen
                   ` (43 subsequent siblings)
  65 siblings, 0 replies; 74+ messages in thread
From: Janne Karhunen @ 2012-12-05  9:03 UTC (permalink / raw)
  To: qemu-devel

Just out of interest tried how far the timeout hackery can go working
around the issue. Well, looks like it goes quite far: having previously
reproduced the hang in 4-5 runs and in under a minute, now have had this
running without a hang for an hour. I will also test the patch under OBS
worker(s) and if it solves the issue there as well, I will attach it as
a workaround for time being for those interested. However, Peter is
right and this is not a final solution of any kind: just a workaround.

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

Title:
  cmake hangs with qemu-arm-static

Status in QEMU:
  Confirmed
Status in Linaro QEMU:
  Confirmed
Status in “qemu-linaro” package in Ubuntu:
  Confirmed

Bug description:
  I'm using git commit 3e7ecd976b06f... configured with --target-list
  =arm-linux-user --static in a chroot environment to compile some
  things. I ran into this problem with both pcl and opencv-2.3.1. cmake
  consistently freezes at some point during its execution, though in a
  different spot each time, usually during a step when it's searching
  for some libraries. For instance, pcl most commonly stops after:

  [snip]
  -- Boost version: 1.46.1
  -- Found the following Boost libraries:
  --   system
  --   filesystem
  --   thread
  --   date_time
  -- checking for module 'eigen3'
  --   found eigen3, version 3.0.1

  which is perplexing because it freezes after finding what it wants,
  not during the search. When it does get past that point, it does so
  almost immediately but freezes somewhere else.

  I'm using 64-bit Ubuntu 11.10 with kernel release 3.0.0-16-generic
  with an Intel i5.

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

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

* [Qemu-devel] [Bug 955379] Re: cmake hangs with qemu-arm-static
  2012-03-14 19:23 [Qemu-devel] [Bug 955379] [NEW] cmake hangs with qemu-arm-static Tom Mullins
                   ` (21 preceding siblings ...)
  2012-12-05  9:03 ` Janne Karhunen
@ 2012-12-05 11:29 ` Janne Karhunen
  2012-12-05 12:19 ` Ubuntu Foundations Team Bug Bot
                   ` (42 subsequent siblings)
  65 siblings, 0 replies; 74+ messages in thread
From: Janne Karhunen @ 2012-12-05 11:29 UTC (permalink / raw)
  To: qemu-devel

Some kind of semi-workaround patch attached. It seems to leave this kind
of race window for me (for select which is worse):

   0x000000006004bf98 <+136>:   xor    %r8d,%r8d
   0x000000006004bf9b <+139>:   test   %eax,%eax
   0x000000006004bf9d <+141>:   jne    0x6004c2b7 <do_select+935>
   0x000000006004bfa3 <+147>:   mov    0x20(%rsp),%r14
   0x000000006004bfa8 <+152>:   mov    0x246d8(%r14),%esi
   0x000000006004bfaf <+159>:   test   %esi,%esi
   0x000000006004bfb1 <+161>:   je     0x6004bfb8 <do_select+168>
   0x000000006004bfb3 <+163>:   lea    0x40(%rsp),%r8
   0x000000006004bfb8 <+168>:   mov    0x28(%rsp),%rdx
   0x000000006004bfbd <+173>:   mov    %r11,%rsi
   0x000000006004bfc0 <+176>:   mov    %ebx,%edi
   0x000000006004bfc2 <+178>:   callq  0x6012df90 <select>

I think it could still be narrowed some, but this makes it unlikely
enough for me for time being...

** Patch added: "racy workaround patch"
   https://bugs.launchpad.net/qemu/+bug/955379/+attachment/3452139/+files/cmake.patch

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

Title:
  cmake hangs with qemu-arm-static

Status in QEMU:
  Confirmed
Status in Linaro QEMU:
  Confirmed
Status in “qemu-linaro” package in Ubuntu:
  Confirmed

Bug description:
  I'm using git commit 3e7ecd976b06f... configured with --target-list
  =arm-linux-user --static in a chroot environment to compile some
  things. I ran into this problem with both pcl and opencv-2.3.1. cmake
  consistently freezes at some point during its execution, though in a
  different spot each time, usually during a step when it's searching
  for some libraries. For instance, pcl most commonly stops after:

  [snip]
  -- Boost version: 1.46.1
  -- Found the following Boost libraries:
  --   system
  --   filesystem
  --   thread
  --   date_time
  -- checking for module 'eigen3'
  --   found eigen3, version 3.0.1

  which is perplexing because it freezes after finding what it wants,
  not during the search. When it does get past that point, it does so
  almost immediately but freezes somewhere else.

  I'm using 64-bit Ubuntu 11.10 with kernel release 3.0.0-16-generic
  with an Intel i5.

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

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

* [Qemu-devel] [Bug 955379] Re: cmake hangs with qemu-arm-static
  2012-03-14 19:23 [Qemu-devel] [Bug 955379] [NEW] cmake hangs with qemu-arm-static Tom Mullins
                   ` (22 preceding siblings ...)
  2012-12-05 11:29 ` Janne Karhunen
@ 2012-12-05 12:19 ` Ubuntu Foundations Team Bug Bot
  2013-01-18 12:10 ` Luke Kim
                   ` (41 subsequent siblings)
  65 siblings, 0 replies; 74+ messages in thread
From: Ubuntu Foundations Team Bug Bot @ 2012-12-05 12:19 UTC (permalink / raw)
  To: qemu-devel

The attachment "racy workaround patch" of this bug report has been
identified as being a patch.  The ubuntu-reviewers team has been
subscribed to the bug report so that they can review the patch.  In the
event that this is in fact not a patch you can resolve this situation by
removing the tag 'patch' from the bug report and editing the attachment
so that it is not flagged as a patch.  Additionally, if you are member
of the ubuntu-reviewers team please also unsubscribe the team from this
bug report.

[This is an automated message performed by a Launchpad user owned by
Brian Murray.  Please contact him regarding any issues with the action
taken in this bug report.]

** Tags added: patch

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

Title:
  cmake hangs with qemu-arm-static

Status in QEMU:
  Confirmed
Status in Linaro QEMU:
  Confirmed
Status in “qemu-linaro” package in Ubuntu:
  Confirmed

Bug description:
  I'm using git commit 3e7ecd976b06f... configured with --target-list
  =arm-linux-user --static in a chroot environment to compile some
  things. I ran into this problem with both pcl and opencv-2.3.1. cmake
  consistently freezes at some point during its execution, though in a
  different spot each time, usually during a step when it's searching
  for some libraries. For instance, pcl most commonly stops after:

  [snip]
  -- Boost version: 1.46.1
  -- Found the following Boost libraries:
  --   system
  --   filesystem
  --   thread
  --   date_time
  -- checking for module 'eigen3'
  --   found eigen3, version 3.0.1

  which is perplexing because it freezes after finding what it wants,
  not during the search. When it does get past that point, it does so
  almost immediately but freezes somewhere else.

  I'm using 64-bit Ubuntu 11.10 with kernel release 3.0.0-16-generic
  with an Intel i5.

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

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

* [Qemu-devel] [Bug 955379] Re: cmake hangs with qemu-arm-static
  2012-03-14 19:23 [Qemu-devel] [Bug 955379] [NEW] cmake hangs with qemu-arm-static Tom Mullins
                   ` (23 preceding siblings ...)
  2012-12-05 12:19 ` Ubuntu Foundations Team Bug Bot
@ 2013-01-18 12:10 ` Luke Kim
  2013-01-21  9:17 ` Janne Karhunen
                   ` (40 subsequent siblings)
  65 siblings, 0 replies; 74+ messages in thread
From: Luke Kim @ 2013-01-18 12:10 UTC (permalink / raw)
  To: qemu-devel

I have tested cmake.patch but it doesn't work for me.
It didn't hang but it failed to run gmake.
I applied this patch onto qemu-1.3.

[   52s] -- Detecting CXX compiler ABI info
[   53s] CMake Error: Generator: execution of make failed. Make command was: /usr/bin/gmake "cmTryCompileExec/fast"
[   53s] -- Detecting CXX compiler ABI info - failed

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

Title:
  cmake hangs with qemu-arm-static

Status in QEMU:
  Confirmed
Status in Linaro QEMU:
  Confirmed
Status in “qemu-linaro” package in Ubuntu:
  Confirmed

Bug description:
  I'm using git commit 3e7ecd976b06f... configured with --target-list
  =arm-linux-user --static in a chroot environment to compile some
  things. I ran into this problem with both pcl and opencv-2.3.1. cmake
  consistently freezes at some point during its execution, though in a
  different spot each time, usually during a step when it's searching
  for some libraries. For instance, pcl most commonly stops after:

  [snip]
  -- Boost version: 1.46.1
  -- Found the following Boost libraries:
  --   system
  --   filesystem
  --   thread
  --   date_time
  -- checking for module 'eigen3'
  --   found eigen3, version 3.0.1

  which is perplexing because it freezes after finding what it wants,
  not during the search. When it does get past that point, it does so
  almost immediately but freezes somewhere else.

  I'm using 64-bit Ubuntu 11.10 with kernel release 3.0.0-16-generic
  with an Intel i5.

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

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

* [Qemu-devel] [Bug 955379] Re: cmake hangs with qemu-arm-static
  2012-03-14 19:23 [Qemu-devel] [Bug 955379] [NEW] cmake hangs with qemu-arm-static Tom Mullins
                   ` (24 preceding siblings ...)
  2013-01-18 12:10 ` Luke Kim
@ 2013-01-21  9:17 ` Janne Karhunen
  2013-04-12 10:25 ` Luke Kim
                   ` (39 subsequent siblings)
  65 siblings, 0 replies; 74+ messages in thread
From: Janne Karhunen @ 2013-01-21  9:17 UTC (permalink / raw)
  To: qemu-devel

Luke Kim: quite unlikely that above patch would cause the issue you
see..  are you sure something else did not break in your environment?
Can you execute that same make manually?

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

Title:
  cmake hangs with qemu-arm-static

Status in QEMU:
  Confirmed
Status in Linaro QEMU:
  Confirmed
Status in “qemu-linaro” package in Ubuntu:
  Confirmed

Bug description:
  I'm using git commit 3e7ecd976b06f... configured with --target-list
  =arm-linux-user --static in a chroot environment to compile some
  things. I ran into this problem with both pcl and opencv-2.3.1. cmake
  consistently freezes at some point during its execution, though in a
  different spot each time, usually during a step when it's searching
  for some libraries. For instance, pcl most commonly stops after:

  [snip]
  -- Boost version: 1.46.1
  -- Found the following Boost libraries:
  --   system
  --   filesystem
  --   thread
  --   date_time
  -- checking for module 'eigen3'
  --   found eigen3, version 3.0.1

  which is perplexing because it freezes after finding what it wants,
  not during the search. When it does get past that point, it does so
  almost immediately but freezes somewhere else.

  I'm using 64-bit Ubuntu 11.10 with kernel release 3.0.0-16-generic
  with an Intel i5.

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

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

* [Qemu-devel] [Bug 955379] Re: cmake hangs with qemu-arm-static
  2012-03-14 19:23 [Qemu-devel] [Bug 955379] [NEW] cmake hangs with qemu-arm-static Tom Mullins
                   ` (25 preceding siblings ...)
  2013-01-21  9:17 ` Janne Karhunen
@ 2013-04-12 10:25 ` Luke Kim
  2013-04-15  9:42 ` Janne Karhunen
                   ` (38 subsequent siblings)
  65 siblings, 0 replies; 74+ messages in thread
From: Luke Kim @ 2013-04-12 10:25 UTC (permalink / raw)
  To: qemu-devel

Janne Karhunen: Do you think if it is correct that return 0 when ts->signal_pending is true and select() returns '0' (timeout)? Because the caller doesn't expect to return select() with 0, should we return other error values such as EINTR?
When I modified you patch to return EINTR if select() return '0' when ts->signal_pending is true, it worked fine with me.

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

Title:
  cmake hangs with qemu-arm-static

Status in QEMU:
  Confirmed
Status in Linaro QEMU:
  Confirmed
Status in “qemu-linaro” package in Ubuntu:
  Confirmed

Bug description:
  I'm using git commit 3e7ecd976b06f... configured with --target-list
  =arm-linux-user --static in a chroot environment to compile some
  things. I ran into this problem with both pcl and opencv-2.3.1. cmake
  consistently freezes at some point during its execution, though in a
  different spot each time, usually during a step when it's searching
  for some libraries. For instance, pcl most commonly stops after:

  [snip]
  -- Boost version: 1.46.1
  -- Found the following Boost libraries:
  --   system
  --   filesystem
  --   thread
  --   date_time
  -- checking for module 'eigen3'
  --   found eigen3, version 3.0.1

  which is perplexing because it freezes after finding what it wants,
  not during the search. When it does get past that point, it does so
  almost immediately but freezes somewhere else.

  I'm using 64-bit Ubuntu 11.10 with kernel release 3.0.0-16-generic
  with an Intel i5.

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

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

* [Qemu-devel] [Bug 955379] Re: cmake hangs with qemu-arm-static
  2012-03-14 19:23 [Qemu-devel] [Bug 955379] [NEW] cmake hangs with qemu-arm-static Tom Mullins
                   ` (26 preceding siblings ...)
  2013-04-12 10:25 ` Luke Kim
@ 2013-04-15  9:42 ` Janne Karhunen
  2014-07-09  6:30 ` Luke Kim
                   ` (37 subsequent siblings)
  65 siblings, 0 replies; 74+ messages in thread
From: Janne Karhunen @ 2013-04-15  9:42 UTC (permalink / raw)
  To: qemu-devel

LK: Ok, good catch, that might be more suitable option. Thanks,

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

Title:
  cmake hangs with qemu-arm-static

Status in QEMU:
  Confirmed
Status in Linaro QEMU:
  Confirmed
Status in “qemu-linaro” package in Ubuntu:
  Confirmed

Bug description:
  I'm using git commit 3e7ecd976b06f... configured with --target-list
  =arm-linux-user --static in a chroot environment to compile some
  things. I ran into this problem with both pcl and opencv-2.3.1. cmake
  consistently freezes at some point during its execution, though in a
  different spot each time, usually during a step when it's searching
  for some libraries. For instance, pcl most commonly stops after:

  [snip]
  -- Boost version: 1.46.1
  -- Found the following Boost libraries:
  --   system
  --   filesystem
  --   thread
  --   date_time
  -- checking for module 'eigen3'
  --   found eigen3, version 3.0.1

  which is perplexing because it freezes after finding what it wants,
  not during the search. When it does get past that point, it does so
  almost immediately but freezes somewhere else.

  I'm using 64-bit Ubuntu 11.10 with kernel release 3.0.0-16-generic
  with an Intel i5.

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

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

* [Qemu-devel] [Bug 955379] Re: cmake hangs with qemu-arm-static
  2012-03-14 19:23 [Qemu-devel] [Bug 955379] [NEW] cmake hangs with qemu-arm-static Tom Mullins
                   ` (27 preceding siblings ...)
  2013-04-15  9:42 ` Janne Karhunen
@ 2014-07-09  6:30 ` Luke Kim
  2014-07-09 21:57 ` Peter Maydell
                   ` (36 subsequent siblings)
  65 siblings, 0 replies; 74+ messages in thread
From: Luke Kim @ 2014-07-09  6:30 UTC (permalink / raw)
  To: qemu-devel

Isn't it fixed yet with latest qemu 2.1 rc?

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

Title:
  cmake hangs with qemu-arm-static

Status in QEMU:
  Confirmed
Status in Linaro QEMU:
  Confirmed
Status in “qemu-linaro” package in Ubuntu:
  Confirmed

Bug description:
  I'm using git commit 3e7ecd976b06f... configured with --target-list
  =arm-linux-user --static in a chroot environment to compile some
  things. I ran into this problem with both pcl and opencv-2.3.1. cmake
  consistently freezes at some point during its execution, though in a
  different spot each time, usually during a step when it's searching
  for some libraries. For instance, pcl most commonly stops after:

  [snip]
  -- Boost version: 1.46.1
  -- Found the following Boost libraries:
  --   system
  --   filesystem
  --   thread
  --   date_time
  -- checking for module 'eigen3'
  --   found eigen3, version 3.0.1

  which is perplexing because it freezes after finding what it wants,
  not during the search. When it does get past that point, it does so
  almost immediately but freezes somewhere else.

  I'm using 64-bit Ubuntu 11.10 with kernel release 3.0.0-16-generic
  with an Intel i5.

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

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

* [Qemu-devel] [Bug 955379] Re: cmake hangs with qemu-arm-static
  2012-03-14 19:23 [Qemu-devel] [Bug 955379] [NEW] cmake hangs with qemu-arm-static Tom Mullins
                   ` (28 preceding siblings ...)
  2014-07-09  6:30 ` Luke Kim
@ 2014-07-09 21:57 ` Peter Maydell
  2014-07-11 10:00 ` vitaly.v.ch
                   ` (35 subsequent siblings)
  65 siblings, 0 replies; 74+ messages in thread
From: Peter Maydell @ 2014-07-09 21:57 UTC (permalink / raw)
  To: qemu-devel

No; this is a a complicated issue to fix that basically requires a
significant restructuring of the linux-user code. Nobody's done that yet
and as far as I know nobody's said they plan to do so either.

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

Title:
  cmake hangs with qemu-arm-static

Status in QEMU:
  Confirmed
Status in Linaro QEMU:
  Confirmed
Status in “qemu-linaro” package in Ubuntu:
  Confirmed

Bug description:
  I'm using git commit 3e7ecd976b06f... configured with --target-list
  =arm-linux-user --static in a chroot environment to compile some
  things. I ran into this problem with both pcl and opencv-2.3.1. cmake
  consistently freezes at some point during its execution, though in a
  different spot each time, usually during a step when it's searching
  for some libraries. For instance, pcl most commonly stops after:

  [snip]
  -- Boost version: 1.46.1
  -- Found the following Boost libraries:
  --   system
  --   filesystem
  --   thread
  --   date_time
  -- checking for module 'eigen3'
  --   found eigen3, version 3.0.1

  which is perplexing because it freezes after finding what it wants,
  not during the search. When it does get past that point, it does so
  almost immediately but freezes somewhere else.

  I'm using 64-bit Ubuntu 11.10 with kernel release 3.0.0-16-generic
  with an Intel i5.

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

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

* [Qemu-devel] [Bug 955379] Re: cmake hangs with qemu-arm-static
  2012-03-14 19:23 [Qemu-devel] [Bug 955379] [NEW] cmake hangs with qemu-arm-static Tom Mullins
                   ` (29 preceding siblings ...)
  2014-07-09 21:57 ` Peter Maydell
@ 2014-07-11 10:00 ` vitaly.v.ch
  2014-07-11 10:01 ` vitaly.v.ch
                   ` (34 subsequent siblings)
  65 siblings, 0 replies; 74+ messages in thread
From: vitaly.v.ch @ 2014-07-11 10:00 UTC (permalink / raw)
  To: qemu-devel

It's just excellent illustration why I hate pipes.

So CMake guys can remove this crap from their code and use socketpair()
or like instead.

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

Title:
  cmake hangs with qemu-arm-static

Status in QEMU:
  Confirmed
Status in Linaro QEMU:
  Confirmed
Status in “qemu-linaro” package in Ubuntu:
  Confirmed

Bug description:
  I'm using git commit 3e7ecd976b06f... configured with --target-list
  =arm-linux-user --static in a chroot environment to compile some
  things. I ran into this problem with both pcl and opencv-2.3.1. cmake
  consistently freezes at some point during its execution, though in a
  different spot each time, usually during a step when it's searching
  for some libraries. For instance, pcl most commonly stops after:

  [snip]
  -- Boost version: 1.46.1
  -- Found the following Boost libraries:
  --   system
  --   filesystem
  --   thread
  --   date_time
  -- checking for module 'eigen3'
  --   found eigen3, version 3.0.1

  which is perplexing because it freezes after finding what it wants,
  not during the search. When it does get past that point, it does so
  almost immediately but freezes somewhere else.

  I'm using 64-bit Ubuntu 11.10 with kernel release 3.0.0-16-generic
  with an Intel i5.

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

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

* [Qemu-devel] [Bug 955379] Re: cmake hangs with qemu-arm-static
  2012-03-14 19:23 [Qemu-devel] [Bug 955379] [NEW] cmake hangs with qemu-arm-static Tom Mullins
                   ` (30 preceding siblings ...)
  2014-07-11 10:00 ` vitaly.v.ch
@ 2014-07-11 10:01 ` vitaly.v.ch
  2014-07-11 14:35 ` Peter Maydell
                   ` (33 subsequent siblings)
  65 siblings, 0 replies; 74+ messages in thread
From: vitaly.v.ch @ 2014-07-11 10:01 UTC (permalink / raw)
  To: qemu-devel

https://lists.tizen.org/pipermail/dev/2014-July/003424.html

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

Title:
  cmake hangs with qemu-arm-static

Status in QEMU:
  Confirmed
Status in Linaro QEMU:
  Confirmed
Status in “qemu-linaro” package in Ubuntu:
  Confirmed

Bug description:
  I'm using git commit 3e7ecd976b06f... configured with --target-list
  =arm-linux-user --static in a chroot environment to compile some
  things. I ran into this problem with both pcl and opencv-2.3.1. cmake
  consistently freezes at some point during its execution, though in a
  different spot each time, usually during a step when it's searching
  for some libraries. For instance, pcl most commonly stops after:

  [snip]
  -- Boost version: 1.46.1
  -- Found the following Boost libraries:
  --   system
  --   filesystem
  --   thread
  --   date_time
  -- checking for module 'eigen3'
  --   found eigen3, version 3.0.1

  which is perplexing because it freezes after finding what it wants,
  not during the search. When it does get past that point, it does so
  almost immediately but freezes somewhere else.

  I'm using 64-bit Ubuntu 11.10 with kernel release 3.0.0-16-generic
  with an Intel i5.

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

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

* [Qemu-devel] [Bug 955379] Re: cmake hangs with qemu-arm-static
  2012-03-14 19:23 [Qemu-devel] [Bug 955379] [NEW] cmake hangs with qemu-arm-static Tom Mullins
                   ` (31 preceding siblings ...)
  2014-07-11 10:01 ` vitaly.v.ch
@ 2014-07-11 14:35 ` Peter Maydell
  2014-07-18 17:22 ` Peter Maydell
                   ` (32 subsequent siblings)
  65 siblings, 0 replies; 74+ messages in thread
From: Peter Maydell @ 2014-07-11 14:35 UTC (permalink / raw)
  To: qemu-devel

What cmake is doing is an entirely legitimate and well-recognized Unix
idiom for converting signals into effects on filedescriptors for
select(), and there's no reason for them to change it. This is
absolutely a bug in QEMU, it's just one that's not easy for us to fix.
(Using socketpair would not help here. You'd have to use signalfd(),
which of course is much less portable.)

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

Title:
  cmake hangs with qemu-arm-static

Status in QEMU:
  Confirmed
Status in Linaro QEMU:
  Confirmed
Status in “qemu-linaro” package in Ubuntu:
  Confirmed

Bug description:
  I'm using git commit 3e7ecd976b06f... configured with --target-list
  =arm-linux-user --static in a chroot environment to compile some
  things. I ran into this problem with both pcl and opencv-2.3.1. cmake
  consistently freezes at some point during its execution, though in a
  different spot each time, usually during a step when it's searching
  for some libraries. For instance, pcl most commonly stops after:

  [snip]
  -- Boost version: 1.46.1
  -- Found the following Boost libraries:
  --   system
  --   filesystem
  --   thread
  --   date_time
  -- checking for module 'eigen3'
  --   found eigen3, version 3.0.1

  which is perplexing because it freezes after finding what it wants,
  not during the search. When it does get past that point, it does so
  almost immediately but freezes somewhere else.

  I'm using 64-bit Ubuntu 11.10 with kernel release 3.0.0-16-generic
  with an Intel i5.

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

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

* [Qemu-devel] [Bug 955379] Re: cmake hangs with qemu-arm-static
  2012-03-14 19:23 [Qemu-devel] [Bug 955379] [NEW] cmake hangs with qemu-arm-static Tom Mullins
                   ` (32 preceding siblings ...)
  2014-07-11 14:35 ` Peter Maydell
@ 2014-07-18 17:22 ` Peter Maydell
  2015-09-19 18:29 ` skunk
                   ` (31 subsequent siblings)
  65 siblings, 0 replies; 74+ messages in thread
From: Peter Maydell @ 2014-07-18 17:22 UTC (permalink / raw)
  To: qemu-devel

Most rececnt qemu-devel discussion and a promising looking approach (ie it would work whereas my idea linked from comment #14 would not):
http://lists.gnu.org/archive/html/qemu-devel/2014-02/msg04569.html

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

Title:
  cmake hangs with qemu-arm-static

Status in QEMU:
  Confirmed
Status in Linaro QEMU:
  Confirmed
Status in “qemu-linaro” package in Ubuntu:
  Confirmed

Bug description:
  I'm using git commit 3e7ecd976b06f... configured with --target-list
  =arm-linux-user --static in a chroot environment to compile some
  things. I ran into this problem with both pcl and opencv-2.3.1. cmake
  consistently freezes at some point during its execution, though in a
  different spot each time, usually during a step when it's searching
  for some libraries. For instance, pcl most commonly stops after:

  [snip]
  -- Boost version: 1.46.1
  -- Found the following Boost libraries:
  --   system
  --   filesystem
  --   thread
  --   date_time
  -- checking for module 'eigen3'
  --   found eigen3, version 3.0.1

  which is perplexing because it freezes after finding what it wants,
  not during the search. When it does get past that point, it does so
  almost immediately but freezes somewhere else.

  I'm using 64-bit Ubuntu 11.10 with kernel release 3.0.0-16-generic
  with an Intel i5.

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

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

* [Qemu-devel] [Bug 955379] Re: cmake hangs with qemu-arm-static
  2012-03-14 19:23 [Qemu-devel] [Bug 955379] [NEW] cmake hangs with qemu-arm-static Tom Mullins
                   ` (33 preceding siblings ...)
  2014-07-18 17:22 ` Peter Maydell
@ 2015-09-19 18:29 ` skunk
  2015-09-19 21:01 ` Peter Maydell
                   ` (30 subsequent siblings)
  65 siblings, 0 replies; 74+ messages in thread
From: skunk @ 2015-09-19 18:29 UTC (permalink / raw)
  To: qemu-devel

the above patch still applies with qemu 2.4, but then it fails to build
with the following error:

x86_64-pc-linux-gnu-gcc -I/var/tmp/portage/app-emulation/qemu-2.4.0-r1/work/qemu-2.4.0/tcg -I/var/tmp/portage/app-emulation/qemu-2.4.0-r1/work/qemu-2.4.0/tcg/i386 -I/var/tmp/portage/app-emulation/qemu-2.4.0-r1/work/qemu-2.4.0/linux-headers -I/var/tmp/portage/app-emulation/qemu-2.4.0-r1/work/qemu-2.4.0/user-build/linux-headers -I. -I/var/tmp/portage/app-emulation/qemu-2.4.0-r1/work/qemu-2.4.0 -I/var/tmp/portage/app-emulation/qemu-2.4.0-r1/work/qemu-2.4.0/include -I/var/tmp/portage/app-emulation/qemu-2.4.0-r1/work/qemu-2.4.0/linux-user -Ilinux-user -m64 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wall -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -fno-common  -Wendif-labels -Wmissing-include-dirs -Wempty-body -Wnested-externs -Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers -Wold-style-declaration -Wold-style-definition -Wtype-limits -fstack-protector-strong  -I../linux-headers -I.. -I/var/tmp/portage/app-emulation/qemu-2.4.0-r1/work/qemu-2.4.0/target-i386 -DNEED_CPU_H -I/var/tmp/portage/app-emulation/qemu-2.4.0-r1/work/qemu-2.4.0/include -I/var/tmp/portage/app-emulation/qemu-2.4.0-r1/work/qemu-2.4.0/linux-user/x86_64 -I/var/tmp/portage/app-emulation/qemu-2.4.0-r1/work/qemu-2.4.0/linux-user -MMD -MP -MT linux-user/syscall.o -MF linux-user/syscall.d -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include   -march=native -mtune=generic -O2 -pipe  -c -o linux-user/syscall.o /var/tmp/portage/app-emulation/qemu-2.4.0-r1/work/qemu-2.4.0/linux-user/syscall.c
/var/tmp/portage/app-emulation/qemu-2.4.0-r1/work/qemu-2.4.0/linux-user/syscall.c: In function ‘do_select’:
/var/tmp/portage/app-emulation/qemu-2.4.0-r1/work/qemu-2.4.0/linux-user/syscall.c:1010:34: error: ‘thread_env’ undeclared (first use in this function)
     TaskState *ts = (TaskState *)thread_env->opaque;
                                  ^
/var/tmp/portage/app-emulation/qemu-2.4.0-r1/work/qemu-2.4.0/linux-user/syscall.c:1010:34: note: each undeclared identifier is reported only once for each function it appears in

anybody so kind to tell me how to fix it?
thank you.

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

Title:
  cmake hangs with qemu-arm-static

Status in QEMU:
  Confirmed
Status in Linaro QEMU:
  Confirmed
Status in qemu-linaro package in Ubuntu:
  Confirmed

Bug description:
  I'm using git commit 3e7ecd976b06f... configured with --target-list
  =arm-linux-user --static in a chroot environment to compile some
  things. I ran into this problem with both pcl and opencv-2.3.1. cmake
  consistently freezes at some point during its execution, though in a
  different spot each time, usually during a step when it's searching
  for some libraries. For instance, pcl most commonly stops after:

  [snip]
  -- Boost version: 1.46.1
  -- Found the following Boost libraries:
  --   system
  --   filesystem
  --   thread
  --   date_time
  -- checking for module 'eigen3'
  --   found eigen3, version 3.0.1

  which is perplexing because it freezes after finding what it wants,
  not during the search. When it does get past that point, it does so
  almost immediately but freezes somewhere else.

  I'm using 64-bit Ubuntu 11.10 with kernel release 3.0.0-16-generic
  with an Intel i5.

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

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

* [Qemu-devel] [Bug 955379] Re: cmake hangs with qemu-arm-static
  2012-03-14 19:23 [Qemu-devel] [Bug 955379] [NEW] cmake hangs with qemu-arm-static Tom Mullins
                   ` (34 preceding siblings ...)
  2015-09-19 18:29 ` skunk
@ 2015-09-19 21:01 ` Peter Maydell
  2015-09-19 23:31 ` skunk
                   ` (29 subsequent siblings)
  65 siblings, 0 replies; 74+ messages in thread
From: Peter Maydell @ 2015-09-19 21:01 UTC (permalink / raw)
  To: qemu-devel

Recent patchseries which I think ought to be a proper fix for this bug:
https://lists.gnu.org/archive/html/qemu-devel/2015-09/msg01388.html
It does need some more work to address review comments but it's sound in principle.

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

Title:
  cmake hangs with qemu-arm-static

Status in QEMU:
  Confirmed
Status in Linaro QEMU:
  Confirmed
Status in qemu-linaro package in Ubuntu:
  Confirmed

Bug description:
  I'm using git commit 3e7ecd976b06f... configured with --target-list
  =arm-linux-user --static in a chroot environment to compile some
  things. I ran into this problem with both pcl and opencv-2.3.1. cmake
  consistently freezes at some point during its execution, though in a
  different spot each time, usually during a step when it's searching
  for some libraries. For instance, pcl most commonly stops after:

  [snip]
  -- Boost version: 1.46.1
  -- Found the following Boost libraries:
  --   system
  --   filesystem
  --   thread
  --   date_time
  -- checking for module 'eigen3'
  --   found eigen3, version 3.0.1

  which is perplexing because it freezes after finding what it wants,
  not during the search. When it does get past that point, it does so
  almost immediately but freezes somewhere else.

  I'm using 64-bit Ubuntu 11.10 with kernel release 3.0.0-16-generic
  with an Intel i5.

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

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

* [Qemu-devel] [Bug 955379] Re: cmake hangs with qemu-arm-static
  2012-03-14 19:23 [Qemu-devel] [Bug 955379] [NEW] cmake hangs with qemu-arm-static Tom Mullins
                   ` (35 preceding siblings ...)
  2015-09-19 21:01 ` Peter Maydell
@ 2015-09-19 23:31 ` skunk
  2015-09-20  4:52   ` Peter Crosthwaite
  2015-09-22 15:16 ` skunk
                   ` (28 subsequent siblings)
  65 siblings, 1 reply; 74+ messages in thread
From: skunk @ 2015-09-19 23:31 UTC (permalink / raw)
  To: qemu-devel

thank you peter, do you know if timothy has a github account?
i'm too lazy to copy&paste the 34 patches by hand from the mailing list...

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

Title:
  cmake hangs with qemu-arm-static

Status in QEMU:
  Confirmed
Status in Linaro QEMU:
  Confirmed
Status in qemu-linaro package in Ubuntu:
  Confirmed

Bug description:
  I'm using git commit 3e7ecd976b06f... configured with --target-list
  =arm-linux-user --static in a chroot environment to compile some
  things. I ran into this problem with both pcl and opencv-2.3.1. cmake
  consistently freezes at some point during its execution, though in a
  different spot each time, usually during a step when it's searching
  for some libraries. For instance, pcl most commonly stops after:

  [snip]
  -- Boost version: 1.46.1
  -- Found the following Boost libraries:
  --   system
  --   filesystem
  --   thread
  --   date_time
  -- checking for module 'eigen3'
  --   found eigen3, version 3.0.1

  which is perplexing because it freezes after finding what it wants,
  not during the search. When it does get past that point, it does so
  almost immediately but freezes somewhere else.

  I'm using 64-bit Ubuntu 11.10 with kernel release 3.0.0-16-generic
  with an Intel i5.

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

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

* Re: [Qemu-devel] [Bug 955379] Re: cmake hangs with qemu-arm-static
  2015-09-19 23:31 ` skunk
@ 2015-09-20  4:52   ` Peter Crosthwaite
  0 siblings, 0 replies; 74+ messages in thread
From: Peter Crosthwaite @ 2015-09-20  4:52 UTC (permalink / raw)
  To: Bug 955379; +Cc: qemu-devel@nongnu.org Developers

On Sat, Sep 19, 2015 at 4:31 PM, skunk <skunk@legalise.it> wrote:
> thank you peter, do you know if timothy has a github account?
> i'm too lazy to copy&paste the 34 patches by hand from the mailing list...

The patches utility can do this for you off the list:

https://github.com/stefanha/qemu-patches

Regards,
Peter

>
> --
> You received this bug notification because you are a member of qemu-
> devel-ml, which is subscribed to QEMU.
> https://bugs.launchpad.net/bugs/955379
>
> Title:
>   cmake hangs with qemu-arm-static
>
> Status in QEMU:
>   Confirmed
> Status in Linaro QEMU:
>   Confirmed
> Status in qemu-linaro package in Ubuntu:
>   Confirmed
>
> Bug description:
>   I'm using git commit 3e7ecd976b06f... configured with --target-list
>   =arm-linux-user --static in a chroot environment to compile some
>   things. I ran into this problem with both pcl and opencv-2.3.1. cmake
>   consistently freezes at some point during its execution, though in a
>   different spot each time, usually during a step when it's searching
>   for some libraries. For instance, pcl most commonly stops after:
>
>   [snip]
>   -- Boost version: 1.46.1
>   -- Found the following Boost libraries:
>   --   system
>   --   filesystem
>   --   thread
>   --   date_time
>   -- checking for module 'eigen3'
>   --   found eigen3, version 3.0.1
>
>   which is perplexing because it freezes after finding what it wants,
>   not during the search. When it does get past that point, it does so
>   almost immediately but freezes somewhere else.
>
>   I'm using 64-bit Ubuntu 11.10 with kernel release 3.0.0-16-generic
>   with an Intel i5.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/qemu/+bug/955379/+subscriptions
>

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

* [Qemu-devel] [Bug 955379] Re: cmake hangs with qemu-arm-static
  2012-03-14 19:23 [Qemu-devel] [Bug 955379] [NEW] cmake hangs with qemu-arm-static Tom Mullins
                   ` (36 preceding siblings ...)
  2015-09-19 23:31 ` skunk
@ 2015-09-22 15:16 ` skunk
  2016-05-12 15:29 ` Peter Maydell
                   ` (27 subsequent siblings)
  65 siblings, 0 replies; 74+ messages in thread
From: skunk @ 2015-09-22 15:16 UTC (permalink / raw)
  To: qemu-devel

ok, i've found a better place for patchset download:

https://patchwork.ozlabs.org/project/qemu-
devel/list/?submitter=Timothy+Baldwin&q=linux-user

unfortunately cmake still hangs in a way that even sending SIGCHLD
doesn't wake it up, i have to send SIGKILL to stop it and consequently
breaking the build process...

please let me know if there's something else i could try.

thank you.

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

Title:
  cmake hangs with qemu-arm-static

Status in QEMU:
  Confirmed
Status in Linaro QEMU:
  Confirmed
Status in qemu-linaro package in Ubuntu:
  Confirmed

Bug description:
  I'm using git commit 3e7ecd976b06f... configured with --target-list
  =arm-linux-user --static in a chroot environment to compile some
  things. I ran into this problem with both pcl and opencv-2.3.1. cmake
  consistently freezes at some point during its execution, though in a
  different spot each time, usually during a step when it's searching
  for some libraries. For instance, pcl most commonly stops after:

  [snip]
  -- Boost version: 1.46.1
  -- Found the following Boost libraries:
  --   system
  --   filesystem
  --   thread
  --   date_time
  -- checking for module 'eigen3'
  --   found eigen3, version 3.0.1

  which is perplexing because it freezes after finding what it wants,
  not during the search. When it does get past that point, it does so
  almost immediately but freezes somewhere else.

  I'm using 64-bit Ubuntu 11.10 with kernel release 3.0.0-16-generic
  with an Intel i5.

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

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

* [Qemu-devel] [Bug 955379] Re: cmake hangs with qemu-arm-static
  2012-03-14 19:23 [Qemu-devel] [Bug 955379] [NEW] cmake hangs with qemu-arm-static Tom Mullins
                   ` (37 preceding siblings ...)
  2015-09-22 15:16 ` skunk
@ 2016-05-12 15:29 ` Peter Maydell
  2016-05-12 15:44 ` skunk
                   ` (26 subsequent siblings)
  65 siblings, 0 replies; 74+ messages in thread
From: Peter Maydell @ 2016-05-12 15:29 UTC (permalink / raw)
  To: qemu-devel

Does anybody have a reliable reproduce case for this bug? I have some
patches I'd like to test which I think should fix it, but I cannot get
the test case attached in comment #10 to hang at all, even without the
fixes.

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

Title:
  cmake hangs with qemu-arm-static

Status in QEMU:
  Confirmed
Status in Linaro QEMU:
  Confirmed
Status in qemu-linaro package in Ubuntu:
  Confirmed

Bug description:
  I'm using git commit 3e7ecd976b06f... configured with --target-list
  =arm-linux-user --static in a chroot environment to compile some
  things. I ran into this problem with both pcl and opencv-2.3.1. cmake
  consistently freezes at some point during its execution, though in a
  different spot each time, usually during a step when it's searching
  for some libraries. For instance, pcl most commonly stops after:

  [snip]
  -- Boost version: 1.46.1
  -- Found the following Boost libraries:
  --   system
  --   filesystem
  --   thread
  --   date_time
  -- checking for module 'eigen3'
  --   found eigen3, version 3.0.1

  which is perplexing because it freezes after finding what it wants,
  not during the search. When it does get past that point, it does so
  almost immediately but freezes somewhere else.

  I'm using 64-bit Ubuntu 11.10 with kernel release 3.0.0-16-generic
  with an Intel i5.

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

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

* [Qemu-devel] [Bug 955379] Re: cmake hangs with qemu-arm-static
  2012-03-14 19:23 [Qemu-devel] [Bug 955379] [NEW] cmake hangs with qemu-arm-static Tom Mullins
                   ` (38 preceding siblings ...)
  2016-05-12 15:29 ` Peter Maydell
@ 2016-05-12 15:44 ` skunk
  2016-05-12 16:23 ` Peter Maydell
                   ` (25 subsequent siblings)
  65 siblings, 0 replies; 74+ messages in thread
From: skunk @ 2016-05-12 15:44 UTC (permalink / raw)
  To: qemu-devel

iirc i've was able to reproduce this bug every time while compiling
kdelibs4 on a chrooted arm image

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

Title:
  cmake hangs with qemu-arm-static

Status in QEMU:
  Confirmed
Status in Linaro QEMU:
  Confirmed
Status in qemu-linaro package in Ubuntu:
  Confirmed

Bug description:
  I'm using git commit 3e7ecd976b06f... configured with --target-list
  =arm-linux-user --static in a chroot environment to compile some
  things. I ran into this problem with both pcl and opencv-2.3.1. cmake
  consistently freezes at some point during its execution, though in a
  different spot each time, usually during a step when it's searching
  for some libraries. For instance, pcl most commonly stops after:

  [snip]
  -- Boost version: 1.46.1
  -- Found the following Boost libraries:
  --   system
  --   filesystem
  --   thread
  --   date_time
  -- checking for module 'eigen3'
  --   found eigen3, version 3.0.1

  which is perplexing because it freezes after finding what it wants,
  not during the search. When it does get past that point, it does so
  almost immediately but freezes somewhere else.

  I'm using 64-bit Ubuntu 11.10 with kernel release 3.0.0-16-generic
  with an Intel i5.

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

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

* [Qemu-devel] [Bug 955379] Re: cmake hangs with qemu-arm-static
  2012-03-14 19:23 [Qemu-devel] [Bug 955379] [NEW] cmake hangs with qemu-arm-static Tom Mullins
                   ` (39 preceding siblings ...)
  2016-05-12 15:44 ` skunk
@ 2016-05-12 16:23 ` Peter Maydell
  2016-05-20 21:56 ` Jools Wills
                   ` (24 subsequent siblings)
  65 siblings, 0 replies; 74+ messages in thread
From: Peter Maydell @ 2016-05-12 16:23 UTC (permalink / raw)
  To: qemu-devel

I was hoping for a "run this command" level of reproducer :-)

Alternatively, if anybody's conveniently able to build and test a new QEMU with whatever was failing for them, you can try the git branch
https://git.linaro.org/people/peter.maydell/qemu-arm.git sigrace-fixes

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

Title:
  cmake hangs with qemu-arm-static

Status in QEMU:
  Confirmed
Status in Linaro QEMU:
  Confirmed
Status in qemu-linaro package in Ubuntu:
  Confirmed

Bug description:
  I'm using git commit 3e7ecd976b06f... configured with --target-list
  =arm-linux-user --static in a chroot environment to compile some
  things. I ran into this problem with both pcl and opencv-2.3.1. cmake
  consistently freezes at some point during its execution, though in a
  different spot each time, usually during a step when it's searching
  for some libraries. For instance, pcl most commonly stops after:

  [snip]
  -- Boost version: 1.46.1
  -- Found the following Boost libraries:
  --   system
  --   filesystem
  --   thread
  --   date_time
  -- checking for module 'eigen3'
  --   found eigen3, version 3.0.1

  which is perplexing because it freezes after finding what it wants,
  not during the search. When it does get past that point, it does so
  almost immediately but freezes somewhere else.

  I'm using 64-bit Ubuntu 11.10 with kernel release 3.0.0-16-generic
  with an Intel i5.

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

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

* [Qemu-devel] [Bug 955379] Re: cmake hangs with qemu-arm-static
  2012-03-14 19:23 [Qemu-devel] [Bug 955379] [NEW] cmake hangs with qemu-arm-static Tom Mullins
                   ` (40 preceding siblings ...)
  2016-05-12 16:23 ` Peter Maydell
@ 2016-05-20 21:56 ` Jools Wills
  2016-06-07 16:34 ` Peter Maydell
                   ` (23 subsequent siblings)
  65 siblings, 0 replies; 74+ messages in thread
From: Jools Wills @ 2016-05-20 21:56 UTC (permalink / raw)
  To: qemu-devel

I get a hang doing this most times in an emulated ARM chroot with qemu-
arm-static (Raspbian). Host machine is x86_64 Ubuntu 16.04 running qemu
2.5.0.

git clone --depth 1 https://github.com/libretro/picodrive.git
cd picodrive && 
git submodule update --init

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

Title:
  cmake hangs with qemu-arm-static

Status in QEMU:
  Confirmed
Status in Linaro QEMU:
  Confirmed
Status in qemu-linaro package in Ubuntu:
  Confirmed

Bug description:
  I'm using git commit 3e7ecd976b06f... configured with --target-list
  =arm-linux-user --static in a chroot environment to compile some
  things. I ran into this problem with both pcl and opencv-2.3.1. cmake
  consistently freezes at some point during its execution, though in a
  different spot each time, usually during a step when it's searching
  for some libraries. For instance, pcl most commonly stops after:

  [snip]
  -- Boost version: 1.46.1
  -- Found the following Boost libraries:
  --   system
  --   filesystem
  --   thread
  --   date_time
  -- checking for module 'eigen3'
  --   found eigen3, version 3.0.1

  which is perplexing because it freezes after finding what it wants,
  not during the search. When it does get past that point, it does so
  almost immediately but freezes somewhere else.

  I'm using 64-bit Ubuntu 11.10 with kernel release 3.0.0-16-generic
  with an Intel i5.

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

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

* [Qemu-devel] [Bug 955379] Re: cmake hangs with qemu-arm-static
  2012-03-14 19:23 [Qemu-devel] [Bug 955379] [NEW] cmake hangs with qemu-arm-static Tom Mullins
                   ` (41 preceding siblings ...)
  2016-05-20 21:56 ` Jools Wills
@ 2016-06-07 16:34 ` Peter Maydell
  2016-06-07 16:43 ` Jools Wills
                   ` (22 subsequent siblings)
  65 siblings, 0 replies; 74+ messages in thread
From: Peter Maydell @ 2016-06-07 16:34 UTC (permalink / raw)
  To: qemu-devel

Thanks for that report of a hang running git. I've been able to identify and fix the bug (it is a different problem to the issue that was causing cmake to hang) and have sent a patch:
http://patchwork.ozlabs.org/patch/631708/
That fix will hopefully make it into QEMU 2.7.

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

Title:
  cmake hangs with qemu-arm-static

Status in QEMU:
  Confirmed
Status in Linaro QEMU:
  Confirmed
Status in qemu-linaro package in Ubuntu:
  Confirmed

Bug description:
  I'm using git commit 3e7ecd976b06f... configured with --target-list
  =arm-linux-user --static in a chroot environment to compile some
  things. I ran into this problem with both pcl and opencv-2.3.1. cmake
  consistently freezes at some point during its execution, though in a
  different spot each time, usually during a step when it's searching
  for some libraries. For instance, pcl most commonly stops after:

  [snip]
  -- Boost version: 1.46.1
  -- Found the following Boost libraries:
  --   system
  --   filesystem
  --   thread
  --   date_time
  -- checking for module 'eigen3'
  --   found eigen3, version 3.0.1

  which is perplexing because it freezes after finding what it wants,
  not during the search. When it does get past that point, it does so
  almost immediately but freezes somewhere else.

  I'm using 64-bit Ubuntu 11.10 with kernel release 3.0.0-16-generic
  with an Intel i5.

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

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

* [Qemu-devel] [Bug 955379] Re: cmake hangs with qemu-arm-static
  2012-03-14 19:23 [Qemu-devel] [Bug 955379] [NEW] cmake hangs with qemu-arm-static Tom Mullins
                   ` (42 preceding siblings ...)
  2016-06-07 16:34 ` Peter Maydell
@ 2016-06-07 16:43 ` Jools Wills
  2016-06-09  5:21 ` Riku Voipio
                   ` (21 subsequent siblings)
  65 siblings, 0 replies; 74+ messages in thread
From: Jools Wills @ 2016-06-07 16:43 UTC (permalink / raw)
  To: qemu-devel

That's great news - thanks very much. This will make working on RetroPie
development in a chroot much easier (we have workarounds to avoid using
git because of this issue).

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

Title:
  cmake hangs with qemu-arm-static

Status in QEMU:
  Confirmed
Status in Linaro QEMU:
  Confirmed
Status in qemu-linaro package in Ubuntu:
  Confirmed

Bug description:
  I'm using git commit 3e7ecd976b06f... configured with --target-list
  =arm-linux-user --static in a chroot environment to compile some
  things. I ran into this problem with both pcl and opencv-2.3.1. cmake
  consistently freezes at some point during its execution, though in a
  different spot each time, usually during a step when it's searching
  for some libraries. For instance, pcl most commonly stops after:

  [snip]
  -- Boost version: 1.46.1
  -- Found the following Boost libraries:
  --   system
  --   filesystem
  --   thread
  --   date_time
  -- checking for module 'eigen3'
  --   found eigen3, version 3.0.1

  which is perplexing because it freezes after finding what it wants,
  not during the search. When it does get past that point, it does so
  almost immediately but freezes somewhere else.

  I'm using 64-bit Ubuntu 11.10 with kernel release 3.0.0-16-generic
  with an Intel i5.

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

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

* [Qemu-devel] [Bug 955379] Re: cmake hangs with qemu-arm-static
  2012-03-14 19:23 [Qemu-devel] [Bug 955379] [NEW] cmake hangs with qemu-arm-static Tom Mullins
                   ` (43 preceding siblings ...)
  2016-06-07 16:43 ` Jools Wills
@ 2016-06-09  5:21 ` Riku Voipio
  2016-06-09  6:20 ` Riku Voipio
                   ` (20 subsequent siblings)
  65 siblings, 0 replies; 74+ messages in thread
From: Riku Voipio @ 2016-06-09  5:21 UTC (permalink / raw)
  To: qemu-devel

Please try the latest qemu git HEAD, Timothys and Peters fixes have been
merged in.

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

Title:
  cmake hangs with qemu-arm-static

Status in QEMU:
  Confirmed
Status in Linaro QEMU:
  Confirmed
Status in qemu-linaro package in Ubuntu:
  Confirmed

Bug description:
  I'm using git commit 3e7ecd976b06f... configured with --target-list
  =arm-linux-user --static in a chroot environment to compile some
  things. I ran into this problem with both pcl and opencv-2.3.1. cmake
  consistently freezes at some point during its execution, though in a
  different spot each time, usually during a step when it's searching
  for some libraries. For instance, pcl most commonly stops after:

  [snip]
  -- Boost version: 1.46.1
  -- Found the following Boost libraries:
  --   system
  --   filesystem
  --   thread
  --   date_time
  -- checking for module 'eigen3'
  --   found eigen3, version 3.0.1

  which is perplexing because it freezes after finding what it wants,
  not during the search. When it does get past that point, it does so
  almost immediately but freezes somewhere else.

  I'm using 64-bit Ubuntu 11.10 with kernel release 3.0.0-16-generic
  with an Intel i5.

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

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

* [Qemu-devel] [Bug 955379] Re: cmake hangs with qemu-arm-static
  2012-03-14 19:23 [Qemu-devel] [Bug 955379] [NEW] cmake hangs with qemu-arm-static Tom Mullins
                   ` (44 preceding siblings ...)
  2016-06-09  5:21 ` Riku Voipio
@ 2016-06-09  6:20 ` Riku Voipio
  2016-06-10  8:10 ` Luke Kim
                   ` (19 subsequent siblings)
  65 siblings, 0 replies; 74+ messages in thread
From: Riku Voipio @ 2016-06-09  6:20 UTC (permalink / raw)
  To: qemu-devel

A prebuilt package of qemu-user built statically at:

http://repo.linaro.org/ubuntu/linaro-tools/pool/main/q/qemu/qemu-user-
static_2.6.0+git931+g9bbbf64-1linarojessie1_amd64.deb

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

Title:
  cmake hangs with qemu-arm-static

Status in QEMU:
  Confirmed
Status in Linaro QEMU:
  Confirmed
Status in qemu-linaro package in Ubuntu:
  Confirmed

Bug description:
  I'm using git commit 3e7ecd976b06f... configured with --target-list
  =arm-linux-user --static in a chroot environment to compile some
  things. I ran into this problem with both pcl and opencv-2.3.1. cmake
  consistently freezes at some point during its execution, though in a
  different spot each time, usually during a step when it's searching
  for some libraries. For instance, pcl most commonly stops after:

  [snip]
  -- Boost version: 1.46.1
  -- Found the following Boost libraries:
  --   system
  --   filesystem
  --   thread
  --   date_time
  -- checking for module 'eigen3'
  --   found eigen3, version 3.0.1

  which is perplexing because it freezes after finding what it wants,
  not during the search. When it does get past that point, it does so
  almost immediately but freezes somewhere else.

  I'm using 64-bit Ubuntu 11.10 with kernel release 3.0.0-16-generic
  with an Intel i5.

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

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

* [Qemu-devel] [Bug 955379] Re: cmake hangs with qemu-arm-static
  2012-03-14 19:23 [Qemu-devel] [Bug 955379] [NEW] cmake hangs with qemu-arm-static Tom Mullins
                   ` (45 preceding siblings ...)
  2016-06-09  6:20 ` Riku Voipio
@ 2016-06-10  8:10 ` Luke Kim
  2016-06-16 12:32 ` Peter Maydell
                   ` (18 subsequent siblings)
  65 siblings, 0 replies; 74+ messages in thread
From: Luke Kim @ 2016-06-10  8:10 UTC (permalink / raw)
  To: qemu-devel

That's great! it works for me. Thanks a lot.

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

Title:
  cmake hangs with qemu-arm-static

Status in QEMU:
  Confirmed
Status in Linaro QEMU:
  Confirmed
Status in qemu-linaro package in Ubuntu:
  Confirmed

Bug description:
  I'm using git commit 3e7ecd976b06f... configured with --target-list
  =arm-linux-user --static in a chroot environment to compile some
  things. I ran into this problem with both pcl and opencv-2.3.1. cmake
  consistently freezes at some point during its execution, though in a
  different spot each time, usually during a step when it's searching
  for some libraries. For instance, pcl most commonly stops after:

  [snip]
  -- Boost version: 1.46.1
  -- Found the following Boost libraries:
  --   system
  --   filesystem
  --   thread
  --   date_time
  -- checking for module 'eigen3'
  --   found eigen3, version 3.0.1

  which is perplexing because it freezes after finding what it wants,
  not during the search. When it does get past that point, it does so
  almost immediately but freezes somewhere else.

  I'm using 64-bit Ubuntu 11.10 with kernel release 3.0.0-16-generic
  with an Intel i5.

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

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

* [Qemu-devel] [Bug 955379] Re: cmake hangs with qemu-arm-static
  2012-03-14 19:23 [Qemu-devel] [Bug 955379] [NEW] cmake hangs with qemu-arm-static Tom Mullins
                   ` (46 preceding siblings ...)
  2016-06-10  8:10 ` Luke Kim
@ 2016-06-16 12:32 ` Peter Maydell
  2016-07-14  7:43 ` Luke Kim
                   ` (17 subsequent siblings)
  65 siblings, 0 replies; 74+ messages in thread
From: Peter Maydell @ 2016-06-16 12:32 UTC (permalink / raw)
  To: qemu-devel

I'm going to mark this bug as 'fix committed', because changes which
should fix both the cmake and the git hang are now in QEMU git master.
If people have test cases for things which still fail on current git
master, please open fresh bugs for them.


** Changed in: qemu
       Status: Confirmed => Fix Committed

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

Title:
  cmake hangs with qemu-arm-static

Status in QEMU:
  Fix Committed
Status in Linaro QEMU:
  Confirmed
Status in qemu-linaro package in Ubuntu:
  Confirmed

Bug description:
  I'm using git commit 3e7ecd976b06f... configured with --target-list
  =arm-linux-user --static in a chroot environment to compile some
  things. I ran into this problem with both pcl and opencv-2.3.1. cmake
  consistently freezes at some point during its execution, though in a
  different spot each time, usually during a step when it's searching
  for some libraries. For instance, pcl most commonly stops after:

  [snip]
  -- Boost version: 1.46.1
  -- Found the following Boost libraries:
  --   system
  --   filesystem
  --   thread
  --   date_time
  -- checking for module 'eigen3'
  --   found eigen3, version 3.0.1

  which is perplexing because it freezes after finding what it wants,
  not during the search. When it does get past that point, it does so
  almost immediately but freezes somewhere else.

  I'm using 64-bit Ubuntu 11.10 with kernel release 3.0.0-16-generic
  with an Intel i5.

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

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

* [Qemu-devel] [Bug 955379] Re: cmake hangs with qemu-arm-static
  2012-03-14 19:23 [Qemu-devel] [Bug 955379] [NEW] cmake hangs with qemu-arm-static Tom Mullins
                   ` (47 preceding siblings ...)
  2016-06-16 12:32 ` Peter Maydell
@ 2016-07-14  7:43 ` Luke Kim
  2016-07-14  9:43 ` Peter Maydell
                   ` (16 subsequent siblings)
  65 siblings, 0 replies; 74+ messages in thread
From: Luke Kim @ 2016-07-14  7:43 UTC (permalink / raw)
  To: qemu-devel

I'm so sorry that
cmake still hang with my Ubuntu 12.04 and openSUSE 12.3 machine.
and the hanging point has changed. cmake hung at select() with old qemu. but now cmake hang at pselect6() with new qemu.
And also I could continue build by sending SIGCHLD to hanging qemu. but now cmake still hang even I send SIGCHLD to hanging qemu.

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

Title:
  cmake hangs with qemu-arm-static

Status in QEMU:
  Fix Committed
Status in Linaro QEMU:
  Confirmed
Status in qemu-linaro package in Ubuntu:
  Confirmed

Bug description:
  I'm using git commit 3e7ecd976b06f... configured with --target-list
  =arm-linux-user --static in a chroot environment to compile some
  things. I ran into this problem with both pcl and opencv-2.3.1. cmake
  consistently freezes at some point during its execution, though in a
  different spot each time, usually during a step when it's searching
  for some libraries. For instance, pcl most commonly stops after:

  [snip]
  -- Boost version: 1.46.1
  -- Found the following Boost libraries:
  --   system
  --   filesystem
  --   thread
  --   date_time
  -- checking for module 'eigen3'
  --   found eigen3, version 3.0.1

  which is perplexing because it freezes after finding what it wants,
  not during the search. When it does get past that point, it does so
  almost immediately but freezes somewhere else.

  I'm using 64-bit Ubuntu 11.10 with kernel release 3.0.0-16-generic
  with an Intel i5.

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

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

* [Qemu-devel] [Bug 955379] Re: cmake hangs with qemu-arm-static
  2012-03-14 19:23 [Qemu-devel] [Bug 955379] [NEW] cmake hangs with qemu-arm-static Tom Mullins
                   ` (48 preceding siblings ...)
  2016-07-14  7:43 ` Luke Kim
@ 2016-07-14  9:43 ` Peter Maydell
  2016-07-15  6:32 ` Luke Kim
                   ` (15 subsequent siblings)
  65 siblings, 0 replies; 74+ messages in thread
From: Peter Maydell @ 2016-07-14  9:43 UTC (permalink / raw)
  To: qemu-devel

Please can you (a) double check that you're definitely running the
correct new QEMU and (b) provide exact reproduction instructions so I
can investigate the hang.

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

Title:
  cmake hangs with qemu-arm-static

Status in QEMU:
  Fix Committed
Status in Linaro QEMU:
  Confirmed
Status in qemu-linaro package in Ubuntu:
  Confirmed

Bug description:
  I'm using git commit 3e7ecd976b06f... configured with --target-list
  =arm-linux-user --static in a chroot environment to compile some
  things. I ran into this problem with both pcl and opencv-2.3.1. cmake
  consistently freezes at some point during its execution, though in a
  different spot each time, usually during a step when it's searching
  for some libraries. For instance, pcl most commonly stops after:

  [snip]
  -- Boost version: 1.46.1
  -- Found the following Boost libraries:
  --   system
  --   filesystem
  --   thread
  --   date_time
  -- checking for module 'eigen3'
  --   found eigen3, version 3.0.1

  which is perplexing because it freezes after finding what it wants,
  not during the search. When it does get past that point, it does so
  almost immediately but freezes somewhere else.

  I'm using 64-bit Ubuntu 11.10 with kernel release 3.0.0-16-generic
  with an Intel i5.

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

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

* [Qemu-devel] [Bug 955379] Re: cmake hangs with qemu-arm-static
  2012-03-14 19:23 [Qemu-devel] [Bug 955379] [NEW] cmake hangs with qemu-arm-static Tom Mullins
                   ` (49 preceding siblings ...)
  2016-07-14  9:43 ` Peter Maydell
@ 2016-07-15  6:32 ` Luke Kim
  2016-07-15  8:46 ` Peter Maydell
                   ` (14 subsequent siblings)
  65 siblings, 0 replies; 74+ messages in thread
From: Luke Kim @ 2016-07-15  6:32 UTC (permalink / raw)
  To: qemu-devel

I test with b66e10e4c9ae738412b9742db49457f6b703e349 before.
I test with 14c7d99333e4a474c65bdae6f99aa8837e8078e6 today and no hang.
But I had to revert 4fb8320a2efb2216c7ddcc929ad0362f4e285681 which causes segfault.

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

Title:
  cmake hangs with qemu-arm-static

Status in QEMU:
  Fix Committed
Status in Linaro QEMU:
  Confirmed
Status in qemu-linaro package in Ubuntu:
  Confirmed

Bug description:
  I'm using git commit 3e7ecd976b06f... configured with --target-list
  =arm-linux-user --static in a chroot environment to compile some
  things. I ran into this problem with both pcl and opencv-2.3.1. cmake
  consistently freezes at some point during its execution, though in a
  different spot each time, usually during a step when it's searching
  for some libraries. For instance, pcl most commonly stops after:

  [snip]
  -- Boost version: 1.46.1
  -- Found the following Boost libraries:
  --   system
  --   filesystem
  --   thread
  --   date_time
  -- checking for module 'eigen3'
  --   found eigen3, version 3.0.1

  which is perplexing because it freezes after finding what it wants,
  not during the search. When it does get past that point, it does so
  almost immediately but freezes somewhere else.

  I'm using 64-bit Ubuntu 11.10 with kernel release 3.0.0-16-generic
  with an Intel i5.

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

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

* [Qemu-devel] [Bug 955379] Re: cmake hangs with qemu-arm-static
  2012-03-14 19:23 [Qemu-devel] [Bug 955379] [NEW] cmake hangs with qemu-arm-static Tom Mullins
                   ` (50 preceding siblings ...)
  2016-07-15  6:32 ` Luke Kim
@ 2016-07-15  8:46 ` Peter Maydell
  2016-07-16 10:01 ` Luke Kim
                   ` (13 subsequent siblings)
  65 siblings, 0 replies; 74+ messages in thread
From: Peter Maydell @ 2016-07-15  8:46 UTC (permalink / raw)
  To: qemu-devel

Please provide exact reproduction instructions -- I need enough
information that I can completely replicate your setup and what you're
doing: exactly how you've set up any chroot or whatever other guest
setup you have, what cmake command you're running, and so on.

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

Title:
  cmake hangs with qemu-arm-static

Status in QEMU:
  Fix Committed
Status in Linaro QEMU:
  Confirmed
Status in qemu-linaro package in Ubuntu:
  Confirmed

Bug description:
  I'm using git commit 3e7ecd976b06f... configured with --target-list
  =arm-linux-user --static in a chroot environment to compile some
  things. I ran into this problem with both pcl and opencv-2.3.1. cmake
  consistently freezes at some point during its execution, though in a
  different spot each time, usually during a step when it's searching
  for some libraries. For instance, pcl most commonly stops after:

  [snip]
  -- Boost version: 1.46.1
  -- Found the following Boost libraries:
  --   system
  --   filesystem
  --   thread
  --   date_time
  -- checking for module 'eigen3'
  --   found eigen3, version 3.0.1

  which is perplexing because it freezes after finding what it wants,
  not during the search. When it does get past that point, it does so
  almost immediately but freezes somewhere else.

  I'm using 64-bit Ubuntu 11.10 with kernel release 3.0.0-16-generic
  with an Intel i5.

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

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

* [Qemu-devel] [Bug 955379] Re: cmake hangs with qemu-arm-static
  2012-03-14 19:23 [Qemu-devel] [Bug 955379] [NEW] cmake hangs with qemu-arm-static Tom Mullins
                   ` (51 preceding siblings ...)
  2016-07-15  8:46 ` Peter Maydell
@ 2016-07-16 10:01 ` Luke Kim
  2016-07-18 13:28 ` Peter Maydell
                   ` (12 subsequent siblings)
  65 siblings, 0 replies; 74+ messages in thread
From: Luke Kim @ 2016-07-16 10:01 UTC (permalink / raw)
  To: qemu-devel

chroot env. attached (120M tar).
I hope you can reproduce with this chroot.

Instructions to reproduce
- extract, chroot
- su - abuild
- cd /home/abuild/rpmbuild/BUILD/cmake-2.8.5/armv7l-tizen-linux-gnueabi/
- Bootstrap.cmk/cmake .. -CBootstrap.cmk/InitialCacheFlags.cmake '-GUnix Makefiles' -DCMAKE_BOOTSTRAP=1

** Attachment added: "Tizen 2.4 chroot"
   https://bugs.launchpad.net/qemu/+bug/955379/+attachment/4701930/+files/root.tar.gz

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

Title:
  cmake hangs with qemu-arm-static

Status in QEMU:
  Fix Committed
Status in Linaro QEMU:
  Confirmed
Status in qemu-linaro package in Ubuntu:
  Confirmed

Bug description:
  I'm using git commit 3e7ecd976b06f... configured with --target-list
  =arm-linux-user --static in a chroot environment to compile some
  things. I ran into this problem with both pcl and opencv-2.3.1. cmake
  consistently freezes at some point during its execution, though in a
  different spot each time, usually during a step when it's searching
  for some libraries. For instance, pcl most commonly stops after:

  [snip]
  -- Boost version: 1.46.1
  -- Found the following Boost libraries:
  --   system
  --   filesystem
  --   thread
  --   date_time
  -- checking for module 'eigen3'
  --   found eigen3, version 3.0.1

  which is perplexing because it freezes after finding what it wants,
  not during the search. When it does get past that point, it does so
  almost immediately but freezes somewhere else.

  I'm using 64-bit Ubuntu 11.10 with kernel release 3.0.0-16-generic
  with an Intel i5.

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

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

* [Qemu-devel] [Bug 955379] Re: cmake hangs with qemu-arm-static
  2012-03-14 19:23 [Qemu-devel] [Bug 955379] [NEW] cmake hangs with qemu-arm-static Tom Mullins
                   ` (52 preceding siblings ...)
  2016-07-16 10:01 ` Luke Kim
@ 2016-07-18 13:28 ` Peter Maydell
  2016-07-19  0:26 ` Luke Kim
                   ` (11 subsequent siblings)
  65 siblings, 0 replies; 74+ messages in thread
From: Peter Maydell @ 2016-07-18 13:28 UTC (permalink / raw)
  To: qemu-devel

Thanks for that test case; unfortunately it works fine for me (both with
current git master and with commit b66e10e4c9ae7384).

Can you tell me what host machine you're running this on, and in
particular whether it is 32 bit or 64 bit? Commit b66e10e4c9ae7384 will
fix this hang for x86-64 (64-bit intel) hosts, but it will only be fixed
for 32-bit intel hosts by commit 3e904d6ade7 (which also fixes this for
aarch64, arm, ppc64 and s390x hosts).

If you are using a 32-bit x86 host that would explain the failure-vs-
success that you report in comment #56. I suspect from looking at the
qemu binaries that were in your test case tarball that you are using
32-bit.

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

Title:
  cmake hangs with qemu-arm-static

Status in QEMU:
  Fix Committed
Status in Linaro QEMU:
  Confirmed
Status in qemu-linaro package in Ubuntu:
  Confirmed

Bug description:
  I'm using git commit 3e7ecd976b06f... configured with --target-list
  =arm-linux-user --static in a chroot environment to compile some
  things. I ran into this problem with both pcl and opencv-2.3.1. cmake
  consistently freezes at some point during its execution, though in a
  different spot each time, usually during a step when it's searching
  for some libraries. For instance, pcl most commonly stops after:

  [snip]
  -- Boost version: 1.46.1
  -- Found the following Boost libraries:
  --   system
  --   filesystem
  --   thread
  --   date_time
  -- checking for module 'eigen3'
  --   found eigen3, version 3.0.1

  which is perplexing because it freezes after finding what it wants,
  not during the search. When it does get past that point, it does so
  almost immediately but freezes somewhere else.

  I'm using 64-bit Ubuntu 11.10 with kernel release 3.0.0-16-generic
  with an Intel i5.

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

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

* [Qemu-devel] [Bug 955379] Re: cmake hangs with qemu-arm-static
  2012-03-14 19:23 [Qemu-devel] [Bug 955379] [NEW] cmake hangs with qemu-arm-static Tom Mullins
                   ` (53 preceding siblings ...)
  2016-07-18 13:28 ` Peter Maydell
@ 2016-07-19  0:26 ` Luke Kim
  2016-07-21 10:11 ` Peter Maydell
                   ` (10 subsequent siblings)
  65 siblings, 0 replies; 74+ messages in thread
From: Luke Kim @ 2016-07-19  0:26 UTC (permalink / raw)
  To: qemu-devel

Thanks for your feedback.
I was running this on intel i7 Ubuntu 64bit.
but I used 32bit qemu as you suspected.

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

Title:
  cmake hangs with qemu-arm-static

Status in QEMU:
  Fix Committed
Status in Linaro QEMU:
  Confirmed
Status in qemu-linaro package in Ubuntu:
  Confirmed

Bug description:
  I'm using git commit 3e7ecd976b06f... configured with --target-list
  =arm-linux-user --static in a chroot environment to compile some
  things. I ran into this problem with both pcl and opencv-2.3.1. cmake
  consistently freezes at some point during its execution, though in a
  different spot each time, usually during a step when it's searching
  for some libraries. For instance, pcl most commonly stops after:

  [snip]
  -- Boost version: 1.46.1
  -- Found the following Boost libraries:
  --   system
  --   filesystem
  --   thread
  --   date_time
  -- checking for module 'eigen3'
  --   found eigen3, version 3.0.1

  which is perplexing because it freezes after finding what it wants,
  not during the search. When it does get past that point, it does so
  almost immediately but freezes somewhere else.

  I'm using 64-bit Ubuntu 11.10 with kernel release 3.0.0-16-generic
  with an Intel i5.

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

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

* [Qemu-devel] [Bug 955379] Re: cmake hangs with qemu-arm-static
  2012-03-14 19:23 [Qemu-devel] [Bug 955379] [NEW] cmake hangs with qemu-arm-static Tom Mullins
                   ` (54 preceding siblings ...)
  2016-07-19  0:26 ` Luke Kim
@ 2016-07-21 10:11 ` Peter Maydell
  2016-09-01 12:26 ` Luke Kim
                   ` (9 subsequent siblings)
  65 siblings, 0 replies; 74+ messages in thread
From: Peter Maydell @ 2016-07-21 10:11 UTC (permalink / raw)
  To: qemu-devel

OK, so the behaviour you saw is expected since we didn't fix 32-bit
hosts until a bit later; but they should both be fixed now.

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

Title:
  cmake hangs with qemu-arm-static

Status in QEMU:
  Fix Committed
Status in Linaro QEMU:
  Confirmed
Status in qemu-linaro package in Ubuntu:
  Confirmed

Bug description:
  I'm using git commit 3e7ecd976b06f... configured with --target-list
  =arm-linux-user --static in a chroot environment to compile some
  things. I ran into this problem with both pcl and opencv-2.3.1. cmake
  consistently freezes at some point during its execution, though in a
  different spot each time, usually during a step when it's searching
  for some libraries. For instance, pcl most commonly stops after:

  [snip]
  -- Boost version: 1.46.1
  -- Found the following Boost libraries:
  --   system
  --   filesystem
  --   thread
  --   date_time
  -- checking for module 'eigen3'
  --   found eigen3, version 3.0.1

  which is perplexing because it freezes after finding what it wants,
  not during the search. When it does get past that point, it does so
  almost immediately but freezes somewhere else.

  I'm using 64-bit Ubuntu 11.10 with kernel release 3.0.0-16-generic
  with an Intel i5.

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

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

* [Qemu-devel] [Bug 955379] Re: cmake hangs with qemu-arm-static
  2012-03-14 19:23 [Qemu-devel] [Bug 955379] [NEW] cmake hangs with qemu-arm-static Tom Mullins
                   ` (55 preceding siblings ...)
  2016-07-21 10:11 ` Peter Maydell
@ 2016-09-01 12:26 ` Luke Kim
  2016-09-02 21:43 ` T. Huth
                   ` (8 subsequent siblings)
  65 siblings, 0 replies; 74+ messages in thread
From: Luke Kim @ 2016-09-01 12:26 UTC (permalink / raw)
  To: qemu-devel

Hello, Peter Maydell
we have new qemu-arm hang issue.
I guess you are busy for new qemu 2.7 release.
But, could you please help us if you have time?

https://bugs.launchpad.net/qemu/+bug/1617929

Very thank you in advance :-)

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

Title:
  cmake hangs with qemu-arm-static

Status in QEMU:
  Fix Committed
Status in Linaro QEMU:
  Confirmed
Status in qemu-linaro package in Ubuntu:
  Confirmed

Bug description:
  I'm using git commit 3e7ecd976b06f... configured with --target-list
  =arm-linux-user --static in a chroot environment to compile some
  things. I ran into this problem with both pcl and opencv-2.3.1. cmake
  consistently freezes at some point during its execution, though in a
  different spot each time, usually during a step when it's searching
  for some libraries. For instance, pcl most commonly stops after:

  [snip]
  -- Boost version: 1.46.1
  -- Found the following Boost libraries:
  --   system
  --   filesystem
  --   thread
  --   date_time
  -- checking for module 'eigen3'
  --   found eigen3, version 3.0.1

  which is perplexing because it freezes after finding what it wants,
  not during the search. When it does get past that point, it does so
  almost immediately but freezes somewhere else.

  I'm using 64-bit Ubuntu 11.10 with kernel release 3.0.0-16-generic
  with an Intel i5.

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

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

* [Qemu-devel] [Bug 955379] Re: cmake hangs with qemu-arm-static
  2012-03-14 19:23 [Qemu-devel] [Bug 955379] [NEW] cmake hangs with qemu-arm-static Tom Mullins
                   ` (56 preceding siblings ...)
  2016-09-01 12:26 ` Luke Kim
@ 2016-09-02 21:43 ` T. Huth
  2018-04-13 10:13 ` TJ
                   ` (7 subsequent siblings)
  65 siblings, 0 replies; 74+ messages in thread
From: T. Huth @ 2016-09-02 21:43 UTC (permalink / raw)
  To: qemu-devel

Fixes should be part of QEMU v2.7.0, e.g.:
http://git.qemu.org/?p=qemu.git;a=commitdiff;h=014628a705bdaf31c09915
... so setting the status to "Fix Released" now.

** Changed in: qemu
       Status: Fix Committed => Fix Released

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

Title:
  cmake hangs with qemu-arm-static

Status in QEMU:
  Fix Released
Status in Linaro QEMU:
  Confirmed
Status in qemu-linaro package in Ubuntu:
  Confirmed

Bug description:
  I'm using git commit 3e7ecd976b06f... configured with --target-list
  =arm-linux-user --static in a chroot environment to compile some
  things. I ran into this problem with both pcl and opencv-2.3.1. cmake
  consistently freezes at some point during its execution, though in a
  different spot each time, usually during a step when it's searching
  for some libraries. For instance, pcl most commonly stops after:

  [snip]
  -- Boost version: 1.46.1
  -- Found the following Boost libraries:
  --   system
  --   filesystem
  --   thread
  --   date_time
  -- checking for module 'eigen3'
  --   found eigen3, version 3.0.1

  which is perplexing because it freezes after finding what it wants,
  not during the search. When it does get past that point, it does so
  almost immediately but freezes somewhere else.

  I'm using 64-bit Ubuntu 11.10 with kernel release 3.0.0-16-generic
  with an Intel i5.

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

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

* [Qemu-devel] [Bug 955379] Re: cmake hangs with qemu-arm-static
  2012-03-14 19:23 [Qemu-devel] [Bug 955379] [NEW] cmake hangs with qemu-arm-static Tom Mullins
                   ` (57 preceding siblings ...)
  2016-09-02 21:43 ` T. Huth
@ 2018-04-13 10:13 ` TJ
  2018-04-16  4:22 ` David Lechner
                   ` (6 subsequent siblings)
  65 siblings, 0 replies; 74+ messages in thread
From: TJ @ 2018-04-13 10:13 UTC (permalink / raw)
  To: qemu-devel

** Also affects: qemu (Ubuntu)
   Importance: Undecided
       Status: New

** Changed in: qemu (Ubuntu)
       Status: New => Confirmed

** Changed in: qemu (Ubuntu)
    Milestone: None => ubuntu-16.04.5

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

Title:
  cmake hangs with qemu-arm-static

Status in QEMU:
  Fix Released
Status in Linaro QEMU:
  Confirmed
Status in qemu package in Ubuntu:
  Confirmed
Status in qemu-linaro package in Ubuntu:
  Confirmed

Bug description:
  I'm using git commit 3e7ecd976b06f... configured with --target-list
  =arm-linux-user --static in a chroot environment to compile some
  things. I ran into this problem with both pcl and opencv-2.3.1. cmake
  consistently freezes at some point during its execution, though in a
  different spot each time, usually during a step when it's searching
  for some libraries. For instance, pcl most commonly stops after:

  [snip]
  -- Boost version: 1.46.1
  -- Found the following Boost libraries:
  --   system
  --   filesystem
  --   thread
  --   date_time
  -- checking for module 'eigen3'
  --   found eigen3, version 3.0.1

  which is perplexing because it freezes after finding what it wants,
  not during the search. When it does get past that point, it does so
  almost immediately but freezes somewhere else.

  I'm using 64-bit Ubuntu 11.10 with kernel release 3.0.0-16-generic
  with an Intel i5.

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

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

* [Qemu-devel] [Bug 955379] Re: cmake hangs with qemu-arm-static
  2012-03-14 19:23 [Qemu-devel] [Bug 955379] [NEW] cmake hangs with qemu-arm-static Tom Mullins
                   ` (58 preceding siblings ...)
  2018-04-13 10:13 ` TJ
@ 2018-04-16  4:22 ` David Lechner
  2018-04-16  4:43 ` David Lechner
                   ` (5 subsequent siblings)
  65 siblings, 0 replies; 74+ messages in thread
From: David Lechner @ 2018-04-16  4:22 UTC (permalink / raw)
  To: qemu-devel

I am seeing the same symptoms as the original poster. I'm building the
opencv package in a debian stretch armfh chroot on a ubuntu bionic amd64
host. So, I'm guessing that the race condition wasn't entirely fixed or
there has been some sort of regression.

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

Title:
  cmake hangs with qemu-arm-static

Status in QEMU:
  Fix Released
Status in Linaro QEMU:
  Confirmed
Status in qemu package in Ubuntu:
  Confirmed
Status in qemu-linaro package in Ubuntu:
  Confirmed

Bug description:
  I'm using git commit 3e7ecd976b06f... configured with --target-list
  =arm-linux-user --static in a chroot environment to compile some
  things. I ran into this problem with both pcl and opencv-2.3.1. cmake
  consistently freezes at some point during its execution, though in a
  different spot each time, usually during a step when it's searching
  for some libraries. For instance, pcl most commonly stops after:

  [snip]
  -- Boost version: 1.46.1
  -- Found the following Boost libraries:
  --   system
  --   filesystem
  --   thread
  --   date_time
  -- checking for module 'eigen3'
  --   found eigen3, version 3.0.1

  which is perplexing because it freezes after finding what it wants,
  not during the search. When it does get past that point, it does so
  almost immediately but freezes somewhere else.

  I'm using 64-bit Ubuntu 11.10 with kernel release 3.0.0-16-generic
  with an Intel i5.

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

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

* [Qemu-devel] [Bug 955379] Re: cmake hangs with qemu-arm-static
  2012-03-14 19:23 [Qemu-devel] [Bug 955379] [NEW] cmake hangs with qemu-arm-static Tom Mullins
                   ` (59 preceding siblings ...)
  2018-04-16  4:22 ` David Lechner
@ 2018-04-16  4:43 ` David Lechner
  2018-04-16  6:48 ` ChristianEhrhardt
                   ` (4 subsequent siblings)
  65 siblings, 0 replies; 74+ messages in thread
From: David Lechner @ 2018-04-16  4:43 UTC (permalink / raw)
  To: qemu-devel

Steps to reproduce:

# on ubuntu bionic amd64 host
sudo apt-add-repository ppa:ev3dev/tools
# assuming apt-add-repository does apt update now
sudo apt install pbuilder-ev3dev git
git clone --depth=1 https://github.com/ev3dev/opencv
cd opencv
OS=debian ARCH=armhf DIST=stretch pbuilder-ev3dev base
OS=debian ARCH=armhf DIST=stretch pbuilder-ev3dev dev-build

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

Title:
  cmake hangs with qemu-arm-static

Status in QEMU:
  Fix Released
Status in Linaro QEMU:
  Confirmed
Status in qemu package in Ubuntu:
  Confirmed
Status in qemu-linaro package in Ubuntu:
  Confirmed

Bug description:
  I'm using git commit 3e7ecd976b06f... configured with --target-list
  =arm-linux-user --static in a chroot environment to compile some
  things. I ran into this problem with both pcl and opencv-2.3.1. cmake
  consistently freezes at some point during its execution, though in a
  different spot each time, usually during a step when it's searching
  for some libraries. For instance, pcl most commonly stops after:

  [snip]
  -- Boost version: 1.46.1
  -- Found the following Boost libraries:
  --   system
  --   filesystem
  --   thread
  --   date_time
  -- checking for module 'eigen3'
  --   found eigen3, version 3.0.1

  which is perplexing because it freezes after finding what it wants,
  not during the search. When it does get past that point, it does so
  almost immediately but freezes somewhere else.

  I'm using 64-bit Ubuntu 11.10 with kernel release 3.0.0-16-generic
  with an Intel i5.

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

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

* [Qemu-devel] [Bug 955379] Re: cmake hangs with qemu-arm-static
  2012-03-14 19:23 [Qemu-devel] [Bug 955379] [NEW] cmake hangs with qemu-arm-static Tom Mullins
                   ` (60 preceding siblings ...)
  2018-04-16  4:43 ` David Lechner
@ 2018-04-16  6:48 ` ChristianEhrhardt
  2018-04-16  6:53 ` ChristianEhrhardt
                   ` (3 subsequent siblings)
  65 siblings, 0 replies; 74+ messages in thread
From: ChristianEhrhardt @ 2018-04-16  6:48 UTC (permalink / raw)
  To: qemu-devel

** Also affects: qemu (Ubuntu Xenial)
   Importance: Undecided
       Status: New

** Also affects: qemu-linaro (Ubuntu Xenial)
   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/955379

Title:
  cmake hangs with qemu-arm-static

Status in QEMU:
  Fix Released
Status in Linaro QEMU:
  Confirmed
Status in qemu package in Ubuntu:
  Fix Released
Status in qemu-linaro package in Ubuntu:
  Confirmed
Status in qemu source package in Xenial:
  Incomplete
Status in qemu-linaro source package in Xenial:
  New

Bug description:
  I'm using git commit 3e7ecd976b06f... configured with --target-list
  =arm-linux-user --static in a chroot environment to compile some
  things. I ran into this problem with both pcl and opencv-2.3.1. cmake
  consistently freezes at some point during its execution, though in a
  different spot each time, usually during a step when it's searching
  for some libraries. For instance, pcl most commonly stops after:

  [snip]
  -- Boost version: 1.46.1
  -- Found the following Boost libraries:
  --   system
  --   filesystem
  --   thread
  --   date_time
  -- checking for module 'eigen3'
  --   found eigen3, version 3.0.1

  which is perplexing because it freezes after finding what it wants,
  not during the search. When it does get past that point, it does so
  almost immediately but freezes somewhere else.

  I'm using 64-bit Ubuntu 11.10 with kernel release 3.0.0-16-generic
  with an Intel i5.

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

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

* [Qemu-devel] [Bug 955379] Re: cmake hangs with qemu-arm-static
  2012-03-14 19:23 [Qemu-devel] [Bug 955379] [NEW] cmake hangs with qemu-arm-static Tom Mullins
                   ` (61 preceding siblings ...)
  2018-04-16  6:48 ` ChristianEhrhardt
@ 2018-04-16  6:53 ` ChristianEhrhardt
  2018-04-16 22:43 ` David Lechner
                   ` (2 subsequent siblings)
  65 siblings, 0 replies; 74+ messages in thread
From: ChristianEhrhardt @ 2018-04-16  6:53 UTC (permalink / raw)
  To: qemu-devel

That means our assumption taken in comment #63 that it was fixed in
http://git.qemu.org/?p=qemu.git;a=commitdiff;h=014628a705bdaf31c09915
either was wrong (unset fix released) - or this is a similar but not the
same issue (which would imply a new bug since this already has plenty of
potentially mismatching history).

Given the time this was considered closed I'd vote for a new bug to analyze things from scratch.
@David - would you mind opening a new bug?

@TJ - before considering backporting something of the current solution to xenial, (all other releases are >=2.7) would you mind testing e.g. qemu 2.10 via [1].
Also a trivial reproducer will help to make this SRUable, like David added his (for the probably new issue). Or is the one in comment #58 representing your case as well?

[1]: https://wiki.ubuntu.com/OpenStack/CloudArchive#Pike

** Changed in: qemu (Ubuntu Xenial)
       Status: New => Incomplete

** Changed in: qemu (Ubuntu)
       Status: Confirmed => Fix Released

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

Title:
  cmake hangs with qemu-arm-static

Status in QEMU:
  Fix Released
Status in Linaro QEMU:
  Confirmed
Status in qemu package in Ubuntu:
  Fix Released
Status in qemu-linaro package in Ubuntu:
  Confirmed
Status in qemu source package in Xenial:
  Incomplete
Status in qemu-linaro source package in Xenial:
  New

Bug description:
  I'm using git commit 3e7ecd976b06f... configured with --target-list
  =arm-linux-user --static in a chroot environment to compile some
  things. I ran into this problem with both pcl and opencv-2.3.1. cmake
  consistently freezes at some point during its execution, though in a
  different spot each time, usually during a step when it's searching
  for some libraries. For instance, pcl most commonly stops after:

  [snip]
  -- Boost version: 1.46.1
  -- Found the following Boost libraries:
  --   system
  --   filesystem
  --   thread
  --   date_time
  -- checking for module 'eigen3'
  --   found eigen3, version 3.0.1

  which is perplexing because it freezes after finding what it wants,
  not during the search. When it does get past that point, it does so
  almost immediately but freezes somewhere else.

  I'm using 64-bit Ubuntu 11.10 with kernel release 3.0.0-16-generic
  with an Intel i5.

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

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

* [Qemu-devel] [Bug 955379] Re: cmake hangs with qemu-arm-static
  2012-03-14 19:23 [Qemu-devel] [Bug 955379] [NEW] cmake hangs with qemu-arm-static Tom Mullins
                   ` (62 preceding siblings ...)
  2018-04-16  6:53 ` ChristianEhrhardt
@ 2018-04-16 22:43 ` David Lechner
  2018-06-29 14:58 ` Łukasz Zemczak
  2018-06-29 16:13 ` Peter Maydell
  65 siblings, 0 replies; 74+ messages in thread
From: David Lechner @ 2018-04-16 22:43 UTC (permalink / raw)
  To: qemu-devel

I have filed a new bug:
https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1764555

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

Title:
  cmake hangs with qemu-arm-static

Status in QEMU:
  Fix Released
Status in Linaro QEMU:
  Confirmed
Status in qemu package in Ubuntu:
  Fix Released
Status in qemu-linaro package in Ubuntu:
  Confirmed
Status in qemu source package in Xenial:
  Incomplete
Status in qemu-linaro source package in Xenial:
  New

Bug description:
  I'm using git commit 3e7ecd976b06f... configured with --target-list
  =arm-linux-user --static in a chroot environment to compile some
  things. I ran into this problem with both pcl and opencv-2.3.1. cmake
  consistently freezes at some point during its execution, though in a
  different spot each time, usually during a step when it's searching
  for some libraries. For instance, pcl most commonly stops after:

  [snip]
  -- Boost version: 1.46.1
  -- Found the following Boost libraries:
  --   system
  --   filesystem
  --   thread
  --   date_time
  -- checking for module 'eigen3'
  --   found eigen3, version 3.0.1

  which is perplexing because it freezes after finding what it wants,
  not during the search. When it does get past that point, it does so
  almost immediately but freezes somewhere else.

  I'm using 64-bit Ubuntu 11.10 with kernel release 3.0.0-16-generic
  with an Intel i5.

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

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

* [Qemu-devel] [Bug 955379] Re: cmake hangs with qemu-arm-static
  2012-03-14 19:23 [Qemu-devel] [Bug 955379] [NEW] cmake hangs with qemu-arm-static Tom Mullins
                   ` (63 preceding siblings ...)
  2018-04-16 22:43 ` David Lechner
@ 2018-06-29 14:58 ` Łukasz Zemczak
  2018-06-29 16:13 ` Peter Maydell
  65 siblings, 0 replies; 74+ messages in thread
From: Łukasz Zemczak @ 2018-06-29 14:58 UTC (permalink / raw)
  To: qemu-devel

What's the status of this bug? I see LP: #1764555 has been marked as invalid as the test environment was tainted - does this imply the fix was correct and everything is working as intended?
The bug is marked for 16.04.5. If it's still something we intent to get released for the point-release we would need someone to prepare an SRU as soon as possible.

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

Title:
  cmake hangs with qemu-arm-static

Status in QEMU:
  Fix Released
Status in Linaro QEMU:
  Confirmed
Status in qemu package in Ubuntu:
  Fix Released
Status in qemu-linaro package in Ubuntu:
  Confirmed
Status in qemu source package in Xenial:
  Incomplete
Status in qemu-linaro source package in Xenial:
  New

Bug description:
  I'm using git commit 3e7ecd976b06f... configured with --target-list
  =arm-linux-user --static in a chroot environment to compile some
  things. I ran into this problem with both pcl and opencv-2.3.1. cmake
  consistently freezes at some point during its execution, though in a
  different spot each time, usually during a step when it's searching
  for some libraries. For instance, pcl most commonly stops after:

  [snip]
  -- Boost version: 1.46.1
  -- Found the following Boost libraries:
  --   system
  --   filesystem
  --   thread
  --   date_time
  -- checking for module 'eigen3'
  --   found eigen3, version 3.0.1

  which is perplexing because it freezes after finding what it wants,
  not during the search. When it does get past that point, it does so
  almost immediately but freezes somewhere else.

  I'm using 64-bit Ubuntu 11.10 with kernel release 3.0.0-16-generic
  with an Intel i5.

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

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

* [Qemu-devel] [Bug 955379] Re: cmake hangs with qemu-arm-static
  2012-03-14 19:23 [Qemu-devel] [Bug 955379] [NEW] cmake hangs with qemu-arm-static Tom Mullins
                   ` (64 preceding siblings ...)
  2018-06-29 14:58 ` Łukasz Zemczak
@ 2018-06-29 16:13 ` Peter Maydell
  65 siblings, 0 replies; 74+ messages in thread
From: Peter Maydell @ 2018-06-29 16:13 UTC (permalink / raw)
  To: qemu-devel

>From upstream QEMU's point of view the status of this bug is "it's an
old bug report that tended to accumulate 'this seems like it's the same
as my bug' extra comments; we have fixed the underlying cause of the
original bug,  so leave this one closed and file new ones with proper
reproducer instructions if necessary".

LP: #1764555 was closed because it was "bug submitter was still running
the old QEMU version and didn't realise it".

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

Title:
  cmake hangs with qemu-arm-static

Status in QEMU:
  Fix Released
Status in Linaro QEMU:
  Confirmed
Status in qemu package in Ubuntu:
  Fix Released
Status in qemu-linaro package in Ubuntu:
  Confirmed
Status in qemu source package in Xenial:
  Incomplete
Status in qemu-linaro source package in Xenial:
  New

Bug description:
  I'm using git commit 3e7ecd976b06f... configured with --target-list
  =arm-linux-user --static in a chroot environment to compile some
  things. I ran into this problem with both pcl and opencv-2.3.1. cmake
  consistently freezes at some point during its execution, though in a
  different spot each time, usually during a step when it's searching
  for some libraries. For instance, pcl most commonly stops after:

  [snip]
  -- Boost version: 1.46.1
  -- Found the following Boost libraries:
  --   system
  --   filesystem
  --   thread
  --   date_time
  -- checking for module 'eigen3'
  --   found eigen3, version 3.0.1

  which is perplexing because it freezes after finding what it wants,
  not during the search. When it does get past that point, it does so
  almost immediately but freezes somewhere else.

  I'm using 64-bit Ubuntu 11.10 with kernel release 3.0.0-16-generic
  with an Intel i5.

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

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

end of thread, other threads:[~2018-06-29 16:25 UTC | newest]

Thread overview: 74+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-14 19:23 [Qemu-devel] [Bug 955379] [NEW] cmake hangs with qemu-arm-static Tom Mullins
2012-05-09 15:13 ` [Qemu-devel] [Bug 955379] " David Sugar
2012-11-21 23:12 ` Ricardo Salveti
2012-11-21 23:13 ` Tim Penhey
2012-11-21 23:13 ` Ricardo Salveti
2012-11-22  9:25 ` Peter Maydell
2012-11-23 11:20 ` Launchpad Bug Tracker
2012-11-25 20:40 ` Tim Penhey
2012-11-25 21:35   ` Peter Maydell
2012-11-28  8:42 ` Janne Karhunen
2012-11-28  9:02   ` Peter Maydell
2012-11-29  9:34 ` Janne Karhunen
2012-11-29  9:40 ` Janne Karhunen
2012-11-30 15:56 ` Peter Maydell
2012-11-30 16:23 ` Janne Karhunen
2012-11-30 16:38 ` Peter Maydell
2012-11-30 17:17 ` Peter Maydell
2012-12-01 10:29 ` Janne Karhunen
2012-12-01 11:27   ` Peter Maydell
2012-12-03 21:20     ` Alexander Graf
2012-12-03 21:57       ` Peter Maydell
2012-12-02 13:03 ` Peter Maydell
2012-12-04  6:41 ` Janne Karhunen
2012-12-04  9:32 ` Peter Maydell
2012-12-04 11:21 ` Janne Karhunen
2012-12-04 11:39   ` Peter Maydell
2012-12-04 11:43 ` Janne Karhunen
2012-12-04 12:25 ` Janne Karhunen
2012-12-05  9:03 ` Janne Karhunen
2012-12-05 11:29 ` Janne Karhunen
2012-12-05 12:19 ` Ubuntu Foundations Team Bug Bot
2013-01-18 12:10 ` Luke Kim
2013-01-21  9:17 ` Janne Karhunen
2013-04-12 10:25 ` Luke Kim
2013-04-15  9:42 ` Janne Karhunen
2014-07-09  6:30 ` Luke Kim
2014-07-09 21:57 ` Peter Maydell
2014-07-11 10:00 ` vitaly.v.ch
2014-07-11 10:01 ` vitaly.v.ch
2014-07-11 14:35 ` Peter Maydell
2014-07-18 17:22 ` Peter Maydell
2015-09-19 18:29 ` skunk
2015-09-19 21:01 ` Peter Maydell
2015-09-19 23:31 ` skunk
2015-09-20  4:52   ` Peter Crosthwaite
2015-09-22 15:16 ` skunk
2016-05-12 15:29 ` Peter Maydell
2016-05-12 15:44 ` skunk
2016-05-12 16:23 ` Peter Maydell
2016-05-20 21:56 ` Jools Wills
2016-06-07 16:34 ` Peter Maydell
2016-06-07 16:43 ` Jools Wills
2016-06-09  5:21 ` Riku Voipio
2016-06-09  6:20 ` Riku Voipio
2016-06-10  8:10 ` Luke Kim
2016-06-16 12:32 ` Peter Maydell
2016-07-14  7:43 ` Luke Kim
2016-07-14  9:43 ` Peter Maydell
2016-07-15  6:32 ` Luke Kim
2016-07-15  8:46 ` Peter Maydell
2016-07-16 10:01 ` Luke Kim
2016-07-18 13:28 ` Peter Maydell
2016-07-19  0:26 ` Luke Kim
2016-07-21 10:11 ` Peter Maydell
2016-09-01 12:26 ` Luke Kim
2016-09-02 21:43 ` T. Huth
2018-04-13 10:13 ` TJ
2018-04-16  4:22 ` David Lechner
2018-04-16  4:43 ` David Lechner
2018-04-16  6:48 ` ChristianEhrhardt
2018-04-16  6:53 ` ChristianEhrhardt
2018-04-16 22:43 ` David Lechner
2018-06-29 14:58 ` Łukasz Zemczak
2018-06-29 16:13 ` Peter Maydell

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.