[ZCM] [ZC] 2009/ 6 Comment "startup segfault (OFS)"

Collector: Zope Bugs, Features, and Patches ... zope-coders-admin at zope.org
Thu Jun 15 18:55:08 EDT 2006


Issue #2009 Update (Comment) "startup segfault (OFS)"
 Status Resolved, Zope/bug+solution low
To followup, visit:
  http://www.zope.org/Collectors/Zope/2009

==============================================================
= Comment - Entry #6 by tseaver on Jun 15, 2006 6:55 pm

Touch this issue to get its transcript mailed out after today's
mailhost failures.
________________________________________
= Resolve - Entry #5 by ajung on Jun 15, 2006 12:22 pm

 Status: Accepted => Resolved

Haven't seen this issue anymore. Closing it
________________________________________
= Assign - Entry #4 by tseaver on Jun 15, 2006 12:16 pm

 Status: Pending => Accepted

 Supporters added: andreasjung


________________________________________
= Resubmit - Entry #3 by ajung on Jan 23, 2006 10:17 am

 Status: Resolved => Pending

I also had a segfault when starting Plone...further investigations to follow
________________________________________
= Resolve - Entry #2 by efge on Jan 23, 2006 6:46 am

 Status: Pending => Resolved

The import is already fixed in the trunk.

Furthermore, a segfault, except in extremely rare cases involving C extensions, cannot be zope fault's but reveals a problem in your python installation.

________________________________________
= Request - Entry #1 by Anonymous User on Jan 23, 2006 2:16 am

Looks like deprecated OFS code in ImageFile.py can causes segfault, at least in my case.  Seems unlikely that this is a common problem.  Nevertheless... 

Here's the symptom:
$ ./runzope
/usr/local/Zope-2.9.0/lib/python/App/ImageFile.py:21: DeprecationWarning: Using OFS.content_types is deprecated (will be removed in Zope 2.11). Instead use zope.app.contenttypes.
  from OFS.content_types import guess_content_type
Segmentation fault

Heres the fix (diff -u):
--- ImageFile.py~       2006-01-07 04:07:52.000000000 -0800
+++ ImageFile.py        2006-01-20 23:59:57.389834350 -0800
@@ -18,7 +18,7 @@
 import time
 from App.config import getConfiguration
-from OFS.content_types import guess_content_type
+from zope.app.content_types import guess_content_type
 from Globals import package_home
 from Common import rfc1123_date
 from DateTime import DateTime

==============================================================



More information about the Zope-Collector-Monitor mailing list