Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 117130 - dev-python/xsv 2.10 version bump
Summary: dev-python/xsv 2.10 version bump
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-29 15:36 UTC by Pinky
Modified: 2007-08-08 14:37 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pinky 2005-12-29 15:36:24 UTC
new version avaliable
Comment 1 Alastair Tse (RETIRED) gentoo-dev 2006-02-06 13:48:23 UTC
it would be more useful if you included more information such as the version and maybe whether you tried it or not.
Comment 2 Pinky 2006-02-07 11:49:50 UTC
I'm try it just now (before I use other distro for lunch this app.)
and it does not work :)

--------started as root (with python -vvv)
-------command python -vvv commandLine.py
...........
# /usr/lib/python2.4/site-packages/XSV/compile/elts/elementElt.pyc matches /usr/lib/python2.4/site-packages/XSV/compile/elts/elementElt.py
import XSV.compile.elts.elementElt # precompiled from /usr/lib/python2.4/site-packages/XSV/compile/elts/elementElt.pyc
Neopr
Comment 3 Pinky 2006-02-07 11:49:50 UTC
I'm try it just now (before I use other distro for lunch this app.)
and it does not work :)

--------started as root (with python -vvv)
-------command python -vvv commandLine.py
...........
# /usr/lib/python2.4/site-packages/XSV/compile/elts/elementElt.pyc matches /usr/lib/python2.4/site-packages/XSV/compile/elts/elementElt.py
import XSV.compile.elts.elementElt # precompiled from /usr/lib/python2.4/site-packages/XSV/compile/elts/elementElt.pyc
Neoprávněný přístup do paměti (SIGSEGV)  ***** - see below!!!!!


-------as nonprivileged user
-------command python -vvv /usr/lib/python2.4/site-packages/XSV/commandLine.py
.............
import XSV.compile.elts.idElts # precompiled from /usr/lib/python2.4/site-packages/XSV/compile/elts/idElts.pyc
# trying /usr/lib/python2.4/site-packages/XSV/compile/elts/elementElt.so
# trying /usr/lib/python2.4/site-packages/XSV/compile/elts/elementEltmodule.so
# trying /usr/lib/python2.4/site-packages/XSV/compile/elts/elementElt.py
# /usr/lib/python2.4/site-packages/XSV/compile/elts/elementElt.pyc matches /usr/lib/python2.4/site-packages/XSV/compile/elts/elementElt.py
import XSV.compile.elts.elementElt # precompiled from /usr/lib/python2.4/site-packages/XSV/compile/elts/elementElt.pyc
*** glibc detected *** free(): invalid pointer: 0xb7c71598 ***
Neúspěně ukončen (SIGABRT)      ***** - see below!!!!!


***** - I'm unset all LANG and LC variableles but it still use locale, I'm confused
locale
LANG=
LC_CTYPE="POSIX"
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=

I'm try use Python 2.3, with the exactly same result.


