summary refs log tree commit diff stats
path: root/gitlab/issues/target_m68k/host_missing/accel_TCG/2078.toml
diff options
context:
space:
mode:
authorChristian Krinitsin <mail@krinitsin.com>2025-05-21 21:21:26 +0200
committerChristian Krinitsin <mail@krinitsin.com>2025-05-21 21:21:26 +0200
commit4b927bc37359dec23f67d3427fc982945f24f404 (patch)
tree245449ef9146942dc7fffd0235b48b7e70a00bf2 /gitlab/issues/target_m68k/host_missing/accel_TCG/2078.toml
parentaa8bd79cec7bf6790ddb01d156c2ef2201abbaab (diff)
downloadqemu-analysis-4b927bc37359dec23f67d3427fc982945f24f404.tar.gz
qemu-analysis-4b927bc37359dec23f67d3427fc982945f24f404.zip
add gitlab issues in toml format
Diffstat (limited to 'gitlab/issues/target_m68k/host_missing/accel_TCG/2078.toml')
-rw-r--r--gitlab/issues/target_m68k/host_missing/accel_TCG/2078.toml42
1 files changed, 42 insertions, 0 deletions
diff --git a/gitlab/issues/target_m68k/host_missing/accel_TCG/2078.toml b/gitlab/issues/target_m68k/host_missing/accel_TCG/2078.toml
new file mode 100644
index 000000000..601c77e13
--- /dev/null
+++ b/gitlab/issues/target_m68k/host_missing/accel_TCG/2078.toml
@@ -0,0 +1,42 @@
+id = 2078
+title = "Qemu crashes with SIGFPE on certain trapping arithmetic operations on m68k target"
+state = "opened"
+created_at = "2024-01-07T17:26:27.825Z"
+closed_at = "n/a"
+labels = ["accel: TCG", "target: m68k"]
+url = "https://gitlab.com/qemu-project/qemu/-/issues/2078"
+host-os = "NetBSD"
+host-arch = "x86-64"
+qemu-version = "QEMU emulator version 8.1.3"
+guest-os = "NetBSD"
+guest-arch = "m68k"
+description = """I recently ported NetBSD to the Qemu m68k "virt" platform, and this was discovered when running NetBSD's automated tests.  Certain arithmetic operation that will trap in the guest will crash Qemu.  First case encountered is below."""
+reproduce = """1. Compile and run the following program in the m68k guest:
+
+```
+virt68k:thorpej 3$ cat crash-qemu.c                                            
+#include <limits.h>
+#include <stdlib.h>
+
+int divisor = -1;
+
+int
+main(int argc, char *argv[])
+{
+
+\tif (argc > 1)
+\t\tdivisor = atoi(argv[1]);
+
+\treturn INT_MIN / divisor;
+}
+virt68k:thorpej 4$ 
+```
+
+Another minimal case would be:
+
+```
+move.l #-2147483648,%d0
+move.l #-1,%d1
+divsl.l %d1,%d1:%d0
+```"""
+additional = """"""