id = 1807 title = "sparc64 always segfaults doesn't work on Ubuntu 23.04" state = "closed" created_at = "2023-08-03T21:30:22.072Z" closed_at = "2023-08-06T03:24:16.447Z" labels = ["Closed::Invalid", "linux-user", "target: sparc"] url = "https://gitlab.com/qemu-project/qemu/-/issues/1807" host-os = "Ubuntu 23.04" host-arch = "x86_64" qemu-version = "7.2" guest-os = "n/a" guest-arch = "n/a" description = """It segfaults when it tries to use 'printf' or 'puts' to print to the screen.""" reproduce = """Do the following at the command line ``` $ sparc64-linux-gnu-g++ --version sparc64-linux-gnu-g++ (Ubuntu 12.2.0-14ubuntu2) 12.2.0 Copyright (C) 2022 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. $ echo -e "#include \\n int main(void) { puts(\\"Hello World\\"); }" > test.cpp $ sparc64-linux-gnu-g++ -o test test.cpp -static $ qemu-sparc64-static --version qemu-sparc64 version 7.2.0 (Debian 1:7.2+dfsg-5ubuntu2) Copyright (c) 2003-2022 Fabrice Bellard and the QEMU Project developers $ qemu-sparc64-static ./test Segmentation fault (core dumped) $ qemu-sparc-static ./test qemu-sparc-static: ./test: Invalid ELF image for this architecture $ qemu-sparc32plus-static ./test qemu-sparc32plus-static: ./test: Invalid ELF image for this architecture ```""" additional = "n/a"