Post by Martin (obo. Joakim) on Nov 11, 2014 14:49:02 GMT -5
Hi,
I’ve taken over some old unit tests, which uses testape. Unfortunately I’ve had problems running them, since they segfaultwhen run. Turns out anything built with the latest testape release 1171 will segfault for me, while anything built with testaper880 will work just fine. I would prefer to run the latest release. Do you have any idea what might be causing the segfault?
I’m using 32bit Cygwin on a win7 64bit machine. Example gdb output (from one of the included samples):
I’ve taken over some old unit tests, which uses testape. Unfortunately I’ve had problems running them, since they segfaultwhen run. Turns out anything built with the latest testape release 1171 will segfault for me, while anything built with testaper880 will work just fine. I would prefer to run the latest release. Do you have any idea what might be causing the segfault?
I’m using 32bit Cygwin on a win7 64bit machine. Example gdb output (from one of the included samples):
$ gdb sample1.exe
GNU gdb (GDB) 7.8
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-pc-cygwin".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from sample1.exe...done.
(gdb) run
Starting program: /cygdrive/c/Users/jlinde2/Downloads/testape-1171/samples/sample1.exe
[New Thread 4308.0x11c8]
[New Thread 4308.0x1cb4]
Program received signal SIGSEGV, Segmentation fault.
0x00405cc5 intestape_node_last ()
(gdb) bt
#0 0x00405cc5 in testape_node_last ()
#1 0x00404768 in testape_exception_handler ()
#2 0x004048d4in testape_exception_handler ()
#3 0x0040377c in testape_error ()
#4 0x00407af2 in testape_validate_call ()
#5 0x00406903 in testape_stub_value ()
#6 0x00406b5a in testape_mocking_handle_pre ()
#7 0x00404dc8 in testape_stub_executed ()
#8 0x0040126a in __ms_vsnprintf ()
#9 0x00403332 in main ()