bugGnash - The GNU Flash player - Bugs: bug #17476, segfault on openbsd

 
 

bug #17476: segfault on openbsd

Submitted by:  None
Submitted on:  Sat 19 Aug 2006 06:16:59 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Release: NoneStatus: Fixed
Privacy: PublicAssigned to: Bastiaan Jacques <bjacques>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sun 20 Aug 2006 07:37:21 PM UTC, comment #3:

That did the trick.

Bastiaan Jacques <bjacques>
Project MemberIn charge of this item.
Sun 20 Aug 2006 02:15:09 PM UTC, comment #2:

There's likely a problem of statics initialization order.
Some macros are used to change order for WIN32, search in action_buffer.cpp and ASHandlers.cpp for _handlers(255)
and see if initializing it in action_buffer makes things better
under openbsd.

Sandro Santilli <strk>
Project Member
Sat 19 Aug 2006 06:31:10 PM UTC, comment #1:

In this commit:

http://cvs.savannah.gnu.org/viewcvs/gnash/server/swf/ASHandlers.h?cvsroot=gnash&r1=1.1&r2=1.2

the type of SWFHandlers::_handlers is changed from std::map<action_type, ActionHandler> to std::vector<ActionHandler>. However, in SWFHandlers::SWFHandlers(), _handlers is still used as if it were a map:

_handlers[ACTION_END] = ActionHandler(ACTION_END,
string("<End>"), SWFHandlers::ActionEnd);

where _handlers[ACTION_END] is not initialised.

I believe this causes the crash.

Bastiaan Jacques <bjacques>
Project MemberIn charge of this item.
Sat 19 Aug 2006 06:16:59 PM UTC, original submission:

Hi,

Built from 08-18-2006 and 08-19-2006 cvs, using either SDL or GTK, gnash segfaults without generating any output at all, even with -v.

backtrace:

#0 0x04bc811f in gnash::SWF::ActionHandler::operator=(gnash::SWF::ActionHandler const&) (this=0x0, _ctor_arg=@0xcf7d3538)
at swf/ASHandlers.cpp:276
276 string("<End>"), SWFHandlers::ActionEnd);
(gdb) bt
#0 0x04bc811f in gnash::SWF::ActionHandler::operator=(gnash::SWF::ActionHandler const&) (this=0x0, _ctor_arg=@0xcf7d3538)
at swf/ASHandlers.cpp:276
#1 0x04bb91db in SWFHandlers (this=0x879fd040) at swf/ASHandlers.cpp:275
#2 0x04bbf017 in gnash::SWF::SWFHandlers::instance() () at swf/ASHandlers.cpp:489
#3 0x04b3de28 in __static_initialization_and_destruction_0 (__initialize_p=1, __priority=65535) at action_buffer.cpp:73
#4 0x04b3de69 in _GLOBAL__I__ZN5gnash13action_bufferC2Ev () at ASHandlers.h:128
#5 0x04af65e5 in ?? () from /usr/local/lib/libgnashserver.so.0.0
#6 0x2cb0318c in ?? () from /usr/libexec/ld.so
#7 0x00000000 in ?? ()

$gcc --version
gcc (GCC) 3.3.5 (propolice)

OpenBSD 4.0-beta (GENERIC) #1057: Sun Aug 13 19:20:29 MDT 2006

$ldd /usr/local/bin/gnash | awk '{print $7}'

Name
/usr/local/bin/gnash
/usr/local/lib/libgnashgui.so.0.0
/usr/local/lib/libgnashbackend.so.0.0
/usr/local/lib/libgstreamer-0.10.so.4.0
/usr/local/lib/libgthread-2.0.so.1000.3
/usr/lib/libpthread.so.6.3
/usr/local/lib/libgtkglext-x11-1.0.so.0.0
/usr/local/lib/libatk-1.0.so.1011.3
/usr/local/lib/libgtk-x11-2.0.so.802.1
/usr/local/lib/libgdkglext-x11-1.0.so.0.0
/usr/local/lib/libpangox-1.0.so.1200.3
/usr/local/lib/libpangocairo-1.0.so.1200.3
/usr/local/lib/libpangoft2-1.0.so.1200.3
/usr/local/lib/libcairo.so.4.4
/usr/X11R6/lib/libfreetype.so.13.1
/usr/X11R6/lib/libfontconfig.so.3.0
/usr/local/lib/libglitz.so.1.0
/usr/X11R6/lib/libXrender.so.4.1
/usr/local/lib/libpango-1.0.so.1200.3
/usr/local/lib/libgdk_pixbuf-2.0.so.802.1
/usr/local/lib/libgobject-2.0.so.1000.3
/usr/local/lib/libgmodule-2.0.so.1000.3
/usr/local/lib/libglib-2.0.so.1000.3
/usr/local/lib/libintl.so.3.0
/usr/local/lib/libgdk-x11-2.0.so.802.1
/usr/X11R6/lib/libICE.so.8.1
/usr/X11R6/lib/libSM.so.8.0
/usr/X11R6/lib/libXt.so.9.0
/usr/X11R6/lib/libXmu.so.9.0
/usr/local/lib/libgnashserver.so.0.0
/usr/local/lib/libgnashamf.so.0.0
/usr/local/lib/libxml2.so.9.3
/usr/local/lib/libiconv.so.4.0
/usr/local/lib/libpng.so.5.1
/usr/local/lib/libSDL_mixer.so.3.0
/usr/local/lib/libmikmod.so.2.4
/usr/local/lib/libsmpeg.so.2.0
/usr/local/lib/libogg.so.5.3
/usr/local/lib/libvorbis.so.5.1
/usr/local/lib/libvorbisfile.so.4.1
/usr/local/lib/libgnashgeo.so.0.0
/usr/local/lib/libgnashbase.so.0.0
/usr/X11R6/lib/libGLU.so.7.0
/usr/X11R6/lib/libGL.so.4.0
/usr/local/lib/libSDL.so.6.0
/usr/lib/libusbhid.so.3.0
/usr/X11R6/lib/libXext.so.9.0
/usr/X11R6/lib/libX11.so.9.0
/usr/lib/libz.so.4.1
/usr/local/lib/libjpeg.so.62.0
/usr/lib/libstdc++.so.42.0
/usr/lib/libm.so.2.3
/usr/lib/libc.so.39.3
/usr/X11R6/lib/libXrandr.so.5.0
/usr/X11R6/lib/libXi.so.9.0
/usr/X11R6/lib/libXinerama.so.4.0
/usr/X11R6/lib/libXcursor.so.3.0
/usr/X11R6/lib/libXfixes.so.4.0
/usr/X11R6/lib/libexpat.so.5.0
/usr/libexec/ld.so

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 5 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Sun 20 Aug 2006 07:37:21 PM UTCbjacquesStatusNone=>Fixed
  Assigned toNone=>bjacques
  Open/ClosedOpen=>Closed
Sun 20 Aug 2006 03:16:27 AM UTCdeannaCarbon-Copy-=>Added deanna
Sat 19 Aug 2006 06:31:10 PM UTCbjacquesCarbon-Copy-=>Added strk

Back to the top


Powered by Savane 3.1-cleanup1