This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
compiled xquery from scheme
- From: Marco Vezzoli <marco dot vezzoli at st dot com>
- To: kawa <kawa at sources dot redhat dot com>
- Date: Tue, 19 Feb 2002 15:42:43 +0100
- Subject: compiled xquery from scheme
I compiled some simple xquery code and tried to load the class from
scheme; the vm crashes.
Am I doing something wrong?
this is the error
-8<------------------------------------------
[vezzoli@web:457] scheme_test ->/usr/bin/java -classpath
/web1/vezzoli/repository/kawa-1.6.98.jar kawa.repl -xquery -C
presentation.xqy
(compiling presentation.xqy)
[vezzoli@web:458] scheme_test ->/usr/bin/java -classpath
/web1/vezzoli/repository/kawa-1.6.98.jar:.
kawa.repl
#|kawa:1|# (require <presentation>)
SIGBUS 10 bus error
si_signo [10]: BUS
si_errno [0]:
si_code [1]: BUS_ADRALN [addr: 0x4ad0e7]
stackpointer=FFBEBBE0
Exiting Thread (sys_thread_t:0xff30c2e8) : no stack
Exiting Thread (sys_thread_t:0x343168) : no stack
"Finalizer" (TID:0x150670, sys_thread_t:0x1505a8, state:CW, thread_t:
t@6, threadID:0xfec71d78, stack_bottom:0xfec72000, stack_size:0x20000)
prio=8
-8<------------------------------------------
this is the environment
-8<------------------------------------------
[vezzoli@web:471] scheme_test ->/usr/bin/java
-version
java version "1.2.2"
Solaris VM (build Solaris_JDK_1.2.2_05a, native threads, sunwjit)
[vezzoli@web:472] scheme_test ->uname -a
SunOS web 5.8 Generic_108528-03 sun4u sparc SUNW,Ultra-60
-8<------------------------------------------
this is the code
-8<------------presentation.xqy--------------
define function extract-slide($doc,$id){
for $s in document($doc)/presentation/slide
where $s/@id=$id
return $s
}
define function pre-toc($doc) {
<toc>
{
for $s in document($doc)/presentation/slide,
$t in $s/title,
$i in $s/@id
return
<toc-item reference={$i}>
{$t}
</toc-item>
}
</toc>
}
-8<------------presentation.xqy--------------
--
(--cafe babe--)
Marco Vezzoli marco.vezzoli@st.com
CR&D Intranet Developement STMicroelectronics
tel. +39 039 603 6852 fax. +39 039 603 5055