Re: [rock-user] python+ncurses segfaulting
Mathieu Doidy <[email protected]> Sun, 1 Aug 2004 14:37:41 +0200
| Newsgroups | gmane.linux.distributions.rock.devel,gmane.linux.distributions.rock.user |
|---|---|
| Message-ID | <[email protected]> |
++ 28/07/04 - Mathieu Doidy: > Hi, > > python surprinsingly chokes when using ncurses extension > i think i've had this problem since an upgrade of python but i don't > remember precisely when > i discovered it when using btdownloadcurses.py (from bittorrent) > > in fact, i got a segfault with just this simple script : > ---- SNIP ---- > #!/usr/bin/python > import curses.panel > scrwin = curses.initscr() > scrwin = curses.newwin(0, 0, 0, 0) > curses.panel.new_panel(scrwin) > ---- SNAP ---- > > does anyone have the same problem or know a way to debug this ? > i tried to recompile python with pentium3 optimizations and with no > optimizations, it results to the same error > > any help would be appreciated > > /mathieu ok, i found the problem it comes from the installation of ncurses and the fact that python package is configured to use shared modules with standard rock install, ncurses shared libs are in /lib and static ones are in /usr/lib which seems to confuse python i solved the problem on my system with this : cd /usr/lib ln -s /lib/libncurses.so* /lib/libcurses.so* /lib/libmenu.so* /lib/libpanel.so* /lib/libform.so* . and recompile python this is only a quickfix the real problem comes from the postflist_static_lib() function i suggest it not only move the .a in /lib to /usr/lib but also links the corresponding .so to /usr/lib anyone ? /mathieu