python-scientific: Crashes when deleting NetCDFFile instance

Bug #123949 reported by Ivan Vilata i Balaguer
This bug report is a duplicate of:  Bug #113803: Python-netcdf crashes in Feisty. Edit Remove
2
Affects Status Importance Assigned to Milestone
python-scientific (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: python-scientific

Subject: python-scientific: Crashes when deleting NetCDFFile instance
Package: python-scientific
Version: 2.4.11-1build1
Severity: normal

*** Please type your report below this line ***

The ``NetCDF`` module of Scientific crashes when deleting a file
instance, be it open or closed. The following code shows this::

    from Scientific.IO import NetCDF

    ff = NetCDF.NetCDFFile('empty.nc','w')
    ff.close()
    del ff

    print 'SUCCESS'

The crash happens when calling ``del``, the last print isn't run. This
is the resulting output::

    *** glibc detected *** python: free(): invalid pointer: 0xb7cfddb8 ***
    ======= Backtrace: =========
    /lib/tls/i686/cmov/libc.so.6[0xb7dd17cd]
    /lib/tls/i686/cmov/libc.so.6(cfree+0x90)[0xb7dd4e30]
    /usr/lib/python2.5/site-packages/Scientific/linux2/Scientific_netcdf.so[0xb7ce3efe]
    python(PyDict_DelItem+0xd9)[0x8086a69]
    python(PyObject_DelItem+0x47)[0x80616b7]
    python(PyEval_EvalFrameEx+0x367a)[0x80c63ea]
    python(PyEval_EvalCodeEx+0x775)[0x80c9ca5]
    python(PyEval_EvalCode+0x57)[0x80c9d17]
    python(PyRun_FileExFlags+0xf8)[0x80e9118]
    python(PyRun_SimpleFileExFlags+0x187)[0x80e93a7]
    python(Py_Main+0x9c0)[0x8059330]
    python(main+0x22)[0x8058862]
    /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xdc)[0xb7d7febc]
    python[0x80587b1]
    ======= Memory map: ========
    08048000-0813f000 r-xp 00000000 03:07 525211 /usr/bin/python2.5
    0813f000-08164000 rw-p 000f6000 03:07 525211 /usr/bin/python2.5
    08164000-081dc000 rw-p 08164000 00:00 0 [heap]
    b7b00000-b7b21000 rw-p b7b00000 00:00 0
    b7b21000-b7c00000 ---p b7b21000 00:00 0
    b7c84000-b7c8f000 r-xp 00000000 03:07 962946 /lib/libgcc_s.so.1
    b7c8f000-b7c90000 rw-p 0000a000 03:07 962946 /lib/libgcc_s.so.1
    b7ca6000-b7cdc000 r-xp 00000000 03:07 522855 /usr/lib/libnetcdf.so.3.6.1
    b7cdc000-b7cdd000 rw-p 00035000 03:07 522855 /usr/lib/libnetcdf.so.3.6.1
    b7cdd000-b7cde000 rw-p b7cdd000 00:00 0
    b7cde000-b7ce6000 r-xp 00000000 03:07 707931 /usr/lib/python2.5/site-packages/Scientific/linux2/Scientific_netcdf.so
    b7ce6000-b7ce7000 rw-p 00007000 03:07 707931 /usr/lib/python2.5/site-packages/Scientific/linux2/Scientific_netcdf.so
    b7ce7000-b7d6a000 rw-p b7ce7000 00:00 0
    b7d6a000-b7ea5000 r-xp 00000000 03:07 963541 /lib/tls/i686/cmov/libc-2.5.so
    b7ea5000-b7ea6000 r--p 0013b000 03:07 963541 /lib/tls/i686/cmov/libc-2.5.so
    b7ea6000-b7ea8000 rw-p 0013c000 03:07 963541 /lib/tls/i686/cmov/libc-2.5.so
    b7ea8000-b7eab000 rw-p b7ea8000 00:00 0
    b7eab000-b7ed0000 r-xp 00000000 03:07 636823 /lib/tls/i686/cmov/libm-2.5.so
    b7ed0000-b7ed2000 rw-p 00024000 03:07 636823 /lib/tls/i686/cmov/libm-2.5.so
    b7ed2000-b7ed4000 r-xp 00000000 03:07 704833 /lib/tls/i686/cmov/libutil-2.5.so
    b7ed4000-b7ed6000 rw-p 00001000 03:07 704833 /lib/tls/i686/cmov/libutil-2.5.so
    b7ed6000-b7ed7000 rw-p b7ed6000 00:00 0
    b7ed7000-b7ed9000 r-xp 00000000 03:07 636816 /lib/tls/i686/cmov/libdl-2.5.so
    b7ed9000-b7edb000 rw-p 00001000 03:07 636816 /lib/tls/i686/cmov/libdl-2.5.so
    b7edb000-b7eee000 r-xp 00000000 03:07 638926 /lib/tls/i686/cmov/libpthread-2.5.so
    b7eee000-b7ef0000 rw-p 00013000 03:07 638926 /lib/tls/i686/cmov/libpthread-2.5.so
    b7ef0000-b7ef2000 rw-p b7ef0000 00:00 0
    b7ef2000-b7f06000 r-xp 00000000 03:07 608297 /usr/lib/python2.5/site-packages/Numeric/_numpy.so
    b7f06000-b7f08000 rw-p 00013000 03:07 608297 /usr/lib/python2.5/site-packages/Numeric/_numpy.so
    b7f08000-b7f0a000 rw-p b7f08000 00:00 0
    b7f0a000-b7f23000 r-xp 00000000 03:07 964149 /lib/ld-2.5.so
    b7f23000-b7f25000 rw-p 00019000 03:07 964149 /lib/ld-2.5.so
    bfc42000-bfc58000 rw-p bfc42000 00:00 0 [stack]
    ffffe000-fffff000 r-xp 00000000 00:00 0 [vdso]

-- System Information:
Debian Release: 4.0
  APT prefers feisty-updates
  APT policy: (500, 'feisty-updates'), (500, 'feisty-security'), (500, 'feisty-backports'), (500, 'feisty')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/dash
Kernel: Linux 2.6.20-16-generic
Locale: LANG=ca_ES.UTF-8, LC_CTYPE=ca_ES.UTF-8 (charmap=UTF-8)

Versions of packages python-scientific depends on:
ii python 2.5.1-0ubuntu3 An interactive high-level object-o
ii python-central 0.5.12ubuntu4 register and build utility for Pyt
ii python-netcdf 2.4.11-1build1 A netCDF interface for Python
ii python-numeric-ext 24.2-7ubuntu1 Extension modules for Numeric Pyth
ii python2.5 2.5.1-0ubuntu1 An interactive high-level object-o

Versions of packages python-scientific recommends:
ii python-tk 2.5.1-0ubuntu1 Tkinter - Writing Tk applications

-- no debconf information

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.