qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Aaro Koskinen <1920602@bugs.launchpad.net>
To: qemu-devel@nongnu.org
Subject: [Bug 1920602] [NEW] QEMU crash after a QuickBASIC program integer overflow
Date: Sat, 20 Mar 2021 13:08:21 -0000	[thread overview]
Message-ID: <161624570188.19824.1091833072893020317.malonedeb@wampee.canonical.com> (raw)

Public bug reported:

A trivial program compiled with QuickBASIC 4.5 with integer overflow
will crash QEMU when ran under MS-DOS 5.0 or FreeDOS 1.2:

C:\KILLER>type killer.bas
A% = VAL("99999"):PRINT A%

C:\KILLER>killer.exe
**
  ERROR:../qemu-5.2.0/accel/tcg/tcg-cpus.c:541:tcg_handle_interrupt: assertion failed: (qemu_mutex_iothread_locked())
Aborted

QEMU version v5.2, compiler for ARM, and started with command line:

qemu-system-i386 -curses -cpu 486 -m 1 -drive dos.img

The same test under Ubuntu QEMU and KVM/x86_64 (QEMU emulator version
4.2.1 (Debian 1:4.2-3ubuntu6.14)) will just silently hang the QEMU. On
DOSBOX, the machine does not die and program outputs the value -31073.

The EXE to reproduce the issue is attached.

** Affects: qemu
     Importance: Undecided
         Status: New

** Attachment added: "KILLER.EXE"
   https://bugs.launchpad.net/bugs/1920602/+attachment/5478465/+files/KILLER.EXE

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

Title:
  QEMU crash after a QuickBASIC program integer overflow

Status in QEMU:
  New

Bug description:
  A trivial program compiled with QuickBASIC 4.5 with integer overflow
  will crash QEMU when ran under MS-DOS 5.0 or FreeDOS 1.2:

  C:\KILLER>type killer.bas
  A% = VAL("99999"):PRINT A%

  C:\KILLER>killer.exe
  **
    ERROR:../qemu-5.2.0/accel/tcg/tcg-cpus.c:541:tcg_handle_interrupt: assertion failed: (qemu_mutex_iothread_locked())
  Aborted

  QEMU version v5.2, compiler for ARM, and started with command line:

  qemu-system-i386 -curses -cpu 486 -m 1 -drive dos.img

  The same test under Ubuntu QEMU and KVM/x86_64 (QEMU emulator version
  4.2.1 (Debian 1:4.2-3ubuntu6.14)) will just silently hang the QEMU. On
  DOSBOX, the machine does not die and program outputs the value -31073.

  The EXE to reproduce the issue is attached.

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


             reply	other threads:[~2021-03-20 13:16 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-20 13:08 Aaro Koskinen [this message]
2021-03-20 13:14 ` [Bug 1920602] Re: QEMU crash after a QuickBASIC program integer overflow Aaro Koskinen
2021-03-20 14:44 ` Aaro Koskinen
2021-03-20 15:41 ` Aaro Koskinen
2021-05-09 20:17 ` Aaro Koskinen
2021-05-09 21:14 ` Philippe Mathieu-Daudé
2021-05-09 21:42 ` Philippe Mathieu-Daudé
2021-05-10  5:34 ` Philippe Mathieu-Daudé
2021-05-15 14:04 ` Thomas Huth

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=161624570188.19824.1091833072893020317.malonedeb@wampee.canonical.com \
    --to=1920602@bugs.launchpad.net \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).