I am currently building rpm package for synfig-1.0 here:

https://build.opensuse.org/project/show/home:intijk:synfigstudio


When I build synfigstudio part, the build procedure will call command
synfig, this command is built at synfig-core package. When it trying to
create png files from sif files.

Under directory:
synfigstudio-1.0.1/images

When the make run to command:
synfig -q synfig_icon.sif -o 128x128/synfig_icon.png --time 0 -w 128 -h 128

It will complaining Segmentation Fault:

abuild@intijkPCeth0:~/rpmbuild/BUILD/synfigstudio-1.0.1/images> synfig -q
synfig_icon.sif -o 128x128/synfig_icon.png --time 0 -w 128 -h 128
synfig(6985) [10:19:39 PM] info: Loading modules from
/etc/synfig_modules.cfg
/usr/bin/synfig: warning: Unable to find module "mod_imagemagick" (file not
found)
/usr/bin/synfig: warning: Unable to find module "mod_magickpp" (file not
found)
/usr/bin/synfig: warning: Unable to find module "mod_mng" (file not found)
/usr/bin/synfig: warning: Unable to find module "mod_openexr" (file not
found)
/usr/bin/synfig: warning: Unable to find module "mod_jpeg" (file not found)
/usr/bin/synfig: warning: Unable to find module "mod_libavcodec" (file not
found)
synfig(6985) [10:19:39 PM] info: Loading file: synfig_icon.sif
synfig(6985) [10:19:39 PM] info: Loading file: ./logo.sif
Segmentation fault

The wired thing is that the command only failed at build environment, i.e.
create an accumulated path, mount bind /proc , chroot into it, when I use
it under normal environment, it works good.

By adding Buildrequies: strace to spec file,  I got some strace log :

stat("/usr/X11R6/lib/X11/fonts", 0x7fffc58fcc20) = -1 ENOENT (No such file
or directory)
stat("/usr/X11R6/lib/X11/fonts", 0x7fffc58fcca0) = -1 ENOENT (No such file
or directory)
stat("/opt/kde3/share/fonts", 0x7fffc58fcc20) = -1 ENOENT (No such file or
directory)
stat("/opt/kde3/share/fonts", 0x7fffc58fcca0) = -1 ENOENT (No such file or
directory)
stat("/usr/local/share/fonts", 0x7fffc58fcc20) = -1 ENOENT (No such file or
directory)
stat("/usr/local/share/fonts", 0x7fffc58fcca0) = -1 ENOENT (No such file or
directory)
stat("/home/abuild/.local/share/fonts", 0x7fffc58fcc20) = -1 ENOENT (No
such file or directory)
stat("/home/abuild/.local/share/fonts", 0x7fffc58fcca0) = -1 ENOENT (No
such file or directory)
stat("/home/abuild/.fonts", 0x7fffc58fcc20) = -1 ENOENT (No such file or
directory)
stat("/home/abuild/.fonts", 0x7fffc58fcca0) = -1 ENOENT (No such file or
directory)
readlink("/proc/self/exe", "/usr/bin/synfig", 4096) = 15
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0} ---
+++ killed by SIGSEGV +++


The readlink return success, but code follow it cause seg fault, but I am
not familiar with the source code of synfig-core part.

The synfig command crash when it convert the time 0 frame of
synfig_icon.sif to png file. Can someone locate the position of this part
of code?
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Synfig-devl mailing list
Synfig-devl@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synfig-devl

Reply via email to