Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #69656 > unrolled thread

segmentation fault, executable python file

Started byfanny@itprovent.com
First post2014-04-04 01:36 -0700
Last post2014-04-29 22:10 -0700
Articles 6 — 3 participants

Back to article view | Back to comp.lang.python


Contents

  segmentation fault, executable python file fanny@itprovent.com - 2014-04-04 01:36 -0700
    Re: segmentation fault, executable python file Chris Angelico <rosuav@gmail.com> - 2014-04-04 19:57 +1100
      Re: segmentation fault, executable python file fanny@itprovent.com - 2014-04-04 02:06 -0700
        Re: segmentation fault, executable python file Chris Angelico <rosuav@gmail.com> - 2014-04-04 20:17 +1100
        Re: segmentation fault, executable python file Jurko Gospodnetić <jurko.gospodnetic@pke.hr> - 2014-04-04 13:05 +0200
          Re: segmentation fault, executable python file fanny@itprovent.com - 2014-04-29 22:10 -0700

#69656 — segmentation fault, executable python file

Fromfanny@itprovent.com
Date2014-04-04 01:36 -0700
Subjectsegmentation fault, executable python file
Message-ID<d673b6a7-e339-42d7-9a4a-3ffe79981879@googlegroups.com>
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?

[toc] | [next] | [standalone]


#69657

FromChris Angelico <rosuav@gmail.com>
Date2014-04-04 19:57 +1100
Message-ID<mailman.8889.1396601858.18130.python-list@python.org>
In reply to#69656
On Fri, Apr 4, 2014 at 7:36 PM,  <fanny@itprovent.com> wrote:
> 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

[toc] | [prev] | [next] | [standalone]


#69658

Fromfanny@itprovent.com
Date2014-04-04 02:06 -0700
Message-ID<49ded36a-5c07-4421-874a-5c3fb518efd5@googlegroups.com>
In reply to#69657
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

On Friday, April 4, 2014 3:57:33 PM UTC+7, Chris Angelico wrote:
> On Fri, Apr 4, 2014 at 7:36 PM,  <fanny@itprovent.com> wrote:
> 
> > 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

[toc] | [prev] | [next] | [standalone]


#69659

FromChris Angelico <rosuav@gmail.com>
Date2014-04-04 20:17 +1100
Message-ID<mailman.8890.1396603397.18130.python-list@python.org>
In reply to#69658
On Fri, Apr 4, 2014 at 8:06 PM,  <fanny@itprovent.com> wrote:
> 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

[toc] | [prev] | [next] | [standalone]


#69666

FromJurko Gospodnetić <jurko.gospodnetic@pke.hr>
Date2014-04-04 13:05 +0200
Message-ID<mailman.8892.1396609571.18130.python-list@python.org>
In reply to#69658
   Hi.

On 4.4.2014. 11:17, Chris Angelico wrote:
> 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ć

[toc] | [prev] | [next] | [standalone]


#70764

Fromfanny@itprovent.com
Date2014-04-29 22:10 -0700
Message-ID<eae2036e-21a3-417b-94c4-99985add3fe8@googlegroups.com>
In reply to#69666
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

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web