Comments you submit will be routed for moderation. If you have an account, please log in first.
Modify

Ticket #514 (new support)

Opened 15 months ago

Last modified 15 months ago

Cygwin Built bootloader?

Reported by: 3togo Owned by: matysek
Priority: low Milestone:
Component: Loader Version: 1.5.1
Severity: normal Keywords:
Cc:

Description (last modified by htgoebel) (diff)

I tried to build bootloader under cygwin for py-installer git version by issuing the command

>python waf configure build install 

Compiling and Build went well and I got run.exe, run_d.exe
But when I run it,
$ build/debug/run_d.exe
Segmentation fault (core dumped)

Any pointer on how to debug it?

Attachments

Change History

comment:1 Changed 15 months ago by htgoebel

  • Owner changed from htgoebel to matysek
  • Priority changed from normal to low
  • Component changed from Hooks to Loader
  • Description modified (diff)

Any reason why you are rebuilding the loader?

Building the loader in Cygwin is not supported by us. Sorry, no idea how to debug this except of setting debug=True in the EXE(..) of the spec-file.

Please use the current development branch when trying new stuff.

comment:2 Changed 15 months ago by matysek

  • Type changed from defect to support
  • Summary changed from Cygwin Built bootloader - to Cygwin Built bootloader?

You should be able to compile bootloader with mingw. However, mingw based bootloader is not well tested.

comment:3 Changed 15 months ago by 3togo

fixed....

It is triggerd by strlen.

Program received signal SIGSEGV, Segmentation fault.
0x61127913 in strlen () from /cygdrive/c/cygwin/bin/cygwin1.dll
(gdb)

below is the diff

3togo@3togo-PC /src/pyinstaller/source/linux
$ diff utils.c utils.c.old
43c43
<     if (strncasecmp(&programname[strlen(thisfile)-4], ".exe", 4)) {
---
>     if (strncasecmp(&programname[strlen(argv[0])-4], ".exe", 4)) {
Last edited 15 months ago by htgoebel (previous) (diff)

comment:4 Changed 15 months ago by htgoebel

Thanks. Could you please submit a pull request at github. This would ease integration and git the commit-credit to you :-)

For which version of PyInstaller is this patch? Please set the ticket data accordingly.

View

Add a comment

Modify Ticket

Action
as new
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.