Jim Cromie wrote:
> got a backtrace
> Philippe Gerum wrote:
> > On Mon, 2006-08-21 at 00:42 -0600, Jim Cromie wrote:
> >> Jim Cromie wrote:
> >>> *
> >>> == Sampling period: 10 us
> >>> == Do not interrupt this program
> >>> /usr/xenomai/bin/xeno-load: line 182: 2868 Floating point
> >>> exception$suflag $* $cmdargs
> >> soekris:/usr/xenomai/bin# gdb ../testsuite/switchbench/switchbench
> >> I tried stuffing -g into all *_CFLAGS in src/testsuite/Makefile,
> >> but I couldnt get it to show up in the compilation.
> > Try passing --enable-debug to the "configure" script.
> #0 0x0804ae57 in __divdi3 ()
> #1 0x08049ac2 in worker (cookie=0x0) at switchbench.c:133
> #2 0x0804a18f in rt_task_trampoline (cookie=0x0) at task.c:89
> #3 0xb7f8107d in start_thread () from /lib/tls/libpthread.so.0
> #4 0xb7f158fe in clone () from /lib/tls/libc.so.6
You likely have a division by 0 because nsamples is 0. nsamples come
from the numeric argument of the -n option, and I think you do not pass
a numeric argument to -n, so atoi returns 0.
Xenomai-core mailing list