[Bug 1126427] Re: LCMS2 needs multi-threading fixes to work with the new Ghostscript 9.07
As decided on in #ubuntu-desktop just now, we'll not ship this until ghostscript runs on an upstream snapshot of lcms2. We won't take ghostscript's forkish of lcms2 as our lcms2 package. ** Changed in: lcms2 (Ubuntu) Status: Triaged = Won't Fix -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1126427 Title: LCMS2 needs multi-threading fixes to work with the new Ghostscript 9.07 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lcms2/+bug/1126427/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1126427] Re: LCMS2 needs multi-threading fixes to work with the new Ghostscript 9.07
Thank you very much for applying the changes, unfortunately, something went wrong in your application of the patch. I have built Ghostscript 9.07 against the patched library and it segfaults on most PDF files. Here is the gdb backtrace: till@till-raring:~/ubuntu/ghostscript/ghostscript-9.07~dfsg$ gdb -c core /usr/bin/gs GNU gdb (GDB) 7.5-ubuntu Copyright (C) 2012 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-linux-gnu. For bug reporting instructions, please see: http://www.gnu.org/software/gdb/bugs/... Reading symbols from /usr/bin/gs...Reading symbols from /usr/lib/debug/usr/bin/gs...done. done. [New LWP 22412] warning: Can't read pathname for load map: Input/output error. [Thread debugging using libthread_db enabled] Using host libthread_db library /lib/x86_64-linux-gnu/libthread_db.so.1. warning: no loadable sections found in added symbol-file system-supplied DSO at 0x7fff714b7000 Core was generated by `gs -sDEVICE=cups -r600 -dcupsColorSpace=1 -sOutputFile=../z /home/till/altona_t'. Program terminated with signal 11, Segmentation fault. #0 gs_lcms2_malloc (id=0x0, size=3744) at ./base/gsicc_lcms2.c:48 48 ptr = gs_alloc_bytes(mem, size, lcms); (gdb) bt #0 gs_lcms2_malloc (id=0x0, size=3744) at ./base/gsicc_lcms2.c:48 #1 0x7fbaf3fda4a5 in ?? () from /usr/lib/x86_64-linux-gnu/liblcms2.so.2 #2 0x7fbaf3fe09b2 in cmsCreateProfilePlaceholder () from /usr/lib/x86_64-linux-gnu/liblcms2.so.2 #3 0x7fbaf3ff5a9e in cmsCreateRGBProfileTHR () from /usr/lib/x86_64-linux-gnu/liblcms2.so.2 #4 0x7fbaf3ff630c in cmsCreateLab4ProfileTHR () from /usr/lib/x86_64-linux-gnu/liblcms2.so.2 #5 0x7fbaf3ff11e8 in ?? () from /usr/lib/x86_64-linux-gnu/liblcms2.so.2 #6 0x7fbaf3ff15df in cmsDetectBlackPoint () from /usr/lib/x86_64-linux-gnu/liblcms2.so.2 #7 0x7fbaf3fd8cef in ?? () from /usr/lib/x86_64-linux-gnu/liblcms2.so.2 #8 0x7fbaf3fd99a2 in ?? () from /usr/lib/x86_64-linux-gnu/liblcms2.so.2 #9 0x7fbaf3ff09a2 in cmsCreateExtendedTransform () from /usr/lib/x86_64-linux-gnu/liblcms2.so.2 #10 0x7fbaf3ff0d81 in cmsCreateMultiprofileTransformTHR () from /usr/lib/x86_64-linux-gnu/liblcms2.so.2 #11 0x7fbaf3ff0e8c in cmsCreateTransformTHR () from /usr/lib/x86_64-linux-gnu/liblcms2.so.2 #12 0x7fbaf47e7245 in gscms_get_link ( lcms_srchandle=lcms_srchandle@entry=0x1afc340, lcms_deshandle=lcms_deshandle@entry=0x19965d0, rendering_params=rendering_params@entry=0x7fff714980c0, memory=0x17f7040) ---Type return to continue, or q return to quit--- at ./base/gsicc_lcms2.c:419 #13 0x7fbaf47e5db9 in gsicc_get_link_profile (pis=pis@entry=0x182dc28, dev=dev@entry=0x7fbaf5253068, gs_input_profile=gs_input_profile@entry=0x1997690, gs_output_profile=0x19cb3c0, rendering_params=rendering_params@entry=0x7fff714980c0, memory=0x17f7938, devicegraytok=1) at ./base/gsicc_cache.c:933 #14 0x7fbaf47e61b3 in gsicc_get_link (pis=pis@entry=0x182dc28, dev_in=dev_in@entry=0x7fbaf5253068, pcs_in=pcs_in@entry=0x1a3ee78, output_colorspace=output_colorspace@entry=0x0, rendering_params=rendering_params@entry=0x7fff714980c0, memory=optimized out) at ./base/gsicc_cache.c:614 #15 0x7fbaf47e0528 in gx_remap_ICC (pcc=0x1a39d98, pcs=0x1a3ee78, pdc=0x1a39fc8, pis=0x182dc28, dev=0x7fbaf5253068, select=gs_color_select_texture) at ./base/gsicc.c:380 #16 0x7fbaf498367c in gx_remap_color (pgs=0x182dc28) at ./base/gxcmap.c:558 #17 0x7fbaf4968d70 in do_fill (rule=-1, pgs=0x182dc28) at ./base/gspaint.c:281 #18 fill_with_rule (rule=-1, pgs=0x182dc28) at ./base/gspaint.c:335 #19 fill_with_rule (pgs=0x182dc28, rule=-1) at ./base/gspaint.c:313 #20 0x7fbaf4748204 in interp (pi_ctx_p=pi_ctx_p@entry=0x17f73e8, pref=optimized out, perror_object=perror_object@entry=0x7fff71499110) at ./psi/interp.c:1289 ---Type return to continue, or q return to quit--- #21 0x7fbaf47490bb in gs_call_interp (perror_object=0x7fff71499110, pexit_code=0x7fff7149910c, user_errors=1, pref=optimized out, pi_ctx_p=0x17f73e8) at ./psi/interp.c:501 #22 gs_interpret (pi_ctx_p=pi_ctx_p@entry=0x17f73e8, pref=pref@entry=0x7fff714990e0, user_errors=1, pexit_code=pexit_code@entry=0x7fff7149910c, perror_object=perror_object@entry=0x7fff71499110) at ./psi/interp.c:459 #23 0x7fbaf473d77e in gs_main_interpret (minst=minst@entry=0x17f7350, pref=pref@entry=0x7fff714990e0, user_errors=optimized out, pexit_code=pexit_code@entry=0x7fff7149910c, perror_object=perror_object@entry=0x7fff71499110) at ./psi/imain.c:235 #24 0x7fbaf473e41b in gs_main_run_string_end (minst=minst@entry=0x17f7350, user_errors=optimized out,
[Bug 1126427] Re: LCMS2 needs multi-threading fixes to work with the new Ghostscript 9.07
Here is the original GS command line which lead to the stack trace above gs -sDEVICE=cups -r600 -dcupsColorSpace=1 -sOutputFile=../z ~/altona_technical_1v2_x3.pdf The input PDF file is attached. ** Attachment added: altona_technical_1v2_x3.pdf https://bugs.launchpad.net/ubuntu/+source/lcms2/+bug/1126427/+attachment/3572224/+files/altona_technical_1v2_x3.pdf -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1126427 Title: LCMS2 needs multi-threading fixes to work with the new Ghostscript 9.07 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lcms2/+bug/1126427/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1126427] Re: LCMS2 needs multi-threading fixes to work with the new Ghostscript 9.07
I have sent the ghostscript 9.07 package to my PPA for testing: https://launchpad.net/~till-kamppeter/+archive/ppa Package: ghostscript 9.07~dfsg-0ubuntu1~ppa1 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1126427 Title: LCMS2 needs multi-threading fixes to work with the new Ghostscript 9.07 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lcms2/+bug/1126427/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1126427] Re: LCMS2 needs multi-threading fixes to work with the new Ghostscript 9.07
I succeeded to fix the patch for lcms2, comparing the lcms2 which comes with upstream Ghostscript and the upstream source tarball of the Ubuntu lcms2 package. The debdiff with the resulting patch is attached. With this version Ghostscript 9.07 is absolutely stable (tested ~20 PDF files). Please upload this package to Raring. ** Changed in: lcms2 (Ubuntu) Status: New = Triaged ** Patch added: lcms2_2.4-0ubuntu2_2.4-0ubuntu3.debdiff https://bugs.launchpad.net/ubuntu/+source/lcms2/+bug/1126427/+attachment/3572412/+files/lcms2_2.4-0ubuntu2_2.4-0ubuntu3.debdiff -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1126427 Title: LCMS2 needs multi-threading fixes to work with the new Ghostscript 9.07 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lcms2/+bug/1126427/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1126427] Re: LCMS2 needs multi-threading fixes to work with the new Ghostscript 9.07
I have also sent the new patch to the upstream developers of Ghostscript and they are contacting Marti Maria from LCMS now to make sure that the upstream version of the changes works correctly. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1126427 Title: LCMS2 needs multi-threading fixes to work with the new Ghostscript 9.07 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lcms2/+bug/1126427/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1126427] Re: LCMS2 needs multi-threading fixes to work with the new Ghostscript 9.07
** Branch linked: lp:ubuntu/raring-proposed/lcms2 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1126427 Title: LCMS2 needs multi-threading fixes to work with the new Ghostscript 9.07 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lcms2/+bug/1126427/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1126427] Re: LCMS2 needs multi-threading fixes to work with the new Ghostscript 9.07
This bug was fixed in the package lcms2 - 2.4-0ubuntu2 --- lcms2 (2.4-0ubuntu2) raring; urgency=low * debian/patches/fix-threading-issue-in-plugin-registration.patch: - Provide a thread-safe way for plugins to register; needed for new ghostscript 9.07 (LP: #1126427) -- Christopher James Halse Rogers r...@ubuntu.com Wed, 13 Mar 2013 12:13:21 +1100 ** Changed in: lcms2 (Ubuntu) Status: New = Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1126427 Title: LCMS2 needs multi-threading fixes to work with the new Ghostscript 9.07 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lcms2/+bug/1126427/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1126427] Re: LCMS2 needs multi-threading fixes to work with the new Ghostscript 9.07
** Changed in: lcms2 (Ubuntu) Assignee: (unassigned) = Chris Halse Rogers (raof) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1126427 Title: LCMS2 needs multi-threading fixes to work with the new Ghostscript 9.07 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lcms2/+bug/1126427/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1126427] Re: LCMS2 needs multi-threading fixes to work with the new Ghostscript 9.07
No the fix is in the official upstream repo of LCMS2: https://github.com/mm2/Little-CMS/commit/df3194a9 Please backport it to the Ubuntu package so that I can update Ghostscript. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1126427 Title: LCMS2 needs multi-threading fixes to work with the new Ghostscript 9.07 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lcms2/+bug/1126427/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1126427] Re: LCMS2 needs multi-threading fixes to work with the new Ghostscript 9.07
The Ghostscript developers did also some optimizations of LCMS2 for Ghostscript. These optimizations were also made available for upstream, see: https://github.com/robinwatts/Little-CMS/commits/artifex The attached patch contains the fixes from above and the optimizations. So you can choose whether you apply only the fixes (first patch) or the fixes and the optimizations (this patch) to the Ubuntu package of LCMS2. ** Patch added: threading-fixes-for-ghostscript-with-optimizations.patch https://bugs.launchpad.net/ubuntu/+source/lcms2/+bug/1126427/+attachment/3530400/+files/threading-fixes-for-ghostscript-with-optimizations.patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1126427 Title: LCMS2 needs multi-threading fixes to work with the new Ghostscript 9.07 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lcms2/+bug/1126427/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs