Re: [PyInstaller] Segmentation fault on other Machines

834 views
Skip to first unread message

Martin Zibricky

unread,
Nov 6, 2012, 10:45:47 AM11/6/12
to pyins...@googlegroups.com
Rainer Hihn píše v Út 06. 11. 2012 v 07:34 -0800:
> What's the matter here? I also tried the -F parameter but nothing
> changed.

Please try the dev version.

Rainer Hihn

unread,
Nov 6, 2012, 10:58:49 AM11/6/12
to pyins...@googlegroups.com
Well, I tried the Development-Version 2.1dev- but the problem remained. I even tried the git-revision.
Can I provide more output?

By the way, the Programm is tested on a current 64bit Ubuntu.

Martin Zibricky

unread,
Nov 6, 2012, 11:05:03 AM11/6/12
to pyins...@googlegroups.com
Rainer Hihn píše v Út 06. 11. 2012 v 07:58 -0800:
> By the way, the Programm is tested on a current 64bit Ubuntu.

Then try just simple hello world app. What do you mean by current 64bit
ubuntu? And your app is 64bit or not?

Rainer Hihn

unread,
Nov 6, 2012, 11:13:13 AM11/6/12
to pyins...@googlegroups.com
A simple Hello World Application executes without any errors.

The Computer where the App is run:
    Linux 3.2.0-32-generic #51-Ubuntu SMP Wed Sep 26 21:33:09 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux   
The Computer where I run pyinstaller:
    Linux 2.6.32-5-686 #1 SMP Sun May 6 04:01:19 UTC 2012 i686 GNU/Linux (with Python 2.6)

My App makes use of pyqt. I saw that there are a few tickets about that. Maybe the error is because one of those?

Martin Zibricky

unread,
Nov 6, 2012, 11:22:35 AM11/6/12
to pyins...@googlegroups.com
Rainer Hihn píše v Út 06. 11. 2012 v 08:13 -0800:
> My App makes use of pyqt. I saw that there are a few tickets about
> that. Maybe the error is because one of those?

Which one are you refering to?

You might be missing some 32bit libs on your 64bit ubu.

Rainer Hihn

unread,
Nov 6, 2012, 11:30:28 AM11/6/12
to pyins...@googlegroups.com
No special, I am just thinking if my problems might be caused by a bug.

I am afraid I can't find any special 32bit qt libs for Ubuntu. I will run pyinstaller on a 64bit linux and try it again. There shouldn't be any 32/64-bit troubles (missing libraries then), right?

Am Dienstag, 6. November 2012 16:34:11 UTC+1 schrieb Rainer Hihn:
Hi!

I'm using PyInstaller 2.0 to compile Binaries for Linux. On the Machine where I build it (with Python 2.6/Debian), the Binary executes without any Problems. On any other Machine it quits immediately after executing with an Segmentation Fault. Same issu when I build it on another PC (Python 2.7/Gentoo).

I started the Programm with strace (on a non-build-machine), the last (and I guess most interesting) Part is as follow:

[pid 14128] --- SIGSEGV (Segmentation fault) @ 0 (0) ---
Process 14128 detached
<... wait4 resumed> [{WIFSIGNALED(s) && WTERMSIG(s) == SIGSEGV && WCOREDUMP(s)}], 0, NULL) = 14128
--- SIGCHLD (Child exited) @ 0 (0) ---
rt_sigaction(SIGINT, {SIG_DFL, [INT], SA_RESTART}, {0x8049990, [INT], SA_RESTART}, 8) = 0
rt_sigaction(SIGKILL, {SIG_DFL, [KILL], SA_RESTART}, {0x8049990, [INT], SA_RESTART}, 8) = -1 EINVAL (Invalid argument)
rt_sigaction(SIGTERM, {SIG_DFL, [TERM], SA_RESTART}, {0x8049990, [TERM], SA_RESTART}, 8) = 0
gettid()                                = 14127
tgkill(14127, 14127, SIGSEGV)           = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV (core dumped) +++
[ Process PID=14127 runs in 32 bit mode. ]


What's the matter here? I also tried the -F parameter but nothing changed.

Greetings

Martin Zibricky

unread,
Nov 6, 2012, 11:51:28 AM11/6/12
to pyins...@googlegroups.com
Rainer Hihn píše v Út 06. 11. 2012 v 08:30 -0800:
> No special, I am just thinking if my problems might be caused by a
> bug.
>
> I am afraid I can't find any special 32bit qt libs for Ubuntu. I will
> run pyinstaller on a 64bit linux and try it again. There shouldn't be
> any 32/64-bit troubles (missing libraries then), right?

you might be missing packages ia-32libs or ia-32libs-gtk.

apt-get install ia-32libs ia-32libs-gtk

Rainer Hihn

unread,
Nov 6, 2012, 12:07:03 PM11/6/12
to pyins...@googlegroups.com
Okay...

First, I installed on the Ubuntu-Machine following Packages:
- lsb-qt4
- ia32-libs
- ia32-libs-gtk

Still receiving a Segmentation fault with a Binary I built on a 32bit-System.

