Hi All!

I am writing to report and hopefully find resolution to a strange
segfault I have with sbox2-1.99.0.22. Segmentation fault occurs when
target (ARM) executable is run (qemu) from Makefile after some delay
apparently.

In sb2 shell simple "hello world" will segfault  if run from makefile
in second line of  rule (Makefile: fail1) or after sleep 1 (Makefile:
fail2). Rule "ok1" will run fine on second attempt (not in run when
test.c is compiled). When "test" is run straight from sb2 shell it
will run correctly every time. Please see Makefile/test.c below for
details

-- Makefile ---------------------------------------
ok1:test
        ./test;./test;./test;./test;./test

fail1:test
        ./test
        ./test

fail2:test
        sleep 1
        ./test

test: test.c
        gcc $< -o $@
-------------------------------------------------------
-- test.c --------------------------------------------
#include <stdio.h>
int main(int argc, char** argv)
{
    printf ("hi!\n");
    return 0;
}
-------------------------------------------------------


My configuration is FC8 (i386) with 0.9.1 vanilla QEMU (also tried
recent CVS snapshot) with glibc-2.3.3 built with
crosstool-0.43/gcc-3.4.5. I have no more clues at the moment. Do you
think I can configure i386 gdb to read arm coredump from qemu-arm
somehow?

Any hints much appreciated!

Bartek
_______________________________________________
Scratchbox-users mailing list
Scratchbox-users@lists.scratchbox.org
http://lists.scratchbox.org/cgi-bin/mailman/listinfo/scratchbox-users

Reply via email to