From d0c85e36e4de67af628d54e9ab577cc3fad7796a Mon Sep 17 00:00:00 2001 From: Christian Krinitsin Date: Thu, 3 Jul 2025 07:27:52 +0000 Subject: add deepseek and gemma results --- results/classifier/gemma3:12b/debug/1963 | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 results/classifier/gemma3:12b/debug/1963 (limited to 'results/classifier/gemma3:12b/debug/1963') diff --git a/results/classifier/gemma3:12b/debug/1963 b/results/classifier/gemma3:12b/debug/1963 new file mode 100644 index 00000000..db34bf0c --- /dev/null +++ b/results/classifier/gemma3:12b/debug/1963 @@ -0,0 +1,29 @@ + +EOF is not detected, when semihosting is reading from stdin +Description of problem: +QEMU hangs. +Steps to reproduce: +1. Run the program with stdin from a pipe. +Additional information: +The code is compiled from this source: +``` +#include + +int main(int argc, char** argv) { + int i = -1; + int result = scanf("%d", &i); + printf("result = %d, i = %d\n", result, i); + return 0; +} +``` +compiled with GCC and picolibc: +``` +arm-none-eabi-gcc --specs=picolibc.specs -march=armv7-m ~/sources/picolibc/git/test-stdin.c -o test-stdin -lc -lsemihost --crt0=hosted -O0 -g +``` +[test-stdin](/uploads/dbd2650c8e0aaca353fd7630ac9c8440/test-stdin) +The execution hangs at semihosting SYS_READC(0x7) call: +``` + movs r0, #7 +(...) + bkpt #0xab +``` -- cgit v1.2.3