summary refs log tree commit diff stats
path: root/results/classifier/user-mode-bugs/578
diff options
context:
space:
mode:
authorChristian Krinitsin <mail@krinitsin.com>2025-07-05 20:00:38 +0200
committerChristian Krinitsin <mail@krinitsin.com>2025-07-05 20:00:38 +0200
commit96049c939b1916d80532630d63c14e04d5244f1d (patch)
tree7fb9df428f074078e714f1e038210cdff887185a /results/classifier/user-mode-bugs/578
parent40bbb77d4dfebff4f99c2f90b2c0db737b0ecc5a (diff)
downloadqemu-analysis-96049c939b1916d80532630d63c14e04d5244f1d.tar.gz
qemu-analysis-96049c939b1916d80532630d63c14e04d5244f1d.zip
lock user-mode and semantic-bugs
Diffstat (limited to 'results/classifier/user-mode-bugs/578')
-rw-r--r--results/classifier/user-mode-bugs/57832
1 files changed, 32 insertions, 0 deletions
diff --git a/results/classifier/user-mode-bugs/578 b/results/classifier/user-mode-bugs/578
new file mode 100644
index 000000000..615b37080
--- /dev/null
+++ b/results/classifier/user-mode-bugs/578
@@ -0,0 +1,32 @@
+
+
+getdomainname() is not implemented in QEMU user mode on Linux/sparc64
+Description of problem:
+The `getdomainname()` function fails, instead of succeeding.
+Steps to reproduce:
+[foo.c](/uploads/7586c9aab788855b232a5c2f6aaeb4fc/foo.c)
+
+1.
+```
+# apt install g++-10-sparc64-linux-gnu
+# mkdir -p /usr/sparc64-linux-gnu/etc
+# touch /usr/sparc64-linux-gnu/etc/ld.so.cache
+```
+2.
+```
+$ sparc64-linux-gnu-gcc-10 -Wall -static foo.c
+```
+[a.out](/uploads/39d291b95caa182d74b0b622a82667e8/a.out)
+
+3. Transfer the a.out file to a Linux/sparc64 machine; execute it there. It prints
+```
+result: (none)
+```
+4.
+```
+$ QEMU_LD_PREFIX=/usr/sparc64-linux-gnu ~/inst-qemu/6.1.0/bin/qemu-sparc64 ./a.out
+```
+Expected: `result: (none)`
+Actual: `getdomainname: Function not implemented`
+Additional information:
+