Wed 29 Apr 2009 12:11:59 AM UTC, original submission:
We find the problem that XMLSocket.onXML() will crash
when XMLSocket_as.cpp call new XML_as(xmlin)
two attachments submition:
1. sample.swf (implements XMLSocket.onXML() to receive data)
2. s2.c (a simple socket server to send "<xml></xml>")
gdb bt messages:
========================================================================================
Starting program: /home/qrtt1/app/gnash-bzr/bin/gtk-gnash sample.swf
[Thread debugging using libthread_db enabled]
[New Thread 0xb64e7a20 (LWP 5528)]
[New Thread 0xb635bb90 (LWP 5534)]
[New Thread 0xb4652b90 (LWP 5535)]
[Thread 0xb4652b90 (LWP 5535) exited]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb64e7a20 (LWP 5528)]
0xb71cd754 in std::runtime_error::~runtime_error () from /usr/lib/libstdc++.so.6
(gdb) bt
#0 0xb71cd754 in std::runtime_error::~runtime_error () from /usr/lib/libstdc++.so.6
#1 0xb7963898 in ~ActionTypeError (this=0xa0e6408) at ../../libbase/GnashException.h:44
#2 0xb7971abc in gnash::as_value::set_as_object (this=0xbfa8dcc4, obj=0xa0e6408) at as_value.cpp:1140
#3 0xb7971ba9 in as_value (this=0xbfa8dcc4, obj=0xa0e6408) at as_value.cpp:1826
#4 0xb796a0ad in as_object (this=0xb3d0ca80, proto=0xa0e6408) at as_object.cpp:1078
#5 0xb7add914 in XML_as (this=0xb3d0ca38, xml=@0xbfa8ddd8) at XML_as.cpp:101
#6 0xb7ae6949 in xmlsocket_onData (fn=@0xbfa8deb0) at XMLSocket_as.cpp:376
#7 0xb79631e0 in gnash::builtin_function::operator() (this=0xb3d0a628, fn=@0xbfa8deb0) at ../../libcore/builtin_function.h:102
#8 0xb7ae7d67 in gnash::XMLSocket_as::checkForIncomingData (this=0xb3d0aaf8) at ../../libcore/as_function.h:73
#9 0xb7ae8c53 in gnash::XMLSocket_as::advanceState (this=0xffffffff) at XMLSocket_as.cpp:76
#10 0xb79bbe02 in gnash::movie_root::executeAdvanceCallbacks (this=0xbfa8e1d0) at /usr/include/c++/4.3/bits/stl_function.h:525
#11 0xb79bed26 in gnash::movie_root::advance (this=0xbfa8e1d0) at movie_root.cpp:1035
#12 0x0807883d in gnash::Gui::advanceMovie (this=0x9f63250) at gui.cpp:946
#13 0xb729a906 in ?? () from /usr/lib/libglib-2.0.so.0
#14 0x09f63250 in ?? ()
#15 0x0a0e3d50 in ?? ()
#16 0xbfa8dff8 in ?? ()
#17 0xb7299a28 in ?? () from /usr/lib/libglib-2.0.so.0
#18 0xb7315804 in ?? () from /usr/lib/libglib-2.0.so.0
#19 0x0a0e3d50 in ?? ()
#20 0xbfa8e008 in ?? ()
#21 0xb7315240 in ?? () from /usr/lib/libglib-2.0.so.0
#22 0xb7315240 in ?? () from /usr/lib/libglib-2.0.so.0
#23 0xbfa8e03c in ?? ()
#24 0xbfa8e058 in ?? ()
#25 0xb729a1d8 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
Backtrace stopped: frame did not save the PC
libstdc++:
test in debian:
qrtt1@debian:~/Desktop$ dpkg --list |grep libstdc
ii libstdc++6 4.3.2-1.1 The GNU Standard C++ Library v3
ii libstdc++6-4.3-dev 4.3.2-1.1 The GNU Standard C++ Library v3 (development files)
test in ubuntu:
chenpoming@chenpoming-laptop:~/App/gnash-trunk/bin$ dpkg --list |grep libstdc
ii libstdc++6 4.3.2-1ubuntu12 The GNU Standard C++ Library v3
ii libstdc++6-4.3-dev 4.3.2-1ubuntu12 The GNU Standard C++ Library v3 (development
gnash revision:
qrtt1@debian:~/temp/gnash-bzr/trunk$ bzr log|head
------------------------------------------------------------
revno: 10851
committer: Markus Gothe <nietzsche@lysator.liu.se>
branch nick: trunk
timestamp: Sun 2009-04-26 23:31:52 +0200
message:
revert back to HAS_PYTHON so I don't break anyting
------------------------------------------------------------
configuration args:
--prefix=/home/qrtt1/app/gnash-bzr --enable-debugger --enable-gui=gtk
|