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


Groups > comp.lang.python > #16458

Re: Python crashes on segmentation error

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.000
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'subject:Python': 0.05; 'received:verizon.net': 0.07; 'terry': 0.07; 'python': 0.08; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:80.91.229.12': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'received:lo.gmane.org': 0.09; 'subject:error': 0.09; 'am,': 0.12; 'library': 0.13; 'crashes': 0.16; 'reedy': 0.16; 'segfault.': 0.16; 'thankyou': 0.16; 'unexpectedly': 0.16; 'advance': 0.17; 'wrote:': 0.18; 'jan': 0.19; 'compatible': 0.21; 'extension': 0.21; 'header:In-Reply- To:1': 0.22; 'module': 0.26; 'skip:_ 20': 0.26; 'function': 0.27; 'import': 0.27; 'module.': 0.29; 'looks': 0.29; 'words,': 0.32; 'header:User-Agent:1': 0.33; 'header:X-Complaints-To:1': 0.33; 'to:addr:python-list': 0.34; 'causing': 0.34; '???': 0.34; 'init': 0.34; 'occurs': 0.34; 'running': 0.35; 'greatly': 0.36; 'thread': 0.37; 'run': 0.37; 'authors': 0.38; 'received:org': 0.38; 'either': 0.39; 'help': 0.39; 'called': 0.40; 'to:addr:python.org': 0.40; 'here': 0.65; 'contact': 0.66; 'crash': 0.67; '177': 0.84
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Terry Reedy <tjreedy@udel.edu>
Subject Re: Python crashes on segmentation error
Date Wed, 30 Nov 2011 17:29:12 -0500
References <8bffed0f-1050-418a-834d-f7060a899ab7@h5g2000yqk.googlegroups.com> <jb59a1$nic$1@dough.gmane.org>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding quoted-printable
X-Gmane-NNTP-Posting-Host pool-74-109-121-73.phlapa.fios.verizon.net
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20111105 Thunderbird/8.0
In-Reply-To <jb59a1$nic$1@dough.gmane.org>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.3178.1322692170.27778.python-list@python.org> (permalink)
Lines 37
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1322692170 news.xs4all.nl 6907 [2001:888:2000:d::a6]:53938
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:16458

Show key headers only | 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