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


Groups > comp.lang.python > #16458

Re: Python crashes on segmentation error

From Terry Reedy <tjreedy@udel.edu>
Subject Re: Python crashes on segmentation error
Date 2011-11-30 17:29 -0500
References <8bffed0f-1050-418a-834d-f7060a899ab7@h5g2000yqk.googlegroups.com> <jb59a1$nic$1@dough.gmane.org>
Newsgroups comp.lang.python
Message-ID <mailman.3178.1322692170.27778.python-list@python.org> (permalink)

Show all headers | View raw


On 11/30/2011 7:58 AM, Christian Heimes wrote:
> Am 30.11.2011 11:42, schrieb Ben Richardson:
>> Python crashes every time i run the following command…
>>
>>>>> import cv
>> Segmentation fault: 11
>>
>> Python quit unexpectedly - any help would be greatly appreciated -
>> thankyou in advance :)
>>
>> Here is crash report…
> [...]
>>
>> Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
>> 0   ???                           	000000000000000000 0 + 0
>> 1   org.python.python             	0x00000001006c7885 PyImport_Import
>> + 121
>> 2   org.python.python             	0x00000001006c7a1e
>> PyImport_ImportModule + 32
>> 3   cv.so                         	0x00000001004f5082 initcv + 18
>> 4   org.python.python             	0x00000001000dc071
>> _PyImport_LoadDynamicModule + 177
>
> It looks like you have a faulty 3rd party library with an extension
> module called cv.so that is causing the segfault. The segfault occurs
> either inside or during the import of the cv module. initcv() is the
> init function of the cv module that is called automatically during the
> import.

In other words, contact the authors of the cv module. Or perhaps first 
check to make sure that the cv.so build you are running is intended to 
be compatible with the Python build you are running.

-- 
Terry Jan Reedy

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Python crashes on segmentation error Ben Richardson <ben.richardson@gmx.com> - 2011-11-30 02:42 -0800
  Re: Python crashes on segmentation error Christian Heimes <lists@cheimes.de> - 2011-11-30 13:58 +0100
  Re: Python crashes on segmentation error Terry Reedy <tjreedy@udel.edu> - 2011-11-30 17:29 -0500
    Re: Python crashes on segmentation error rusi <rustompmody@gmail.com> - 2011-11-30 21:32 -0800

csiph-web