Thu 10 Mar 2016 09:15:32 PM UTC, original submission:
Hello everyone,
I want to report a configuration crash on Windows 64 bits while running gen-apply program.
I use MSYS2 to perfom configuration for autoconf, automake, perl, sed, make,...
I use MinGW64 for gcc and g++ (5.3.0, posix threads and SEH exception mechanism, SLJL does not change anything)
I have also tested cross compilation on Debian, it seems to create the problem
I mention that this crash does not appear on Windows 32 bits.
Since I succeeded in installing libjit on Debian 7/8 32/64 bits platform and also on Windows XP 32 bits with gcc 4.5.2, I guess the problem may not come from:
- a bad macro definition.
- a configuration problem: I may not call configure with the right options? Should I use --host option to help the configure script?
I mention a bad macro definition in tools/gen-apply.c, since:
- I see that PLATFORM_IS_WIN32 is defined only when `i386` architecture is defined.
- it seems to me that gen-apply may not produce any result on stdout, with a macro defined.
One can reproduce the bug on Linux with cross compilation and the commands
./auto_gen.sh
./configure --host=x86_64-w64-mingw32
make
Any help is welcome
Guillaume Jacquenot
Below is the result of gdb while calling gen-apply
JACQUENOT@PC-GJ MSYS /d/libjit_64_530_Posix_SEH/tools
$ gdb ./gen-apply.exe
GNU gdb (GDB) 7.10.1
Copyright (C) 2015 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 "x86_64-w64-mingw32".
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 ./gen-apply.exe...done.
(gdb) r
Starting program: D:\libjit_64_530_Posix_SEH\tools\gen-apply.exe
[New Thread 11152.0x2980]
warning: Could not load shared library symbols for C:\windows\system32\kernel64.dll.
Do you need "set solib-search-path" or "set sysroot"?
Program received signal SIGSEGV, Segmentation fault.
mem_copy (dest=0x0, src=0x0, len=<optimized out>) at gen-apply.c:188
188 d++ = s++;
(gdb) bt
#0 mem_copy (dest=0x0, src=0x0, len=<optimized out>) at gen-apply.c:188
#1 0x0000000000403adb in detect_float_return () at gen-apply.c:827
#2 0x000000000040ea44 in main (argc=<optimized out>, argv=<optimized out>)
at gen-apply.c:2603
(gdb)
#0 mem_copy (dest=0x0, src=0x0, len=<optimized out>) at gen-apply.c:188
#1 0x0000000000403adb in detect_float_return () at gen-apply.c:827
#2 0x000000000040ea44 in main (argc=<optimized out>, argv=<optimized out>)
at gen-apply.c:2603
(gdb)
|