Hi,
I downloaded the 1.3 src.tar.gz and have been trying to compile it and
the cvs xalan to work with the STLPort 4.5
I always get an error running XalanTransform on xml/xsl files
it runs just fine without any files to operate on, but when transforming
it segvs.
$ ./XalanTransform
Usage: XalanTransform XMLFileName XSLFileName [OutFileName]
$
$ gdb ./XalanTransform
GNU gdb 5.0rh-5 Red Hat Linux 7.1
Copyright 2001 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux"...(no debugging symbols found)...
(gdb) r /tmp/foo.xml /tmp/foo.xsl
Starting program: /tmp/xalan-c-root/usr/bin/./XalanTransform /tmp/foo.xml /tmp/foo.xsl
bt
(no debugging symbols found)...[New Thread 1024 (LWP 18137)]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 18137)]
0x4088ce9f in chunk_free (ar_ptr=0x40940620, p=0x804f5bc) at malloc.c:3228
3228 malloc.c: No such file or directory.
in malloc.c
(gdb) bt
#0 0x4088ce9f in chunk_free (ar_ptr=0x40940620, p=0x804f5bc) at malloc.c:3228
#1 0x4088cbf4 in __libc_free (mem=0x804f5c4) at malloc.c:3154
#2 0x407ce1f6 in __builtin_delete (ptr=0x804f5c4) from
/usr/lib/libstdc++-libc6.2-2.so.3
#3 0x40306aeb in _STL::_Deque_base<_STL::vector<unsigned short,
_STL::allocator<unsigned short> >, _STL::allocator<_STL::vector<unsigned short,
_STL::allocator<unsigned short> > > >::~_Deque_base ()
from /var/tmp/xalan-c-root/usr/lib/libxalan-c1_3.so
#4 0x4017dae8 in initializeElementFlagsMap1 () from
/var/tmp/xalan-c-root/usr/lib/libxalan-c1_3.so
#5 0x401d216c in FormatterToHTML::initializeElementFlagsMap () from
/var/tmp/xalan-c-root/usr/lib/libxalan-c1_3.so
#6 0x401fadf0 in FormatterToHTML::initialize () from
/var/tmp/xalan-c-root/usr/lib/libxalan-c1_3.so
#7 0x4020493d in XMLSupportInit::initialize () from
/var/tmp/xalan-c-root/usr/lib/libxalan-c1_3.so
#8 0x40204851 in XMLSupportInit::XMLSupportInit () from
/var/tmp/xalan-c-root/usr/lib/libxalan-c1_3.so
#9 0x402d865b in XSLTInit::XSLTInit () from
/var/tmp/xalan-c-root/usr/lib/libxalan-c1_3.so
#10 0x402f2e53 in XalanTransformer::initialize () from
/var/tmp/xalan-c-root/usr/lib/libxalan-c1_3.so
#11 0x0804944e in __register_frame_info () at ../../gcc/frame-dwarf2.c:479
#12 0x40828507 in __libc_start_main (main=0x80493f0 <__register_frame_info+276>,
argc=3, ubp_av=0xbffff794,
init=0x80490c4 <_init>, fini=0x804a090 <_fini>, rtld_fini=0x4000dc14 <_dl_fini>,
stack_end=0xbffff78c)
at ../sysdeps/generic/libc-start.c:129
I have a .spec and some minor changes to the Makefile.in to get this
to happen though I need to fix this problem.
Any ideas?
--
-----------------------------------------------------
http://witme.sourceforge.net/libferris.web/index.html