Menu

#3 problem with User defined string

open
nobody
None
5
2004-09-13
2004-09-13
Anonymous
No

Using otlv4.h with a user defined string class I get a
SIGSEGV in the "operator<<()" function. The
"last_oper_was_read_op=false" statement is what causes
the SIGSEGV.

The #defines that I'm using are:

#define OTL_ORA8
#define OTL_VALUE_TEMPLATE_ON
#define OTL_USER_DEFINED_STRING_CLASS_ON
#define USER_DEFINED_STRING_CLASS ACXString::string
#define STD_NAMESPACE_PREFIX ACXString::

Any ideas?

Here's the backtrace:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1026 (LWP 9779)]
0x080805a1 in otl_stream::operator<< (this=0x80974bf,
s=@0x4096083c)
at otlv4.h:22326
22326 last_oper_was_read_op=false;
(gdb) where
#0 0x080805a1 in otl_stream::operator<<
(this=0x80974bf, s=@0x4096083c)
at otlv4.h:22326
#1 0x0807debb in CDBConnection::getRecordset
(this=0x8542db8,
queryName=@0x852adc8, queryKeys=@0x4096092c) at
dbconnection.cpp:86
#2 0x080651e7 in Hawk::processAddress (this=0x8545360,
dbconn=@0x40960a0c)
at hawk.cpp:315
#3 0x080638d0 in Hawk::process (this=0x8545360,
dbconn=@0x40960a0c)
at hawk.cpp:219
#4 0x08061d73 in
SentricxManager<boost::shared_ptr<Hawk>,
vector<boost::shared_ptr<Hawk::Data>,
allocator<boost::shared_ptr<Hawk::Data> > >, Hawk,
boost::shared_ptr<Hawk::Data> >::doWork
(this=0xbffff240, workUnit=@0x40960a5c)
at SentricxManager.h:200
#5 0x0805e108 in WorkPile<boost::shared_ptr<Hawk>
>::controller (
this=0xbffff240) at workpile.h:465
#6 0x0805d55d in WorkPile<boost::shared_ptr<Hawk>
>::controller (
pv=0xbffff240) at workpile.h:407
#7 0x40038faf in pthread_start_thread () from
/lib/i686/libpthread.so.0
#8 0x4003909f in pthread_start_thread_event () from
/lib/i686/libpthread.so.0

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.