Bug 602191 - segfault: from Scientific.IO.NetCDF import NetCDFFile
Summary: segfault: from Scientific.IO.NetCDF import NetCDFFile
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: ScientificPython
Version: 13
Hardware: All
OS: Linux
low
high
Target Milestone: ---
Assignee: Jef Spaleta
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-06-09 11:02 UTC by marcindulak
Modified: 2010-06-30 15:13 UTC (History)
2 users (show)

Fixed In Version: ScientificPython-2.8-10.fc13
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-06-30 15:13:19 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description marcindulak 2010-06-09 11:02:17 UTC
Description of problem:

python -c "from Scientific.IO.NetCDF import NetCDFFile" segfaults.
Tested on:
Linux host 2.6.33.5-112.fc13.i686.PAE #1 SMP Thu May 27 02:56:20 UTC 2010 i686 i686 i386 GNU/Linux
and 
Linux host 2.6.33.5-112.fc13.x86_64.PAE #1 SMP Thu May 27 02:28:31 UTC 2010 x86_64 x86_64 x86_64 GNU/Linux


Version-Release number of selected component (if applicable):
ScientificPython-2.8-9.fc13.x86_64
netcdf-4.1.1-3.fc13.x86_64
python-2.6.4-25.fc13.x86_64
hdf5-1.8.4.patch1-1.fc13.x86_64

How reproducible:
Every time.

Steps to Reproduce:
1. python -c " from Scientific.IO.NetCDF import NetCDFFile"
  
Actual results:
Segmentation fault (core dumped)

From /var/log/messages:

Jun  8 21:09:04 host kernel: python[19134]: segfault at 0 ip (null) sp bfbdaebc error 14 in libc-2.12.so[110000+185000]
Jun  8 21:09:04 host abrt[19136]: saved core dump of pid 19134 (/usr/bin/python) to /var/cache/abrt/ccpp-1276024144-19134.new/coredump (5869568 bytes)
Jun  8 21:09:04 host abrtd: Directory 'ccpp-1276024144-19134' creation detected
Jun  8 21:09:04 host abrtd: Interpreter crashed, but no packaged script detected: 'python -c 'from Scientific.IO.NetCDF import NetCDFFile''
Jun  8 21:09:04 host abrtd: Corrupted or bad crash /var/cache/abrt/ccpp-1276024144-19134 (res:4), deleting

Expected results:
The module should load without failure.

Additional info:
The whole NetCDF module seems to be broken.
Works on Fedora 12.

Comment 1 Jef Spaleta 2010-06-09 15:21:30 UTC
Hmm. I'll look into it.  Ping the ticket in a week if you haven't heard back.

As a workaround for now can you make do with the NetCDFFile from the python-basemap package?  I've been using this one locally.

install python-basemap package

import  mpl_toolkits.basemap.NetCDFFile

Comment 2 marcindulak 2010-06-09 18:07:35 UTC
Thanks, but I prefer to stay with ScientificPython as I have some
code based on it (https://wiki.fysik.dtu.dk/ase/ase/calculators/jacapo.html),
apparently incompatible with python-basemap.

Comment 3 Jef Spaleta 2010-06-09 18:37:09 UTC
Okay, good news of a sort.

A local rebuild of the ScientificPython srpm works on my system. So the problem isn't too deep and I should be able to fix it quickly. 

I suspect its a side effect of the creation of the numpy-f2py package. I'm creating koji builds now to test.

-jef

Comment 4 Jef Spaleta 2010-06-10 16:29:33 UTC
Hey can you give this test rebuild a try:
http://koji.fedoraproject.org/koji/taskinfo?taskID=2243168

I've installed the 64bit version locally and the module import works for me now.

I'll push this into testing updates later today, but I'd definitely like to hear you confirm that the test build fixes the issue for you.


-jef

Comment 5 marcindulak 2010-06-11 08:13:08 UTC
Both x86_64 and i686 work for me.

Comment 6 Fedora Update System 2010-06-13 00:55:38 UTC
ScientificPython-2.8-10.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/ScientificPython-2.8-10.fc13

Comment 7 Fedora Update System 2010-06-14 17:25:37 UTC
ScientificPython-2.8-10.fc13 has been pushed to the Fedora 13 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update ScientificPython'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/ScientificPython-2.8-10.fc13

Comment 8 Fedora Update System 2010-06-30 15:13:12 UTC
ScientificPython-2.8-10.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.