segmentation fault, executable python file

F

fanny

Hello,
I generated an executable python file using cxfreeze.
I run that file, it runs fine.
But when I run it on another PC, it don't run. I try to it via terminal, and it says "Segmentation fault(core dump)". I try again run it with sudo, it says nothing and nothing happend.

Could any of you please let me know how to fix this?
 
C

Chris Angelico

Hello,
I generated an executable python file using cxfreeze.
I run that file, it runs fine.
But when I run it on another PC, it don't run. I try to it via terminal, and it says "Segmentation fault(core dump)". I try again run it with sudo, it says nothing and nothing happend.

Could any of you please let me know how to fix this?

Freezing a Python script into a binary requires matching all sorts of
things, including the word size (32-bit or 64-bit), most likely the
versions of various shared libraries, and possibly other
compatibilities as well. What are the two computers? I'm guessing your
second one is some kind of Unix, but that's as much as I can tell.

ChrisA
 
F

fanny

the first one is ubuntu 12.04 64-bit (where i generate the executable file), and the second one is the same. Any idea? I confused for days until today.

Thanks for your replay
 
C

Chris Angelico

the first one is ubuntu 12.04 64-bit (where i generate the executable file), and the second one is the same. Any idea? I confused for days until today.

Thanks for your replay

That's a good start. Next thing to try is running your executable
under gdb; instead of getting a simple "Segmentation fault" message,
you get some chance at a bit more info. But from here you need someone
more familiar with cxfreeze. All I can advise is to compare installed
packages on each; maybe you have multiple versions of some library or
something.

ChrisA
 
J

Jurko Gospodnetić

Hi.

But from here you need someone more familiar with cxfreeze. All I
can advise is to compare installed packages on each; maybe you
have multiple versions of some library or something.

From what little I know of it, it freezes as little as possible of
Python's modules into the executable and stores the remaining Python
code in a single zip file and loads it from there at run-time.

That should limit your search area to just the frozen part and
externally used libraries, and my instinct tells me gdb should be able
to point you in the culprit's direction in no time.

Hope this helps.

Best regards,
Jurko Gospodnetić
 
F

fanny

I try gdb the executable file in another machine
and get this:
Error -3 from inflate: incorrect header check
Error decompresing struct

if I do gdb in my machine (where I generate the executable file)
I get nothing, and the app work correctly.

I try to search about that, but i don't get it.

Could any of you please let me know how to fix this?

Thank u before
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top