swftools-common
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Swftools-common] SWFC crashes encountered on Linux


From: WU Liang
Subject: [Swftools-common] SWFC crashes encountered on Linux
Date: Mon, 16 Nov 2009 19:29:34 +0800

Hi, nice guys,
 
I just ran into a crash when using SWFC to compile a SWF file.
The source image is downloaded from:
http://www.swftools.org/swftools-2009-08-24-2042.tar.gz
 
I just checked the Win32 version; it works fine.
 
I put some printfs in the function readToken() where SWFC crashed.
Seemingly the crash occurred in the C lib function strlen().
Refer to the script file I used for your information.
It crashes if str_3096 and more variables are added to the script, but it works fine within str_3095.
I tested many times.  Similar results were produced.
Seemingly there is a buffer limit somewhere.
Is anybody willing to help me out?
Thanks!
 
 
---------------------------This is the backtrace information from GDB  -------------------------------
gdb swfc
GNU gdb Red Hat Linux (6.5-25.el5rh)
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu"...(no debugging symbols found)
Using host libthread_db library "/lib64/libthread_db.so.1".
 
(gdb) run vars.sc
Starting program: /data/user/wuliang/tests/clibfunc/swfc vars.sc
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
 
Program received signal SIGSEGV, Segmentation fault.
0x0000000000407cab in readToken ()
(gdb) bt
#0  0x0000000000407cab in readToken ()
#1  0x0000000000408c99 in findFontUsage ()
#2  0x0000000000408fb4 in firstPass ()
#3  0x00000000004100d8 in main ()
(gdb)
---------------------------This is the backtrace information from GDB  -------------------------------
 
---------------------------This is the script file that I used  -------------------------------
.flash name="vars.swf" bbox=240x240 version=6 fps=1 background=""
 
 .action:
 
  var str_0 = 'This is string No.0';
  var str_1 = 'This is string No.1';
  var str_2 = 'This is string No.2';
  var str_3 = 'This is string No.3';
.......................
many many lines omitted here
........................
  var str_3091 = 'This is string No.3091';
  var str_3092 = 'This is string No.3092';
  var str_3093 = 'This is string No.3093';
  var str_3094 = 'This is string No.3094';
  var str_3095 = 'This is string No.3095';
  var str_3096 = 'This is string No.3096';
 
 .end
 
.end
 
---------------------------This is the script file that I used  END-------------------------------
 
 
---------------------------This is the configure log -------------------------------
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking whether gcc supports lazy variable declaration... yes
checking how to run the C preprocessor... gcc -E
checking for ranlib... ranlib
checking whether make sets $(MAKE)... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for gzip... gzip
checking host system type... (cached) x86_64-unknown-linux-gnu
checking for target system...
checking for sin in -lm... yes
checking for deflate in -lz... yes
checking for jpeg_write_raw_data in -ljpeg... yes
checking for DGifOpen in -lungif... yes
checking for byte order... little endian
checking whether system() can handle command substitution... yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking gif_lib.h usability... yes
checking gif_lib.h presence... yes
checking for gif_lib.h... yes
checking io.h usability... no
checking io.h presence... no
checking for io.h... no
checking wchar.h usability... yes
checking wchar.h presence... yes
checking for wchar.h... yes
checking jpeglib.h usability... yes
checking jpeglib.h presence... yes
checking for jpeglib.h... yes
checking assert.h usability... yes
checking assert.h presence... yes
checking for assert.h... yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking for sys/stat.h... (cached) yes
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking for sys/types.h... (cached) yes
checking dirent.h usability... yes
checking dirent.h presence... yes
checking for dirent.h... yes
checking sys/bsdtypes.h usability... no
checking sys/bsdtypes.h presence... no
checking for sys/bsdtypes.h... no
checking sys/ndir.h usability... no
checking sys/ndir.h presence... no
checking for sys/ndir.h... no
checking sys/dir.h usability... yes
checking sys/dir.h presence... yes
checking for sys/dir.h... yes
checking ndir.h usability... no
checking ndir.h presence... no
checking for ndir.h... no
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for off_t... yes
checking for size_t... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for boolean... no
checking for popen... yes
checking for wcschr... yes
checking for wcsdup... yes
checking for mkstemp... yes
checking for stat... yes
checking for mmap... yes
checking for lrand48... yes
checking for rand... yes
checking for srand48... yes
checking for srand... yes
checking for bcopy... yes
checking for bzero... yes
checking for time... yes
checking for getrusage... yes
checking for mallinfo... yes
checking size of signed char... 1
checking size of signed short... 2
checking size of signed... 4
checking size of signed long long... 8
checking size of void*... 8
checking for freetype-config... /usr/bin/freetype-config
checking ft2build.h usability... yes
checking ft2build.h presence... yes
checking for ft2build.h... yes
checking whether we can compile the freetype test program... yes
checking for FcInit in -lfontconfig... yes
checking fontconfig.h usability... yes
checking fontconfig.h presence... yes
checking for fontconfig.h... yes
checking whether we can compile the fontconfig test program... yes
checking for glBegin in -lGL... yes
checking for gluBeginSurface in -lGLU... yes
checking for glutInit in -lglut... no
checking GL/gl.h usability... yes
checking GL/gl.h presence... yes
checking for GL/gl.h... yes
checking GL/glut.h usability... no
checking GL/glut.h presence... no
checking for GL/glut.h... no
checking whether we can compile the opengl test program... no
checking for lame_init in -lmp3lame... no
checking lame.h usability... no
checking lame.h presence... no
checking for lame.h... no
checking for avifile-config... no
checking whether we can compile the avifile test program... no
checking for Python.h... 2.4
checking whether we can compile the python test program... yes
checking for Python-Imaging... no
checking for missing libraries...
configure: creating ./config.status
config.status: creating Makefile.common
config.status: creating Makefile
config.status: creating lib/Makefile
config.status: creating lib/action/Makefile
config.status: creating src/Makefile
config.status: creating lib/pdf/Makefile
config.status: creating swfs/Makefile
config.status: creating lib/python/Makefile
config.status: creating lib/art/Makefile
config.status: creating lib/readers/Makefile
config.status: creating config.h
config.status: config.h is unchanged
---------------------------This is the configure log  END -------------------------------
 
 
Thanks,
 
Liang
 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]