Bug 1086428 - [abrt] ghostscript: i_free_object(): gs killed by SIGSEGV
Summary: [abrt] ghostscript: i_free_object(): gs killed by SIGSEGV
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: ghostscript
Version: 19
Hardware: i686
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Tim Waugh
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:7a38a44aaea4b1e514fe353ba5d...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-04-10 21:22 UTC by INegueruela
Modified: 2014-06-17 23:28 UTC (History)
2 users (show)

Fixed In Version: ghostscript-9.14-3.fc19
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-06-15 01:53:31 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (30.33 KB, text/plain)
2014-04-10 21:22 UTC, INegueruela
no flags Details
File: cgroup (155 bytes, text/plain)
2014-04-10 21:22 UTC, INegueruela
no flags Details
File: core_backtrace (6.34 KB, text/plain)
2014-04-10 21:22 UTC, INegueruela
no flags Details
File: dso_list (3.61 KB, text/plain)
2014-04-10 21:22 UTC, INegueruela
no flags Details
File: environ (895 bytes, text/plain)
2014-04-10 21:22 UTC, INegueruela
no flags Details
File: exploitable (82 bytes, text/plain)
2014-04-10 21:22 UTC, INegueruela
no flags Details
File: limits (1.29 KB, text/plain)
2014-04-10 21:22 UTC, INegueruela
no flags Details
File: maps (11.14 KB, text/plain)
2014-04-10 21:22 UTC, INegueruela
no flags Details
File: open_fds (701 bytes, text/plain)
2014-04-10 21:22 UTC, INegueruela
no flags Details
File: proc_pid_status (761 bytes, text/plain)
2014-04-10 21:22 UTC, INegueruela
no flags Details
File: var_log_messages (13.72 KB, text/plain)
2014-04-10 21:22 UTC, INegueruela
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Ghostscript 695270 0 None None None Never

Description INegueruela 2014-04-10 21:22:15 UTC
Version-Release number of selected component:
ghostscript-9.10-5.fc19

Additional info:
reporter:       libreport-2.2.0
backtrace_rating: 4
cmdline:        /usr/bin/gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -dCompatibilityLevel=1.3 -dAutoRotatePages=/None -dAutoFilterColorImages=false -dNOPLATFONTS -dPARANOIDSAFER -dNOINTERPOLATE -sstdout=%stderr -dColorImageFilter=/FlateEncode -dPDFSETTINGS=/printer -dUseCIEColor -dColorConversionStrategy=/LeaveColorUnchanged -dDoNumCopies -r600 -dDEVICEWIDTHPOINTS=595 -dDEVICEHEIGHTPOINTS=842 -sOutputFile=- -c .setpdfwrite -f -
crash_function: i_free_object
executable:     /usr/bin/gs
kernel:         3.13.7-100.fc19.i686
runlevel:       N 5
type:           CCpp
uid:            4

Truncated backtrace:
Thread no. 1 (10 frames)
 #0 i_free_object at base/gsalloc.c:874
 #1 s_Bicubic_release at devices/vector/gdevpsds.c:863
 #2 sclose at base/stream.c:434
 #3 s_close_filters at base/stream.c:1223
 #4 psdf_end_binary at devices/vector/gdevpsdu.c:453
 #5 pdf_end_image_binary at devices/vector/gdevpdfj.c:449
 #6 pdf_image_end_image_data at devices/vector/gdevpdfi.c:2312
 #7 gx_image_end at base/gximage.c:211
 #8 gs_image_cleanup at base/gsimage.c:660
 #9 gs_image_cleanup_and_free_enum at base/gsimage.c:671

Comment 1 INegueruela 2014-04-10 21:22:21 UTC
Created attachment 885151 [details]
File: backtrace

Comment 2 INegueruela 2014-04-10 21:22:23 UTC
Created attachment 885152 [details]
File: cgroup

Comment 3 INegueruela 2014-04-10 21:22:25 UTC
Created attachment 885153 [details]
File: core_backtrace

Comment 4 INegueruela 2014-04-10 21:22:27 UTC
Created attachment 885154 [details]
File: dso_list

Comment 5 INegueruela 2014-04-10 21:22:29 UTC
Created attachment 885155 [details]
File: environ

Comment 6 INegueruela 2014-04-10 21:22:32 UTC
Created attachment 885156 [details]
File: exploitable

Comment 7 INegueruela 2014-04-10 21:22:34 UTC
Created attachment 885157 [details]
File: limits