Portage 2.1_pre4-r1 (default-linux/x86/2005.1, gcc-3.4.5, glibc-2.3.6-r2, 2.6.12-suspend2-r7-K7 i686)
=================================================================
System uname: 2.6.12-suspend2-r7-K7 i686 AMD Duron(tm) processor
Gentoo Base System version 1.12.0_pre15
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [disabled]
dev-lang/python:     2.3.5-r2, 2.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon -O2 -pipe -fno-align-labels -fno-align-jumps -frename-registers"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=athlon -O2 -pipe -fno-align-labels -fno-align-jumps -frename-registers"
DISTDIR="/home/share/pub/software/linux/gentoo/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict userpriv"
GENTOO_MIRRORS="http://ftp.sh.cvut.cz/MIRRORS/gentoo/gentoo http://ftp.linux.cz/pub/linux/gentoo "
LINGUAS="cs"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://ftp.sh.cvut.cz/gentoo-portage"
USE="x86 3dnow 3dnowext 7zip X a52 aac ada afs aim alsa apache2 apm asf async audiofile avi bash-completion berkdb bidi bitmap-fonts bl bluetooth bmp bzip2 cairo canvas caps cdparanoia chroot clearcase crypt cscope cups curl dga djbfft doc dri dts dv dvb dvd dvdread ecc eds emboss encode examples exif expat ffmpeg firefox flac foomaticdb fortran fpx freetype gdbm gif gimp glep glut gmp gnutls gphoto2 graphviz gs gstreamer gtk gtk2 haskell hdf5 httpd icq id3 idn imagemagick imlib imlib2 iproute2 ipv6 irc irda jabber javascript jbig jpeg jpeg2k kde kqemu lame lcms libg++ libsamplerate libwww lirc live lm_sensors logrotate lzo lzw-tiff mad matroska mikmod mmap mmx mmxext mng mod motif mp3 mp4live mpeg mpeg2 msn multicall musepack ncurses netboot network nls nntp no_wxgtk1 nodrm nsplugin objc ogg oggvorbis openal openexr opengl pam pascal pda pdf pdflib perforce perl php pic player plotutils png ppds python qt quicktime rdesktop readline real rle rogue rss rtc ruby samba sametime scanner screen sdl serial shout silc slang sms sndfile speex spell sql sqlite ssl stream subversion svg swat tcltk test tetex theora tiff truetype truetype-fonts type1-fonts unicode usb utf8 v4l v4l2 vcd vhosts vim-with-x vlm vorbis win32codecs wxwindows xanim xatrix xine xml2 xosd xprint xscreensaver xv xvid zlib elibc_glibc input_devices_acecad input_devices_aiptek input_devices_calcomp input_devices_citron input_devices_digitaledge input_devices_dmc input_devices_dynapro input_devices_elo2300 input_devices_elographics input_devices_evdev input_devices_fpit input_devices_hyperpen input_devices_jamstudio input_devices_joystick input_devices_keyboard input_devices_magellan input_devices_magictouch input_devices_microtouch input_devices_mouse input_devices_mutouch input_devices_palmax input_devices_penmount input_devices_spaceorb input_devices_summa input_devices_synaptics input_devices_tek4957 input_devices_ur98 input_devices_vmmouse input_devices_void input_devices_wacom kernel_linux linguas_cs userland_GNU video_cards_apm video_cards_ark video_cards_ati video_cards_chips video_cards_cirrus video_cards_cyrix video_cards_dummy video_cards_fglrx video_cards_glint video_cards_i128 video_cards_i740 video_cards_i810 video_cards_imstt video_cards_mach64 video_cards_mga video_cards_neomagic video_cards_newport video_cards_nsc video_cards_nv video_cards_nvidia video_cards_rage128 video_cards_rendition video_cards_s3 video_cards_s3virge video_cards_savage video_cards_siliconmotion video_cards_sis video_cards_sisusb video_cards_tdfx video_cards_tga video_cards_trident video_cards_tseng video_cards_v4l video_cards_vesa video_cards_vga video_cards_via video_cards_vmware video_cards_voodoo"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL, LDFLAGS
Comment 4 Alastair Tse (RETIRED) gentoo-dev 2006-02-09 14:18:40 UTC
i get that too, thats why i've been reluctant to bump this version without getting to the bottom of this. the segv is very disconcerting, i wonder whether we should even have this in portage.
Comment 5 Pinky 2006-06-15 04:29:42 UTC
In gentoo tar.gz is no longet this problem present, and author provide .zip file
Comment 6 Pinky 2006-06-15 04:31:04 UTC
Sory, this wos a miss click
Comment 7 Josh Glover (RETIRED) gentoo-dev 2006-11-16 19:12:29 UTC
I can confirm this. Here is a Python debugger session that illustrates the problem:

