Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 541340 - app-text/ghostscript-gpl-9.10-r2 segmentation fault
Summary: app-text/ghostscript-gpl-9.10-r2 segmentation fault
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Printing (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Printing Team
URL:
Whiteboard:
Keywords: Bug
Depends on:
Blocks:
 
Reported: 2015-02-25 14:41 UTC by Richard Yao (RETIRED)
Modified: 2017-02-13 21:33 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Yao (RETIRED) gentoo-dev 2015-02-25 14:41:40 UTC
I had the following consistent segmentation fault:

[1879081.784444] gs[52409]: segfault at 2cc8 ip 00000000006c42a9 sp 00007fffb07832a0 error 4 in gs[400000+48a000]

I have a backtrace and information on the pointer from a core dump:

(gdb) bt
#0  i_free_object (mem=0x16f94d8, ptr=0x2a6fe78, cname=0x7877b9 "Bicubic data") at base/gsalloc.c:874
#1  0x00000000004c6bb2 in sclose (s=s@entry=0x1c565e8) at base/stream.c:434
#2  0x00000000004c7d40 in s_close_filters (ps=ps@entry=0x2ee3fa8, target=0x0) at base/stream.c:1223
#3  0x00000000005bfb01 in psdf_end_binary (pbw=pbw@entry=0x2ee3f98) at devices/vector/gdevpsdu.c:453
#4  0x00000000005edb18 in pdf_end_image_binary (pdev=pdev@entry=0x178a998, piw=piw@entry=0x2ee3f98, data_h=data_h@entry=599) at devices/vector/gdevpdfj.c:449
#5  0x00000000005e7fd9 in pdf_image_end_image_data (info=0x2ee3d50, do_image=USE_AS_IMAGE, draw_last=<optimized out>) at devices/vector/gdevpdfi.c:2312
#6  0x00000000006d934e in gs_image_cleanup_and_free_enum (penum=0x2ee4088, pgs=<optimized out>) at base/gsimage.c:671
#7  0x00000000004ec08f in image_cleanup (i_ctx_p=i_ctx_p@entry=0x1749ad8) at psi/zimage.c:641
#8  0x00000000004ec34e in image_proc_continue (i_ctx_p=0x1749ad8) at psi/zimage.c:463
#9  0x00000000004bbc9b in interp (pi_ctx_p=pi_ctx_p@entry=0x16f72d0, pref=<optimized out>, perror_object=perror_object@entry=0x7fffd2fe98f0) at psi/interp.c:1185
#10 0x00000000004bd279 in gs_call_interp (perror_object=0x7fffd2fe98f0, pexit_code=0x7fffd2fe98ec, user_errors=1, pref=0x7fffd2fe9790, pi_ctx_p=0x16f7370) at psi/interp.c:510
#11 gs_interpret (pi_ctx_p=pi_ctx_p@entry=0x16f72d0, pref=pref@entry=0x7fffd2fe98c0, user_errors=1, user_errors@entry=-755066640, pexit_code=0x7fffd2fe98ec, perror_object=0x7fffd2fe98f0) at psi/interp.c:468
#12 0x00000000004b2089 in gs_main_interpret (perror_object=<optimized out>, pexit_code=<optimized out>, user_errors=-755066640, pref=0x7fffd2fe98c0, minst=<optimized out>) at psi/imain.c:241
#13 gs_main_run_string_end (minst=minst@entry=0x16f7230, user_errors=<optimized out>, pexit_code=pexit_code@entry=0x7fffd2fe98ec, perror_object=perror_object@entry=0x7fffd2fe98f0) at psi/imain.c:621
#14 0x00000000004b210e in gs_main_run_string_with_length (minst=minst@entry=0x16f7230, str=str@entry=0x7642e0 ".runstdin", length=<optimized out>, user_errors=<optimized out>, pexit_code=pexit_code@entry=0x7fffd2fe98ec, perror_object=perror_object@entry=0x7fffd2fe98f0)
    at psi/imain.c:579
#15 0x00000000004b214d in gs_main_run_string (minst=minst@entry=0x16f7230, str=str@entry=0x7642e0 ".runstdin", user_errors=<optimized out>, pexit_code=pexit_code@entry=0x7fffd2fe98ec, perror_object=perror_object@entry=0x7fffd2fe98f0) at psi/imain.c:561
#16 0x00000000004b3559 in run_string (minst=minst@entry=0x16f7230, str=str@entry=0x7642e0 ".runstdin", options=options@entry=2) at psi/imainarg.c:897
#17 0x00000000004b3ab8 in swproc (minst=minst@entry=0x16f7230, arg=0x7fffd2fecc5c "CONTENT_TYPE=application/postscript", arg@entry=0x7fffd2fecc5a "-", pal=pal@entry=0x7fffd2fea0b0) at psi/imainarg.c:314
#18 0x00000000004b4e22 in gs_main_init_with_args (minst=minst@entry=0x16f7230, argc=argc@entry=26, argv=argv@entry=0x7fffd2feabd8) at psi/imainarg.c:218
#19 0x0000000000449d72 in main (argc=26, argv=0x7fffd2feabd8) at psi/gs.c:96
(gdb) info locals
imem = 0x1c565e8
pp = 0x2a6fe60
pstype = 0x2c98
finalize = <optimized out>
size = 11388
rounded_size = <optimized out>
Comment 1 Richard Yao (RETIRED) gentoo-dev 2015-02-25 14:43:26 UTC
app-text/ghostscript-gpl-9.15-r1 fixes this, but the current stable version is app-text/ghostscript-gpl-9.10-r2.
Comment 2 Pacho Ramos gentoo-dev 2015-04-10 14:06:30 UTC
(In reply to Richard Yao from comment #1)
> app-text/ghostscript-gpl-9.15-r1 fixes this, but the current stable version
> is app-text/ghostscript-gpl-9.10-r2.

@printing, ok with stabilizing that version then?
Comment 3 Andreas K. Hüttel archtester gentoo-dev 2017-02-13 21:33:44 UTC
(In reply to Pacho Ramos from comment #2)
> (In reply to Richard Yao from comment #1)
> > app-text/ghostscript-gpl-9.15-r1 fixes this, but the current stable version
> > is app-text/ghostscript-gpl-9.10-r2.
> 
> @printing, ok with stabilizing that version then?

It is stable now.