Second, I ran pyinstaller on a 64bit-System with Python 2.7. Still got that Segmentation Fault on the Ubuntu Machine. Pretty confusing.

Hartmut Goebel

unread,
Nov 7, 2012, 2:24:41 PM11/7/12
to pyins...@googlegroups.com
Am 06.11.2012 18:07, schrieb Rainer Hihn:

Second, I ran pyinstaller on a 64bit-System with Python 2.7. Still got that Segmentation Fault on the Ubuntu Machine. Pretty confusing.


Please try a *minimal* example program. This means: No QT, no other libraries, just a "Hello World". If this works, try a simple QT program. But only if the "Hello World" is fine.

--
Schönen Gruß
Hartmut Goebel
Dipl.-Informatiker (univ), CISSP, CSSLP

Goebel Consult
http://www.goebel-consult.de

Monatliche Kolumne: http://www.cissp-gefluester.de/2011-02-fleisige-datensammler-fur-lukratives-geschaeftsmodell-gesucht
Blog: http://www.goebel-consult.de/blog/20060215

Goebel Consult ist Mitglied bei http://www.7-it.de/

Rainer Hihn

unread,
Nov 8, 2012, 5:53:34 AM11/8/12
to pyins...@googlegroups.com
Well, unfortunately a simple "Hello World"-Programm didn't run. Same error as usual. Working with 2.1-dev.

Rainer Hihn

unread,
Nov 8, 2012, 6:01:36 AM11/8/12
to pyins...@googlegroups.com
Sorry for double-posting, but I got some more tests:

- Hello-World compiled on a 64bit system and ran on a 64bit  system => Seg-Fault
- Hello-World compiled on a 32bit system and ran on a 64bit system => Okay
- Simple-QT compiled on a 32bit system and ran on a 64bit system => Sef-Fault
- Simple-QT compiled on a 64bit system and ran on a 64bit system => Sef-Fault

Maybe it's not just because of the architecutre? Can't explain it.

Martin Zibricky

unread,
Nov 8, 2012, 6:45:06 AM11/8/12
to pyins...@googlegroups.com
Rainer Hihn píše v Čt 08. 11. 2012 v 02:53 -0800:
> Well, unfortunately a simple "Hello World"-Programm didn't run. Same
> error as usual. Working with 2.1-dev.

Let's summary the information we have:

- you build python executable on debian 6 64bit
- this executable segfaults on ubuntu 12.04 64bit

Could you please try to recompile bootloader on debian 6 and use freeze
your app with that?

Rainer Hihn

unread,
Nov 12, 2012, 3:29:12 AM11/12/12
to pyins...@googlegroups.com
Excuse me, what do you mean with recomiling the Bootloader and freeze the app?

Martin Zibricky

unread,
Nov 12, 2012, 6:00:53 AM11/12/12
to pyins...@googlegroups.com
Rainer Hihn píše v Po 12. 11. 2012 v 00:29 -0800:
> Excuse me, what do you mean with recomiling the Bootloader and freeze
> the app?

I mean doing this
http://www.pyinstaller.org/export/v2.0/project/doc/Manual.html?format=raw#building-the-bootloaders

and then just use ./pyinstaller.py again.

Rainer Hihn

unread,
Nov 20, 2012, 8:29:44 AM11/20/12
to pyins...@googlegroups.com
Okay, so I added the lsb repository to my Debian-Installation and installed lsb. Unfortunately there is no package called "lsb-build-cc".

Still, there are some lsb-packages installed:
$ dpkg  -l|grep lsb
ii  lsb                                  4.1+Debian9                  all          Linux Standard Base 4.1 support package
ii  lsb-base                             4.1+Debian9                  all          Linux Standard Base 4.1 init script functionality
ii  lsb-core                             4.1+Debian9                  i386         Linux Standard Base 4.1 core support package
ii  lsb-cxx                              4.1+Debian9                  i386         Linux Standard Base 4.1 C++ support package
(...)

But when I execute following command:
$ python waf configure build install

I get following error:
Checking for program lsbcc               : not found
Checking for program /opt/lsb/bin/lsbcc  : not found
LSB (Linux Standard Base) tools >= 4.0 are required.
Try --no-lsb option if not interested in building LSB binary.

But there is no package in the repository called "lsb-build-cc" or anything else with "*cc*".

Martin Zibricky

unread,
Nov 20, 2012, 9:16:33 AM11/20/12
to pyins...@googlegroups.com
please try adding the following line to /etc/apt/sources.list

deb http://ftp.linux-foundation.org/pub/lsb/repositories/debian/dists
lsb-4.0 main

or just try the --no-lsb option.


Rainer Hihn píše v Út 20. 11. 2012 v 05:29 -0800:
> --
> You received this message because you are subscribed to the Google
> Groups "PyInstaller" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/pyinstaller/-/-hfLZRThwt4J.
> To post to this group, send email to pyins...@googlegroups.com.
> To unsubscribe from this group, send email to pyinstaller
> +unsub...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/pyinstaller?hl=en.


Reply all
Reply to author
Forward
0 new messages