: jglover@jglover; python -m pdb /usr/lib/python2.4/site-packages/XSV/commandLine.py -s Anywhere.xsl Anywhere.xml Anywhere.xsd
> /usr/lib/python2.4/site-packages/XSV/commandLine.py(1)?()
-> """Drive XSV from command line"""
(Pdb) n
> /usr/lib/python2.4/site-packages/XSV/commandLine.py(3)?()
-> __version__="$Revision: 1.8 $ of $Date: 2004/04/01 12:52:39 $"
(Pdb)
> /usr/lib/python2.4/site-packages/XSV/commandLine.py(6)?()
-> import sys
(Pdb)
> /usr/lib/python2.4/site-packages/XSV/commandLine.py(8)?()
-> _usageString="Usage: [-ktwilDNe] [-u baseURI] [-T type] [-E elt] [-r [-r [-r]] [ind|alt]] [-s stylesheet] [-o outputFile] [-p profileOut] file [schema1 schema2 . . .]\n"
(Pdb)
> /usr/lib/python2.4/site-packages/XSV/commandLine.py(10)?()
-> def parseAndRun(argl):
(Pdb)
> /usr/lib/python2.4/site-packages/XSV/commandLine.py(109)?()
-> if __name__=='__main__':
(Pdb)
> /usr/lib/python2.4/site-packages/XSV/commandLine.py(110)?()
-> parseAndRun(sys.argv[1:])
(Pdb) s
--Call--
> /usr/lib/python2.4/site-packages/XSV/commandLine.py(10)parseAndRun()
-> def parseAndRun(argl):
(Pdb) n
> /usr/lib/python2.4/site-packages/XSV/commandLine.py(11)parseAndRun()
-> k=0
(Pdb)
> /usr/lib/python2.4/site-packages/XSV/commandLine.py(12)parseAndRun()
-> dw=1
(Pdb)
> /usr/lib/python2.4/site-packages/XSV/commandLine.py(13)parseAndRun()
-> timing=0
(Pdb)
> /usr/lib/python2.4/site-packages/XSV/commandLine.py(14)parseAndRun()
-> style=None
(Pdb)
> /usr/lib/python2.4/site-packages/XSV/commandLine.py(15)parseAndRun()
-> outfile=None
(Pdb)
> /usr/lib/python2.4/site-packages/XSV/commandLine.py(16)parseAndRun()
-> reflect=0
(Pdb)
> /usr/lib/python2.4/site-packages/XSV/commandLine.py(17)parseAndRun()
-> reflect2=0
(Pdb)
> /usr/lib/python2.4/site-packages/XSV/commandLine.py(18)parseAndRun()
-> independent=0
(Pdb)
> /usr/lib/python2.4/site-packages/XSV/commandLine.py(19)parseAndRun()
-> proFile=None
(Pdb)
> /usr/lib/python2.4/site-packages/XSV/commandLine.py(20)parseAndRun()
-> scanForLocs=0
(Pdb) l 86
 81           sys.exit(-1)
 82         else:
 83           break
 84         argl=argl[1:]
 85
 86       from XSV.driver import runitAndShow, SchemaValidationError
 87       if argl:
 88         if proFile:
 89           import profile
 90           res=profile.run("""runitAndShow(argl[0],argl[1:],k,
 91                              style,None,outfile,dw,timing,reflect,independent,
(Pdb) b 86
Breakpoint 1 at /usr/lib/python2.4/site-packages/XSV/commandLine.py:86
(Pdb) c
> /usr/lib/python2.4/site-packages/XSV/commandLine.py(86)parseAndRun()
-> from XSV.driver import runitAndShow, SchemaValidationError
(Pdb) n
> /usr/lib/python2.4/site-packages/XSV/commandLine.py(87)parseAndRun()
-> if argl:
(Pdb)
> /usr/lib/python2.4/site-packages/XSV/commandLine.py(88)parseAndRun()
-> if proFile:
(Pdb)
> /usr/lib/python2.4/site-packages/XSV/commandLine.py(96)parseAndRun()
-> res=runitAndShow(argl[0],argl[1:],
(Pdb) p arg[0]
*** NameError: <exceptions.NameError instance at 0xb74c06ec>
(Pdb) arg[0].print
*** SyntaxError: invalid syntax (<stdin>, line 1)
(Pdb) print arg[0]
*** NameError: name 'arg' is not defined
(Pdb) print argl[0]
Anywhere.xml
(Pdb) print argl[1]
Anywhere.xsd
(Pdb) print argl[1:]
['Anywhere.xsd']
(Pdb) s
> /usr/lib/python2.4/site-packages/XSV/commandLine.py(97)parseAndRun()
-> k,style,None,outfile,dw,timing,reflect,
(Pdb) n
> /usr/lib/python2.4/site-packages/XSV/commandLine.py(98)parseAndRun()
-> independent,reflect2,scanForLocs,useDTD,topType,
(Pdb)
> /usr/lib/python2.4/site-packages/XSV/commandLine.py(99)parseAndRun()
-> topElt,derefNSNs,control,baseURI,preserveRedirect)
(Pdb)
*** glibc detected *** free(): invalid pointer: 0xb74a2fa8 ***
Aborted
Comment 8 Sam Jacobson 2007-04-26 21:05:50 UTC
I don't believe this is a fault in xsv. I believe this is a fault in pyltxml. I got ltxml + py24-ltxml + xsv running on freebsd. (ltxml + py24-ltxml from ports). It seems to run fine there, so I don't think it's just an "old or unmaintained" package. I think there's a fault in the pyltxml build process. There is a warning when merging pyltxml (on my system at least).

I was going to contribute a patch for ltxml for amd64, but since it didn't work for me (same result as x86) I haven't yet. If I get a chance I might dig a bit deeper.
Comment 9 Jakub Moc (RETIRED) gentoo-dev 2007-08-08 14:37:07 UTC
Closing, we are not adding stuff that just produces segfaults.