You are not logged in.

#1 2007-05-04 14:33:37

beza1e1
Member
From: Karlsruhe, Germany
Registered: 2007-04-15
Posts: 30
Website

tk segfault

I want to use python-matplotlib, but it segfaults. An example to reproduce it, is with this code snippet:

import pylab as P
P.plot([1,2,3,5,2,3])
P.show()

Running it with gdb shows:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1211431232 (LWP 15836)]
0xb610723d in PyAggImagePhoto ()
   from /usr/lib/python2.5/site-packages/matplotlib/backends/_tkagg.so

strace shows, it crashes right after reading tclIndex

open("/usr/lib/tcl8.4/tclIndex", O_RDONLY|O_LARGEFILE) = 4
fcntl64(4, F_SETFD, FD_CLOEXEC)         = 0
ioctl(4, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfd7a1b8) = -1 ENOTTY (Inappropriate ioctl for device)
read(4, "# Tcl autoload index file, versi"..., 4096) = 4096
read(4, "Name) [list source [file join $d"..., 4096) = 2001
read(4, "", 4096)                       = 0
close(4)                                = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++

I compiled my own matplotlib, but that doesn't give me any hints and segfaults in the same way.

Should i file this as a bug of python-matplotlib?

Offline

Board footer

Powered by FluxBB