Comment 8 INegueruela 2014-04-10 21:22:36 UTC
Created attachment 885158 [details]
File: maps

Comment 9 INegueruela 2014-04-10 21:22:38 UTC
Created attachment 885159 [details]
File: open_fds

Comment 10 INegueruela 2014-04-10 21:22:40 UTC
Created attachment 885160 [details]
File: proc_pid_status

Comment 11 INegueruela 2014-04-10 21:22:43 UTC
Created attachment 885161 [details]
File: var_log_messages

Comment 12 Tim Waugh 2014-04-11 12:31:20 UTC
Are you able to attach the input file you were using so I can try to reproduce this crash?

Comment 13 Tim Waugh 2014-04-15 16:22:19 UTC
(Please use this form to respond)

The crash happened at this time: Apr 10 20:19:11

Could you please attach /var/log/cups/error_log, or perhaps an older date-stamped error_log-* file, whichever covers that time? Thanks.

Comment 14 Tim Waugh 2014-04-16 09:25:16 UTC
Do you have "my_v2.ps - my_v2" still?

Also, please respond using this bugzilla form rather than sending private email -- I will almost certainly lose it otherwise. :-)

Comment 16 Tim Waugh 2014-04-16 16:13:38 UTC
Thanks. I can reproduce the problem. Investigating.

Comment 18 Tim Waugh 2014-04-16 16:42:02 UTC
==14433== Invalid write of size 8
==14433==    at 0x4A0A555: memcpy@@GLIBC_2.14 (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==14433==    by 0x4EBB9B8: s_Bicubic_process (string3.h:51)
==14433==    by 0x4DC2115: s_process_write_buf (stream.c:902)
==14433==    by 0x4DC23A6: spputc (stream.c:488)
==14433==    by 0x4DC24B7: sputs (stream.c:584)
==14433==    by 0x4EE5104: pdf_image_plane_data_alt (gdevpdfi.c:2138)
==14433==    by 0x4EE5220: pdf_image_plane_data (gdevpdfi.c:2168)
==14433==    by 0x4FDC047: gs_image_next_planes (gsimage.c:605)
==14433==    by 0x4DE9811: image_proc_continue (zimage.c:452)
==14433==    by 0x4DB67C2: interp (interp.c:1185)
==14433==    by 0x4DB7D58: gs_interpret (interp.c:510)
==14433==    by 0x4DAC484: gs_main_run_string_end (imain.c:241)
==14433==  Address 0x79f6510 is 352 bytes inside a block of size 59,472 free'd
==14433==    at 0x4A07577: free (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==14433==    by 0x4FC547E: alloc_free_chunk (gsalloc.c:1998)
[...]
==14433== ---- Attach to debugger ? --- [Return/N/n/Y/y/C/c] ---- y
[...]
#2  s_Bicubic_process (st=0x64176d0, pr=0x6418e10, pw=0x6417ef0, last=0)
    at devices/vector/gdevpsds.c:933
933	            memcpy(ss->data + ss->d_len, pr->ptr + 1, copy);
(gdb) p ((stream_Bicubic_state*)st)->data
$10 = (byte *) 0x79f6418 ""
(gdb) p ((stream_Bicubic_state*)st)->d_len
$11 = 0
(gdb) p ((stream_Bicubic_state*)st)->d_size 
$12 = 59364
(gdb) p copy
$13 = 256

Nothing seems obviously wrong. Next step is probably to look at allocation traces.

Comment 21 Tim Waugh 2014-05-28 16:12:13 UTC
Reported upstream:
  http://bugs.ghostscript.com/show_bug.cgi?id=695270

Comment 23 Tim Waugh 2014-05-29 13:51:05 UTC
Will be fixed by upgrading to 9.14.

Comment 24 Fedora Update System 2014-06-05 14:36:40 UTC
ghostscript-9.14-3.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/ghostscript-9.14-3.fc20

Comment 25 Fedora Update System 2014-06-05 14:36:54 UTC
ghostscript-9.14-3.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/ghostscript-9.14-3.fc19

Comment 26 Fedora Update System 2014-06-10 02:57:09 UTC
Package ghostscript-9.14-3.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing ghostscript-9.14-3.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-7139/ghostscript-9.14-3.fc20
then log in and leave karma (feedback).

Comment 27 Fedora Update System 2014-06-15 01:53:31 UTC
ghostscript-9.14-3.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 28 Fedora Update System 2014-06-17 23:28:13 UTC
ghostscript-9.14-3.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.