Qemu cmdline core dumped with more(8193 or more) cpus

Bug #2055003 reported by bugproxy
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
The Ubuntu-power-systems project
Fix Released
High
Ubuntu on IBM Power Systems Bug Triage
qemu (Ubuntu)
Fix Released
High
Sergio Durigan Junior
Noble
Fix Released
High
Sergio Durigan Junior

Bug Description

---Debugger---
A debugger is not configured

---Steps to Reproduce---

---Problem Description---
 Qemu cmdline core dumped with more(8193 or more) cpus

---Debugger---
A debugger is not configured

---Steps to Reproduce---
 Qemu cmdline core dumped when more number of CPUs were given.

[root@ltcmihawk39 ~]# qemu-system-ppc64 -accel tcg -smp 10,maxcpus=9000
**
ERROR:../tcg/region.c:782:tcg_region_init: assertion failed: (region_size >= 2 * page_size)
Bail out! ERROR:../tcg/region.c:782:tcg_region_init: assertion failed: (region_size >= 2 * page_size)
Aborted (core dumped)

Expected Result:
Warning message like "Number of cpus requested exceeds the cpus supported"

Actual Result:
core dumped

Steps to Reproduce:
--------------------

1. Clone the upstream qemu from https://gitlab.com/qemu-project/qemu.git
2. Compile qemu with below steps.
    cd qemu/
    git submodule init
    git submodule update --recursive
    ./configure --target-list=ppc64-softmmu --prefix=/usr
    make
    make install
3. set maxcpus=8193 or more

[root@ltcmihawk39 ~]# qemu-system-ppc64 --version
QEMU emulator version 8.0.94 (v8.1.0-rc4)
Copyright (c) 2003-2023 Fabrice Bellard and the QEMU Project developers

NOTE: This behavior is observed only when qemu is built without disabling the tcg.

Contact Information = <email address hidden>

Machine Type = x

---uname output---
x

Action needed

Our IBM Dev want to include this patch in latest Canonical distro.

Need the distro to review and integrate fixes provided by IBM

https://github.com/qemu/qemu/commit/c4f91d7b7be76c47015521ab0109c6e998a369b0

Need to include this commit in latest Canonical distro.

Related branches

bugproxy (bugproxy)
tags: added: architecture-ppc64le bugnameltc-205716 severity-high targetmilestone-inin---
Changed in ubuntu:
assignee: nobody → Ubuntu on IBM Power Systems Bug Triage (ubuntu-power-triage)
affects: ubuntu → qemu (Ubuntu)
Frank Heimes (fheimes)
no longer affects: qemu
Changed in ubuntu-power-systems:
assignee: nobody → Ubuntu on IBM Power Systems Bug Triage (ubuntu-power-triage)
Changed in qemu (Ubuntu):
assignee: Ubuntu on IBM Power Systems Bug Triage (ubuntu-power-triage) → nobody
Changed in ubuntu-power-systems:
importance: Undecided → High
Changed in qemu (Ubuntu):
importance: Undecided → High
Revision history for this message
Michael Tokarev (mjt+launchpad-tls) wrote :

FWIW, this bug tracker is not used for qemu for a long time. See https://gitlab.com/qemu-project/qemu/ instead.

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Hi Michael,
as I read it this is just for tracking the integration of the patch which is already upstream to go into Ubuntu - in that case the tracker is correct.

But it was wrong in the beginning, yet Frank fixed it and your comments raced.

@Frank maybe some teaching needed to have bugproxy open it in the right place to begin with?

Revision history for this message
Frank Heimes (fheimes) wrote :

quilt patch for commit c4f91d7b7be

Frank Heimes (fheimes)
tags: added: noble
Changed in ubuntu-power-systems:
status: New → Triaged
Changed in qemu (Ubuntu Noble):
status: New → Triaged
Changed in qemu (Ubuntu Noble):
assignee: nobody → Sergio Durigan Junior (sergiodj)
tags: added: server-todo
tags: added: patch
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package qemu - 1:8.2.1+ds-1ubuntu8

---------------
qemu (1:8.2.1+ds-1ubuntu8) noble; urgency=medium

  * d/p/u/lp2012763-maxcpus-too-low.patch: Actually set the max_cpus
    property of the new Mantic machine types. (LP: #2012763)

 -- Sergio Durigan Junior <email address hidden> Mon, 25 Mar 2024 14:58:39 -0400

Changed in qemu (Ubuntu Noble):
status: Triaged → Fix Released
Frank Heimes (fheimes)
Changed in ubuntu-power-systems:
status: Triaged → Fix Released
Revision history for this message
bugproxy (bugproxy) wrote : Comment bridged from LTC Bugzilla

------- Comment From <email address hidden> 2024-04-18 11:45 EDT-------
I have verified this bug on latest Ubuntu24.04 Host and the issue is not getting reproduced anymore!

root@ubuntu2404lp2:~# qemu-system-ppc64 -accel tcg -smp 10,maxcpus=9000
qemu-system-ppc64: Invalid SMP CPUs 9000. The max CPUs supported by machine 'pseries-noble' is 4096

root@ubuntu2404lp2:~# qemu-system-ppc64 -accel tcg -smp 10,maxcpus=123456789
qemu-system-ppc64: Invalid SMP CPUs 123456789. The max CPUs supported by machine 'pseries-noble' is 4096

kernel: 6.8.0-22-generic ppc64le ppc64le GNU/Linux
qemu: QEMU emulator version 8.2.2 (Debian 1:8.2.2+ds-0ubuntu1)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.