Your message dated Mon, 20 Jan 2014 04:18:49 +0000 with message-id <[email protected]> and subject line Bug#658264: fixed in xpdf 3.03-12 has caused the Debian Bug report #658264, regarding possible memory corruption in GlobalParams to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact [email protected] immediately.) -- 658264: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=658264 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---Package: xpdf Version: 3.02-12+squeeze1 Severity: grave After upgrading to squeeze, xpdf crashes on startup, even without any input file: % /usr/bin/xpdf any.pdf xpdf: pthread_mutex_lock.c:62: __pthread_mutex_lock: Assertion `mutex->__data.__owner == 0' failed. Abgebrochen (core dumped) I also compiled poppler_0.16.7-2 and xpdf_3.03-8 from unstable and the problem persists -- there is no crash but an indefinite hang. Source inspection and -instrumentation clearly show the explanation, however I have no patch or even a good suggestion. There is a class 'GlobalParams' in poppler and in xpdf. Its ABI is defined in /usr/include/poppler/GlobalParams.h (A) and xpdf-<version>/xpdf/GlobalParams.h (B) and these 2 files have diverged considerably. In xpdf, the class is actually instantiated by globalParams = new GlobalParams(cfgFileName); in xpdf-<version>/xpdf/xpdf.cc and this uses (A). However, all the GlobalParams-functions in libpoppler used by xpdf call the ABI (B). This results in memory corruption, notably of the 'mutex' member. If you are not convinced, apply the following to GlobalParams.h in _both_ source packages: --- poppler-0.16.7/poppler/GlobalParams.cc~ 2010-12-27 21:44:28.000000000 +0100 +++ poppler-0.16.7/poppler/GlobalParams.cc 2012-02-01 16:26:24.000000000 +0100 @@ -74,7 +74,7 @@ #endif #if MULTITHREADED -# define lockGlobalParams gLockMutex(&mutex) +# define lockGlobalParams do { fprintf(stderr, "t=%p m=%p\n",this,&mutex);gLockMutex(&mutex); }while(0) # define lockUnicodeMapCache gLockMutex(&unicodeMapCacheMutex) # define lockCMapCache gLockMutex(&cMapCacheMutex) # define unlockGlobalParams gUnlockMutex(&mutex) (also applies to the xpdf version) When running xpdf such instrumented, I get: % LD_LIBRARY_PATH=/home/wg/Debian/poppler-0.16.7/poppler/.libs \ ~/Debian/xpdf-3.03/build/xpdf.real any.pdf t=0x18ae010 m=0x18ae188 t=0x18ae010 m=0x18ae188 t=0x18ae010 m=0x18ae188 ... t=0x18ae010 m=0x18ae0f0 This proves that the same mutex object is accessed at two locations. As said, I have no easy fix. I'd say including the GlobalParams class and also the globalParams global variable in libpoppler was a horrible design decision. But going back to a poppler-independent xpdf package now also doesn't look good. :-( The problem was already clearly pointed out 8 months ago: https://bugs.launchpad.net/ubuntu/+source/xpdf/+bug/669211 esp. comment 47.. Regards, Wolfram.
--- End Message ---
--- Begin Message ---Source: xpdf Source-Version: 3.03-12 We believe that the bug you reported is fixed in the latest version of xpdf, which is due to be installed in the Debian FTP archive. A summary of the changes between this version and the previous one is attached. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to [email protected], and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Michael Gilbert <[email protected]> (supplier of updated xpdf package) (This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing [email protected]) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Format: 1.8 Date: Mon, 20 Jan 2014 02:54:13 +0000 Source: xpdf Binary: xpdf Architecture: source amd64 Version: 3.03-12 Distribution: experimental Urgency: low Maintainer: Michael Gilbert <[email protected]> Changed-By: Michael Gilbert <[email protected]> Description: xpdf - Portable Document Format (PDF) reader Closes: 658264 679896 719224 725514 727070 728283 Changes: xpdf (3.03-12) experimental; urgency=low . * Fix vcs-git url (closes: #728283). * Support poppler 0.20 (closes: #679896). * Support poppler 0.22 (closes: #719224). * Drop binutils-gold conflict (closes: #725514). * Separate xpdf-specific global parameters (closes: #658264, #727070). - Thanks to Dmitry Shachnev! Checksums-Sha1: 0d1d32adf3238f1dfe10498ff14ed06d3b48bdf0 2553 xpdf_3.03-12.dsc 6b7a377ebf861a02da7eeff7e1b369f32901bd03 36296 xpdf_3.03-12.debian.tar.xz efa806481a96ee47d252703a58c606746c07c912 152570 xpdf_3.03-12_amd64.deb Checksums-Sha256: 51f685eb602667c7f16ac9ba20b1edee72c96ad621e60b6665983de1c2acef85 2553 xpdf_3.03-12.dsc 41d570a3968229df381352855e9e16b879a983dae0efae80da04a857efeb45cb 36296 xpdf_3.03-12.debian.tar.xz 75454ccbac7831ef4e62c180079b2a33a56f205e265e26e41a1862393bf77a41 152570 xpdf_3.03-12_amd64.deb Files: 0e020ca8e8dce6a356c85c0a45748741 2553 text optional xpdf_3.03-12.dsc e2e8c171ef130c1aa4db87860b5f8aa3 36296 text optional xpdf_3.03-12.debian.tar.xz da6d207db0639ee1734aada14b22dc5a 152570 text optional xpdf_3.03-12_amd64.deb -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQQcBAEBCgAGBQJS3KKxAAoJELjWss0C1vRzMzQf/1+3AoRghBaRO47ASZOwuR5/ aUBQDItd901vE2IRnu/tPlhZIoGT7Pl+dBBLjH1X7mfKtjDGNFjwKwURGRlJlEr5 G1Pybx3eYchFCbZu++m2qhK2c58nZ6UGYY8yLmpQj5FfCqVcbPaZSY2xroyrxZ9q NPLRwvODpFFpVWQ3QcVHsA8qiMaRz4BSPSGq5Wa4MCTXB2XeBtZNxCqeB8kyiENF xsPYZkgXK+xlUS3ZwN0VkIDcEtT3jnR9fYxm8+lDCtoWPUbFFmH1TcLnrz+F8k6M GVz0rnXa/5TvAK3+NHBpZx/Q/dkUOXoOohbI5RioWYowgyjhBFykCl/olwuH2zOq De6VtVO8Nqqm9WN5iKvzCfy7u+2PKnBXb2MgIhFciuAiORa63fULkReDBBXyznB3 ka7uNJg02+cbgMErBgaELUn2aNvIJlbrWVzUw7uxs0wkmh+xOsK2jHtb+6HYXh3n nv7+FgVVqNVrwj8mppyIwgpTfPrnTfaWGqkkIByRqtGI6GmtAckRHEK5C1cEhX5G J5eMAC7LC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