summary refs log tree commit diff stats
path: root/results/classifier/gemma3:12b/debug/696834
diff options
context:
space:
mode:
authorChristian Krinitsin <mail@krinitsin.com>2025-07-03 07:27:52 +0000
committerChristian Krinitsin <mail@krinitsin.com>2025-07-03 07:27:52 +0000
commitd0c85e36e4de67af628d54e9ab577cc3fad7796a (patch)
treef8f784b0f04343b90516a338d6df81df3a85dfa2 /results/classifier/gemma3:12b/debug/696834
parent7f4364274750eb8cb39a3e7493132fca1c01232e (diff)
downloademulator-bug-study-d0c85e36e4de67af628d54e9ab577cc3fad7796a.tar.gz
emulator-bug-study-d0c85e36e4de67af628d54e9ab577cc3fad7796a.zip
add deepseek and gemma results
Diffstat (limited to 'results/classifier/gemma3:12b/debug/696834')
-rw-r--r--results/classifier/gemma3:12b/debug/69683432
1 files changed, 32 insertions, 0 deletions
diff --git a/results/classifier/gemma3:12b/debug/696834 b/results/classifier/gemma3:12b/debug/696834
new file mode 100644
index 00000000..8eb5be2e
--- /dev/null
+++ b/results/classifier/gemma3:12b/debug/696834
@@ -0,0 +1,32 @@
+
+FP exception reporting not working on NetBSD host
+
+I recognize that NetBSD is not one of the officially supported host OS.  However, qemu 0.13.0 is available in the NetBSD pkgsrc collection, and works quite well.  Well, with one exception (pun intended): It seems that Floating Point exceptions don't get reported properly.
+
+The following code-snippet demonstrates the problem:
+
+
+volatile int flt_signal = 0;
+
+static sigjmp_buf sigfpe_flt_env;
+static void
+sigfpe_flt_action(int signo, siginfo_t *info, void *ptr)
+{
+        flt_signal++;
+}
+
+void trigger(void)
+{               
+        struct sigaction sa;
+        double d = strtod("0", NULL);
+        
+        if (sigsetjmp(sigfpe_flt_env, 0) == 0) {
+                sa.sa_flags = SA_SIGINFO;
+                sa.sa_sigaction = sigfpe_flt_action;
+                sigemptyset(&sa.sa_mask);
+                sigaction(SIGFPE, &sa, NULL);
+                fpsetmask(FP_X_INV|FP_X_DZ|FP_X_OFL|FP_X_UFL|FP_X_IMP);
+                printf("%g\n", 1 / d);
+        }
+        printf("FPE signal handler invoked %d times.\n");
+}
\ No newline at end of file