Re: Python segfaulting?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 2012-11-24 at 21:27 -0800, Chuck Forsberg WA7KGX N2469R wrote:
> git clone   https://github.com/stadler/pyrocket.git
> in src sub directory, ln pyrocket.py to pyrocket
> then python setup.py build then sudo python setup.py install
> 
> The output follows:
> 
> Located black Rocket Launcher device.
> Fatal Python error: (pygame parachute) Segmentation Fault
> 
> Any ideas what is breaking?
No, but to debug segfaults of python you can install gdb and
python-debuginfo and run:

$ gdb --args /usr/bin/python PATH_TO_PYTHON_SCRIPT ARGS OF SCRIPT

then:
(gdb) run

to run the python script under gdb.  You can then obtain a backtrace in
the usual way (run "bt" when it segfaults).

Segfaults of the python interpreter normally mean one of:
  (a) a library embedded via a python module has segfaulted
  (b) a bug in the way a module embeds a library
  (c) overeager usage of ctypes
  (d) a bug in python itself (though this is much less common than the
above)

Hope this is helpful
Dave

-- 
test mailing list
test@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe:
https://admin.fedoraproject.org/mailman/listinfo/test



[Index of Archives]     [Fedora Desktop]     [Fedora SELinux]     [Photo Sharing]     [Yosemite Forum]     [KDE Users]

  Powered by Linux