summary refs log tree commit diff stats
path: root/results/classifier/zero-shot-user-mode/instruction/1807
blob: 311d69b5ee41d84017904cf7e5dd980c701e1d33 (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
instruction: 0.588
runtime: 0.209
syscall: 0.203



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
```