blob: c1b53ab4ff4f7560b8ee32ca633d06ce3e9cb284 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
graphic: 0.860
instruction: 0.739
device: 0.661
semantic: 0.653
mistranslation: 0.353
vnc: 0.331
socket: 0.328
network: 0.286
other: 0.268
boot: 0.254
assembly: 0.203
KVM: 0.063
sparc64 always segfaults doesn't work on Ubuntu 23.04
Description of problem:
It segfaults when it tries to use 'printf' or 'puts' to print to the screen.
Steps to 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 <stdio.h> \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
```
|