dia-0.97.3_pre20140417 crashes while export png
Submitted by Drunkard Zhang
Link to original bug (#728921)
Description
Created attachment 275093 strace attached while export to png
dia crashed while export to Pixbuf[png], export to cairo PNG generated a zero size file, same behavior with jpeg format. Didn't test all formats.
Related report on gentoo.org is: https://bugs.gentoo.org/show_bug.cgi?id=508566
Here's trace in gdb: 09:25:12 /tmp $ gdb /usr/bin/dia GNU gdb (Gentoo 7.7 p1) 7.7 Copyright (C) 2014 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-pc-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: http://bugs.gentoo.org/. Find the GDB manual and other documentation resources online at: http://www.gnu.org/software/gdb/documentation/. For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from /usr/bin/dia...(no debugging symbols found)...done. (gdb) set args /learn-sys/doc/squid/方案2.dia (gdb) run Starting program: /usr/bin/dia /learn-sys/doc/squid/方案2.dia warning: Could not load shared library symbols for linux-vdso.so.1. Do you need "set solib-search-path" or "set sysroot"? [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1". Gtk-Message: Failed to load module "gnomesegvhandler" [New Thread 0x7fffe8107700 (LWP 9739)] [New Thread 0x7fffde654700 (LWP 9740)] [New Thread 0x7fffdd86c700 (LWP 9741)] [New Thread 0x7fffdd06b700 (LWP 9742)] [New Thread 0x7fffcffff700 (LWP 9743)] [Thread 0x7fffdd86c700 (LWP 9741) exited] [Thread 0x7fffdd06b700 (LWP 9742) exited] [New Thread 0x7fffdd06b700 (LWP 9744)] The program 'dia' received an X Window System error. This probably reflects a bug in the program. The error was 'BadValue (integer parameter out of range for operation)'. (Details: serial 9852 error_code 2 request_code 53 minor_code 0) (Note to programmers: normally, X errors are reported asynchronously; that is, you will receive the error a while after causing it. To debug your program, run it with the --sync command line option to change this behavior. You can then get a meaningful backtrace from your debugger if you break on the gdk_x_error() function.) [Thread 0x7fffcffff700 (LWP 9743) exited] [Thread 0x7fffde654700 (LWP 9740) exited] [Thread 0x7fffe8107700 (LWP 9739) exited] [Thread 0x7ffff7fa48c0 (LWP 9734) exited] [Inferior 1 (process 9734) exited with code 01] (gdb)
Attachment was from strace, just a export time trace, not full trace.
Attachment 275093, "strace attached while export to png":
dia-strace.txt
Version: devel