bugGnash - The GNU Flash player - Bugs: bug #21295, Crash (Failed assertion) in...

 
 

bug #21295: Crash (Failed assertion) in as_environment.cpp:1100

Submitter:  Fredrik Johansson <mumme>
Submitted:  Mon 08 Oct 2007 03:22:42 PM UTC
   
 
Category:  ActionScript Severity:  3 - Normal
Release:  None Status:  Fixed
Privacy:  Public Assigned to:  strk
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Wed 10 Oct 2007 07:04:39 AM UTC, comment #9: 

see bug #21304 (so it's clickable)

Sandro Santilli <strk>
Group Member
Wed 10 Oct 2007 06:02:47 AM UTC, comment #8: 


> ERROR: ActionLimits hit: Max stack count reached (255)


I made a simple and sane testcase to reproduce this message. See misc-mtasc.all/super_test1.as.

Zou Lunkai <zoulunkai>
Tue 09 Oct 2007 09:53:25 PM UTC, comment #7: 

It works fine for me now, no crash.

I filed 21304 about movie playing to fast.

Regards
Fredrik Johansson

Fredrik Johansson <mumme>
Tue 09 Oct 2007 08:20:50 PM UTC, comment #6: 

The assertion failure is fixed for me.
Could not reproduce the segfault runnign locally, did you ?
segfaults after the message warning about possible segfaults are expected.

Sandro Santilli <strk>
Group Member
Tue 09 Oct 2007 11:31:12 AM UTC, comment #5: 

If swf_function uses the environment passed in by the fn_call we get no assertion failure here.
I have the feeling swf_function insisting in using the environment (thus the 'locals' stack used at definition time) has a role here, but don't have a full picture yet.
Will draw some diagram to have a cleaner idea.

Sandro Santilli <strk>
Group Member
Tue 09 Oct 2007 10:53:13 AM UTC, comment #4: 

Confirm the assertion on restart.
On restart scripts are re-enabled.

Sandro Santilli <strk>
Group Member
Tue 09 Oct 2007 09:46:09 AM UTC, comment #3: 

And a segfault if I close gnash in the first 30 seconds or so of http://www.autoprosoftware.co.uk/AM3%20Creating%20Jobs.swf:

#1  0x00002b30faf8025e in bitmap_character_def (this=0xbadaf0, image=@0xbae0c0)
    at bitmap_character_def.cpp:40
#2  0x00002b30faeb33df in gnash::SWF::tag_loaders::define_bits_lossless_2_loader (in=0x226, tag=<value optimized out>, m=0x8c5f00) at swf/tag_loaders.cpp:629
#3  0x00002b30faf87271 in gnash::movie_def_impl::read_all_swf (this=0x8c5f00)
    at movie_def_impl.cpp:919
#4  0x00002b31037ea34f in boost::function0<void, std::allocator<boost::function_base> >::operator() () from /usr/lib64/libboost_thread.so.1

Benjamin Wolsey <bwy>
Group Member
Tue 09 Oct 2007 09:38:55 AM UTC, comment #2: 

The assertion failure is still there if you restart.

Benjamin Wolsey <bwy>
Group Member
Tue 09 Oct 2007 08:13:01 AM UTC, comment #1: 

The assertion failure is fixed. Please file another bug for the fact the movies are not working as expected.

Sandro Santilli <strk>
Group Member
Mon 08 Oct 2007 03:22:42 PM UTC, original submission:  

I found 2 more movies that crash due to a failed assertion, both fails in as_environment.cpp:1100

I cvs up and compiled against todays (2007-10-08) cvs HEAD

http://www.autoprosoftware.co.uk/SchedulerTour.swf
and
http://www.autoprosoftware.co.uk/AM3%20Creating%20Jobs.swf

