segfault in initialization

Bug #1281499 reported by Pietro Cerutti
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zorba
New
Undecided
Unassigned

Bug Description

I'm updating the FreeBSD port to 3.0. I have been able to build it successfully, after applying several patches (attached).
However, the library fails to initialize . Any test is aborted, and even the simple zorba -q '1 + 1' does.

This is a backtrace of running exactly "zorba -q '1 + 1'":

Zorba Internal Fatal Error in /usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/zorba-3.0/src/store/naive/qname_pool.cpp:357:
"!found": condition failed
[New Thread 807406400 (LWP 101053/zorba)]

Program received signal SIGABRT, Aborted.
[Switching to Thread 807406400 (LWP 101053/zorba)]
0x00000008063442aa in thr_kill () from /lib/libc.so.7
(gdb) bt
#0 0x00000008063442aa in thr_kill () from /lib/libc.so.7
#1 0x000000080640bfd9 in abort () from /lib/libc.so.7
#2 0x000000080224f6cd in zorba::fatal (condition=0x8025dbca7 "!found", file=0x8025dba48 "/usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/zorba-3.0/src/store/naive/qname_pool.cpp", l
ine=357, msg=0x7fffffff59a9 "") at /usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/zorba-3.0/src/zorbautils/fatal.cpp:40
#3 0x000000080241a7da in zorba::simplestore::QNamePool::insert (this=0x8074aa080, res=@0x7fffffffa5d0, ns=0x802547098 "http://www.w3.org/2001/XMLSchema", pre=0x8024e37dc "xs", ln=0x8025
4d4c0 "string") at /usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/zorba-3.0/src/store/naive/qname_pool.cpp:357
#4 0x000000080245d889 in zorba::simplestore::BasicItemFactory::createQName (this=0x80747b970, result=@0x7fffffffa5d0, ns=0x802547098 "http://www.w3.org/2001/XMLSchema", pre=0x8024e37dc
"xs", ln=0x80254d4c0 "string") at /usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/zorba-3.0/src/store/naive/simple_item_factory.cpp:96
#5 0x000000080213eec6 in RootTypeManager (this=0x807703000) at /usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/zorba-3.0/src/types/root_typemanager.cpp:237
#6 0x00000008018e99dd in zorba::GlobalEnvironment::init (store=0x802caec70) at /usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/zorba-3.0/src/system/globalenv.cpp:101
#7 0x0000000801323d5d in zorba::ZorbaImpl::init (this=0x802ca8810, store=0x802caec70) at /usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/zorba-3.0/src/api/zorbaimpl.cpp:104
#8 0x0000000801323ac3 in zorba::Zorba::getInstance (store=0x802caec70) at /usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/zorba-3.0/src/api/zorba.cpp:32
#9 0x0000000000412170 in main (argc=3, argv=0x7fffffffd470) at /usr/home/cerutti/FreeBSD/ports/textproc/zorba/work/zorba-3.0/bin/zorbacmd.cpp:1028

Any help in determining the cause of this is much appreciated!

[1] All patches can be found here: http://people.freebsd.org/~gahr/zorba-3.0-patches/

Tags: segfault
Revision history for this message
Pietro Cerutti (gahr) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.