<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=GB2312" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
omniORB 4.1.0beta2, <br>
i386 Linux,<br>
gcc 4.1<br>
<br>
Source:<br>
--------begin------<br>
#include <omniORB4/CORBA.h><br>
<br>
int main (int argc, char* argv[])<br>
{<br>
CORBA::ORB_var orb = CORBA::ORB_init(argc,argv);<br>
<br>
cdrMemoryStream stream;<br>
<br>
<b> stream.setByteSwapFlag(<font color="#3366ff">0</font>);</b><br>
<br>
CORBA::Any any;<br>
any <<= "something";<br>
<br>
any >>= stream;<br>
<b><font color="#ff0000"> any <<= stream;</font><br>
</b><br>
orb->destroy();<br>
<br>
return 0;<br>
}<br>
<br>
-------end---------<br>
<br>
(gdb) run<br>
Starting program: /home/jw/test/omni/a.out<br>
Reading symbols from shared object read from target memory...done.<br>
Loaded system supplied DSO at 0xd00000<br>
[Thread debugging using libthread_db enabled]<br>
[New Thread -1208670512 (LWP 13167)]<br>
terminate called after throwing an instance of 'CORBA::MARSHAL'<br>
<br>
Program received signal SIGABRT, Aborted.<br>
[Switching to Thread -1208670512 (LWP 13167)]<br>
0x00d00410 in __kernel_vsyscall ()<br>
(gdb) bt<br>
#0 0x00d00410 in __kernel_vsyscall ()<br>
#1 0x0044b069 in raise () from /lib/libc.so.6<br>
#2 0x0044c671 in abort () from /lib/libc.so.6<br>
#3 0x03ee9c30 in __gnu_cxx::__verbose_terminate_handler () from
/usr/lib/libstdc++.so.6<br>
#4 0x03ee7655 in std::set_unexpected () from /usr/lib/libstdc++.so.6<br>
#5 0x03ee7692 in std::terminate () from /usr/lib/libstdc++.so.6<br>
#6 0x03ee77ca in __cxa_throw () from /usr/lib/libstdc++.so.6<br>
#7 0x005dd5fa in omni::omniExHelper::MARSHAL () from
/usr/local/lib/libomniORB4.so.1<br>
#8 0x006616ed in omni::omniCodeSet::TCS_C_8bit::unmarshalString ()
from /usr/local/lib/libomniORB4.so.1<br>
#9 0x00238420 in omni::copyUsingTC () from
/usr/local/lib/libomniDynamic4.so.1<br>
#10 0x00239304 in omni::tcParser::copyStreamToStream () from
/usr/local/lib/libomniDynamic4.so.1<br>
#11 0x001dc54a in CORBA::Any::operator<<= () from
/usr/local/lib/libomniDynamic4.so.1<br>
#12 0x08048b25 in main (argc=Cannot access memory at address 0x336f<br>
) at x.cpp:15<br>
<br>
<br>
<br>
</body>
</html>