output:
$ gnash -v http://www.autoprosoftware.co.uk/AM3%20Creating%20Jobs.swf
20618] 17:24:50: Verbose output turned on
20618] 17:24:50: No rendering flags specified, using rcfile
20618] 17:24:50: Checking support for MIT-SHM...
20618] 17:24:50: NOTICE: MIT-SHM available (version 1.1)!
20618] 17:24:50: Your X server expects RGB24 pixmap data for standard mode.
20618] 17:24:50: Created top level window
20618] 17:24:50: DEBUG: bool gnash::Network::connectSocket(const char*) enter
20618] 17:24:50: ERROR: The connect() socket for fd 5 never was available for writing
20618] 17:24:50: LIRC daemon not running
20618] 17:24:50: X server pixel format is (R16:8, G8:8, B0:8, 32 bpp)
20618] 17:24:50: X server is using BGRA32 pixel format
20618] 17:24:50: framebuffer pixel format is BGRA32 (little-endian host)
20618] 17:24:50: Base url set to: http://www.autoprosoftware.co.uk/AM3%20Creating%20Jobs.swf
20618] 17:24:50: SECURITY: Load from host www.autoprosoftware.co.uk granted (default).
20618] 17:24:50: Movie http://www.autoprosoftware.co.uk/AM3%20Creating%20Jobs.swf (SWF6) added to library
20618] 17:24:50: GTK-AGG: Using shared memory image
20618] 17:24:50: initialized AGG buffer <0x2b108750b000>, 1650000 bytes, 750x550, rowsize is 3000 bytes
20618] 17:24:50: ERROR: * no tag loader for type 999 (movie)
20618] 17:24:50: ERROR: * no tag loader for type 998 (movie)
20618] 17:24:50: ERROR: * no tag loader for type 997 (movie)
20618] 17:24:50: ERROR: * no tag loader for type 996 (movie)
20618] 17:24:54: ERROR: ActionLimits hit: Max stack count reached (255)
20618] 17:24:54: DEBUG: Global instance list grew to 4 entries
20618] 17:24:55: DEBUG: Global instance list grew to 7 entries
20618] 17:24:55: ERROR: ActionLimits hit: Max stack count reached (255)
20618] 17:24:55: DEBUG: Global instance list grew to 16 entries
gtk-gnash: as_environment.cpp:1100: void gnash::as_environment::markReachableResources() const: Assertion `_localFrames.empty()' failed.
Aborted

----------------
my config
$ make dumpconfig

Building in directories: libbase libgeometry libamf libmedia server backend utilities gui extensions plugin testsuite po
Some directories may be excluded from the build
Linux linux64 2.6.20-16-generic #2 SMP Sun Sep 23 18:31:23 UTC 2007 x86_64 GNU/Linux
g++ -v
Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-mpfr --enable-checking=release x86_64-linux-gnu
Thread model: posix
gcc version 4.1.2 (Ubuntu 4.1.2-0ubuntu4)
CXXFLAGS: -g -O2 -pthread     -W     -Wall     -Wcast-align     -Wcast-qual     -Wpointer-arith     -Wreturn-type

Image decoding support...
        JPEG_CFLAGS is
        JPEG_LIBS is -L/usr/lib64 -ljpeg
        PNG_CFLAGS is
        PNG_LIBS is
Audio decoding support...
        FFMPEG_CFLAGS is
        FFMPEG_LIBS is -lavcodec -lz -la52 -ldts -lgsm -ldc1394_control -ldl -lvorbisenc -lraw1394 -lavutil -lvorbis -lm -logg   -ldts_pic   -lvorbisenc -lvorbis -lm -logg   -lavformat -lavcodec -lz -la52 -ldts -lgsm -ldc1394_control -ldl -lvorbisenc -lraw1394 -lavutil -lvorbis -lm -logg   -lavutil   -ltheora -logg   -lgsm -ldc1394_control
        OGG_CFLAGS is
        OGG_LIBS is
GUI Toolkit decoding support...
        SDL_CFLAGS is -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL
        SDL_LIBS is -lSDL
        KDE_CFLAGS is -I/usr/include/kde -I/usr/include/kde/kio
        KDE_LIBS is -lkdeui -lkdecore -lkdeprint
        QT_CFLAGS is -I/usr/include/qt3
        QT_LIBS is -L/usr/lib -lqt-mt
        GTK2_CFLAGS is -DPNG_NO_MMX_CODE -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12
        GTK2_LIBS is -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lfontconfig -lXext -lXrender -lXinerama -lXi -lXrandr -lXcursor -lXfixes -lpango-1.0 -lcairo -lX11 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0
        PANGO_CFLAGS is -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
        PANGO_LIBS is -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0
        ATK_CFLAGS is -I/usr/include/atk-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
        ATK_LIBS is -latk-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0
        X11_CFLAGS is -I/usr/include
        X11_LIBS is -L/usr/lib64 -lX11 -lXinerama -lXext -lSM -lICE
Support libraries...
        INCLTDL
        LIBLTDL -lltdl
        GLIB_CFLAGS is -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
        GLIB_LIBS is -lglib-2.0
        Z_CFLAGS is
        Z_LIBS is -L/usr/lib64 -lz
        LIBXML_CFLAGS is -I/usr/include/libxml2
        LIBXML_LIBS is -lxml2
        FREETYPE_CFLAGS is -I/usr/include/freetype2
        FREETYPE_LIBS is -lfreetype -lz
        FONTCONFIG_CFLAGS is
        FONTCONFIG_LIBS is -lfontconfig
        PTHREAD_CFLAGS is -pthread
        PTHREAD_LIBS is -L/usr/lib64 -lpthread
        CURL_CFLAGS is
        CURL_LIBS is -lcurl
        BOOST_CFLAGS is -I/usr/include/boost
        BOOST_LIBS is -L/usr/lib64 -lboost_thread -lboost_date_time -lboost_serialization
        MTASC /usr/bin/mtasc
        MTASC CLASSPATH /usr/share/ocaml/mtasc/std
        SWFMILL /usr/local/bin/swfmill
Graphics support...
        AGG_CFLAGS is -I/usr/include/agg2
        AGG_LIBS is -lagg_pic

A blank value for CFLAGS means the header is installed in the
default system header location. All the LIBS should have a
legit value

Configurable options are:
        Media handler: ffmpeg
        Renderer engine: agg
        Supported GUI: GTK
        Supported GUI: KDE
        Konqueror (KPARTS) plugin enabled
        Firefox (NSAPI) plugin enabled


Regards
Fredrik Johansson

Fredrik Johansson <mumme>

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by zoulunkai (Posted a comment)
  • -email is unavailable- added by bwy (Posted a comment)
  • -email is unavailable- added by strk (Posted a comment)
  • -email is unavailable- added by mumme (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2007-10-10 strk StatusReady For Test Fixed
        Open/ClosedOpen Closed
    2007-10-09 strk StatusIn Progress Ready For Test
    2007-10-09 strk StatusReady For Test In Progress
    2007-10-09 strk CategoryNone ActionScript
        StatusNone Ready For Test
        Assigned toNone strk

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code