This is the mail archive of the libffi-discuss@sourceware.org mailing list for the libffi project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: how to run the testsuite


On Tuesday 16 December 2008 20:22:06 Andreas Tobler wrote:
> Sebastian Reitenbach wrote:
> > (gdb) r
> > Starting
> > program:
> > /usr/ports/devel/libffi/w-libffi-3.0.7/libffi-3.0.7/unwindtest.exe
> > terminate called after throwing an instance of 'int'
> > terminate called recursively
> >
> > Program received signal SIGABRT, Aborted.
> > abort () at /usr/src/lib/libc/stdlib/abort.c:74
> > 74      /usr/src/lib/libc/stdlib/abort.c: No such file or directory.
> >         in /usr/src/lib/libc/stdlib/abort.c
> > (gdb) bt
> > #0  abort () at /usr/src/lib/libc/stdlib/abort.c:74
> > #1  0x000000004723c344 in __gnu_cxx::__verbose_terminate_handler() ()
>
> I think it is the abort from the CHECK macro (the macor is defined here:
> ffitestcxx.h).
> Try to comment the CHECK lines in the test case and rebuild/run.
> There are six CHECK's, try to find out which one is the aborting one.
>
> Andreas

commenting them out, only lead to different errors, Illegal instructions, 
segmentation faults, ... 
therefore I added printf statements after each check to find out, it is the 
third one, in the try catch statement, failing.

I commented out the whole block of the first check, then recompiled, running 
it again, lead to the following output, also with printf statement after each 
check:
# ./unwindtest.exe
forth check done
fifth check done
1 2 3 4 127 5 6 8 9 10 11 12 13 19 21 1 3: 255
terminate called after throwing an instance of 'int'
terminate called recursively
Abort trap (core dumped)

Sebastian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]