buglibjit - Bugs: bug #47382, Win64Bits MinGW GCC Configuration...

 
 

bug #47382: Win64Bits MinGW GCC Configuration problem with gen-apply.c

Submitted by:  None
Submitted on:  Thu 10 Mar 2016 09:15:32 PM UTC  
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open

Add a New Comment (Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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)

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

 

 

No changes have been made to this item

Back to the top


Powered by Savane 3.5