[Bug 617026] New: firefox and thunderbird crash in page setup and print dialog with latest cups version
http://bugzilla.novell.com/show_bug.cgi?id=617026 http://bugzilla.novell.com/show_bug.cgi?id=617026#c0 Summary: firefox and thunderbird crash in page setup and print dialog with latest cups version Classification: openSUSE Product: openSUSE 11.2 Version: Final Platform: i586 OS/Version: openSUSE 11.2 Status: NEW Severity: Critical Priority: P5 - None Component: Printing AssignedTo: jsmeix@novell.com ReportedBy: hbs@ks.informatik.uni-kiel.de QAContact: jsmeix@novell.com Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.4) Gecko/20100611 SUSE/3.6.4-6.1 Firefox/3.6.4 I installed cups-1.4.4-48.1.i586 from the Printing repository with zypper. As soon as I select page setup or print in the file menu of either firefox or thunderbird, the application crashes. I use the latest firefox/thunderbird from the opensuse Mozilla repository. This crash also happens with openSUSE 11.1 using the latest 1.4.4 versions of cups. This crash does NOT happen with cups 1.3.x provided by the distribution and also did not happen with later 1.4 versions installed. It did appear after an update to 1.4.4-48 about a week ago. Reproducible: Always Steps to Reproduce: 1. Start firefox or thunderbird 2. Select page setup or print from file menu 3. Crash immediatly Actual Results: crash Expected Results: page setup or print dialog Here is a link to the mozilla crash report : http://crash-stats.mozilla.com/report/pending/3dbcc44a-3132-4547-a78f-e3f542... -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=617026 http://bugzilla.novell.com/show_bug.cgi?id=617026#c1 Johannes Meixner <jsmeix@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |hbs@ks.informatik.uni-kiel. | |de --- Comment #1 from Johannes Meixner <jsmeix@novell.com> 2010-06-24 10:10:57 UTC --- I do not exactly understand what you mean with: "This crash ... did not happen with later 1.4 versions installed." Do you mean that the crash happens only for the one exact cups-1.4.4-48.1.i586 version from the Printing repository but does no longer happen if you install another cups-1.4.4-xxx.yyy.i586 version from whatever other repository? Which exact CUPS 1.4.4 version from which exact repository do you currently have installed on which openSUSE version and when exactly happens the crash for you? -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=617026 http://bugzilla.novell.com/show_bug.cgi?id=617026#c2 --- Comment #2 from Henrik Schmidt <hbs@ks.informatik.uni-kiel.de> 2010-06-24 10:34:07 UTC --- I manage openSUSE 11.1 and 11.2 computers and do a daily zypper ref; zypper up using the Printing repository. Therefore I follow your updates of the Printing repo on a daily basis. I noticed the crash about a week ago, not sure which cups version from the Printing repo was the latests by then. The crash is still there with the currently installed cups-1.4.4-48.1.i586 from both http://download.opensuse.org/repositories/Printing/openSUSE_11.2 and http://download.opensuse.org/repositories/Printing/openSUSE_11.1 I had to install cups 1.3.x from the distro repos and zypper addlock cups to avoid it. I'm using these repos : lima:~ # zypper lr # | Alias | Name | Enabled | Refresh ---+------------------+-------------------+---------+-------- 1 | base | base | Yes | No 2 | ghostscript | ghostscript | Yes | No 3 | gnome_contrib | gnome contrib | Yes | No 4 | gnome_stable | gnome stable | Yes | No 5 | hardware | hardware | Yes | No 6 | java | java | Yes | No 7 | kde3_core | kde3 core | Yes | No 8 | kde4_community | kde4 community | Yes | No 9 | kde4_core | kde4 core | Yes | No 10 | kde_backports | kde backports | Yes | No 11 | mozilla | mozilla | Yes | No 12 | multimedia_libs | multimedia libs | Yes | No 13 | multimedia_photo | multimedia photo | Yes | No 14 | non-oss | non-oss | Yes | No 15 | nvidia | nvidia | Yes | No 16 | oo_stable | openoffice stable | Yes | No 17 | oss | oss | Yes | No 18 | packman | packman | Yes | No 19 | printing | printing | Yes | No 20 | publishing | publishing | Yes | No 21 | qt4 | qt4 | Yes | No 22 | updates | updates | Yes | No 23 | videolan | videolan | Yes | No 24 | wine | wine | Yes | No -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=617026 http://bugzilla.novell.com/show_bug.cgi?id=617026#c3 Johannes Meixner <jsmeix@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P2 - High CC| |bnc-team-mozilla@forge.prov | |o.novell.com, | |wolfgang@rosenauer.org Component|Printing |Printing Platform|i586 |All Version|Final |Factory Product|openSUSE 11.2 |openSUSE 11.3 OS/Version|openSUSE 11.2 |openSUSE 11.3 --- Comment #3 from Johannes Meixner <jsmeix@novell.com> 2010-06-24 10:39:32 UTC --- Firefox crashes for me too as describend in comment #0 both on i386 and on x86_64 also on openSUSE Factory. Hello Mozilla team, could you help me here and have a look at the mozilla crash report, see comment #0 The most suspicious change in CUPS 1.4.4 seems to be (from the CUPS 1.4.4 CHANGES.txt file): ----------------------------------------------------------------- The OpenSSL interfaces have been made thread-safe and the GNU TLS interface is explicitly forbidden when threading is enabled (STR #3461) ----------------------------------------------------------------- where STR #3461 is http://www.cups.org/str.php?L3461 which explicitely mentions Firefox and links to some bug reports at redhat.com in particular https://bugzilla.redhat.com/show_bug.cgi?id=553834#c43 Could you provide some background info which could help me to better understand what goes on here? -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=617026 http://bugzilla.novell.com/show_bug.cgi?id=617026#c Johannes Meixner <jsmeix@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |coolo@novell.com InfoProvider|hbs@ks.informatik.uni-kiel. |bnc-team-mozilla@forge.prov |de |o.novell.com Summary|firefox and thunderbird |Firefox and thunderbird |crash in page setup and |crash in page setup and |print dialog with latest |print dialog with CUPS |cups version |1.4.4 -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=617026 http://bugzilla.novell.com/show_bug.cgi?id=617026#c4 Johannes Meixner <jsmeix@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jsmeix@novell.com AssignedTo|jsmeix@novell.com |gjhe@novell.com Summary|Firefox and thunderbird |Firefox print dialog leads |crash in page setup and |to SEGFAULT in SSL |print dialog with CUPS |SSL_load_error_strings() |1.4.4 |with CUPS 1.4.4 --- Comment #4 from Johannes Meixner <jsmeix@novell.com> 2010-06-24 15:10:07 UTC --- When I run Firefox in gdb with debuginfo packages for libopenssl1_0_0 and CUPS installed I get (long lines wrapped here): ------------------------------------------------------------------------- gdb /usr/lib64/firefox/firefox .. (gdb) r .. Program received signal SIGSEGV, Segmentation fault. __pthread_mutex_lock (mutex=0x28) at pthread_mutex_lock.c:50 50 unsigned int type = PTHREAD_MUTEX_TYPE (mutex); (gdb) bt #0 __pthread_mutex_lock (mutex=0x28) at pthread_mutex_lock.c:50 #1 0x00007fffe56ce9db in int_err_get (create=1) at err.c:354 #2 0x00007fffe56ce72b in int_err_set_item (d=0x7fffe59a2640) at err.c:402 #3 0x00007fffe56ce35c in err_load_strings (lib=0, str=0x7fffe59a2640) at err.c:676 #4 0x00007fffe56ceb51 in ERR_load_ERR_strings () at err.c:662 #5 0x00007fffe56cfaa9 in ERR_load_crypto_strings () at err_all.c:110 #6 0x00007fffe620e519 in SSL_load_error_strings () at ssl_err2.c:66 #7 0x00007fffdc9d0c9b in httpInitialize () at http.c:1248 #8 0x00007fffdc9d0df5 in _httpCreate (host=0x7fffdcc3a189 "localhost", port=631, encryption=HTTP_ENCRYPT_IF_REQUESTED) at http.c:463 .. (gdb) #8 0x00007fffdc9d0df5 in _httpCreate (host=0x7fffdcc3a189 "localhost", port=631, encryption=HTTP_ENCRYPT_IF_REQUESTED) at http.c:463 463 httpInitialize(); (gdb) list 458 host, port, encryption)); 459 460 if (!host) 461 return (NULL); 462 463 httpInitialize(); 464 465 /* 466 * Lookup the host... 467 */ (gdb) down #7 0x00007fffdc9d0c9b in httpInitialize () at http.c:1248 1248 SSL_load_error_strings(); (gdb) list 1243 #elif defined(HAVE_LIBSSL) 1244 /* 1245 * Initialize OpenSSL... 1246 */ 1247 1248 SSL_load_error_strings(); 1249 SSL_library_init(); 1250 1251 /* 1252 * Set the threading callbacks... (gdb) ------------------------------------------------------------------------- I.e. the call of SSL_load_error_strings() leads to the segfault. According to the OpenSSL documentaion at https://www.openssl.org/docs/ssl/SSL_library_init.html ------------------------------------------------------------------------- EXAMPLES A typical TLS/SSL application will start with the library initialization, and provide readable error messages. SSL_load_error_strings(); /* readable error messages */ SSL_library_init(); /* initialize library */ ------------------------------------------------------------------------- from my non-expert point of view CUPS initializes OpenSSL correctly so that it seems the root cause is not in CUPS. At least for now I like to re-assign the issue to the OpenSSL maintainer so that he could have a look... -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=617026 http://bugzilla.novell.com/show_bug.cgi?id=617026#c5 --- Comment #5 from Johannes Meixner <jsmeix@novell.com> 2010-06-24 15:42:49 UTC --- The crash happens also on my openSUSE 11.1 system with libopenssl0_9_8 when I use CUPS 1.4.4 there and it works when I use CUPS 1.4.3. This shows that the CUPS version makes the difference but at the moment I don't see what CUPS 1.4.4 does wrong regarding OpenSSL - investigating... -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=617026 http://bugzilla.novell.com/show_bug.cgi?id=617026#c6 Johannes Meixner <jsmeix@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED CC| |gjhe@novell.com InfoProvider|bnc-team-mozilla@forge.prov | |o.novell.com | AssignedTo|gjhe@novell.com |jsmeix@novell.com Summary|Firefox print dialog leads |Printing from Mozilla.org |to SEGFAULT in SSL |applications (e.g. Firefox) |SSL_load_error_strings() |lead to SEGFAULT via |with CUPS 1.4.4 |OpenSSL with CUPS 1.4.4 --- Comment #6 from Johannes Meixner <jsmeix@novell.com> 2010-06-24 16:38:45 UTC --- The "Printing from Firefox crashes since CUPS 1.4.4" mails at cups@easysw.com explain it, see http://www.cups.org/newsgroups.php?gcups.general+T+Q"Printing+from+Firefox+crashes+since+CUPS+1.4.4" in particular Michael Sweet's reply: ------------------------------------------------------------------------ Firefox dlopen's and dlclose's libcups - after dlclose'ing libcups the function pointers used by libcups for SSL support point to invalid addresses and you get a crash. This also affects Thunderbird and presumably any other Mozilla.org application that prints. STR #3605 is a placeholder bug for changes we'll need to make once GNU TLS and OpenSSL add native threading support to their respective libraries: http://www.cups.org/str.php?L3605 In the meantime you can back out the changes added in STR #3461 to revert to the previous (and apparently unsafe) usage of OpenSSL from multiple threads. ------------------------------------------------------------------------ I will revert the changes added in STR #3461 in CUPS 1.4.4 as a band-aid workaround to avoid the root causes both in Mozilla.org applications (dlopen...dlclose...dlopen of libcups) and in OpenSSL (no native threading support). -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=617026 http://bugzilla.novell.com/show_bug.cgi?id=617026#c7 --- Comment #7 from Johannes Meixner <jsmeix@novell.com> 2010-06-24 17:01:13 UTC --- Created an attachment (id=371560) --> (http://bugzilla.novell.com/attachment.cgi?id=371560) revert_http.c_to_1.4.3_state.patch A first-try quick and dirty revert_http.c_to_1.4.3_state.patch which simply revert cups/http.c to its state in CUPS 1.4.3 At least on my openSUSE 11.1 system CUPS 1.4.4 with this patch does no longer let Firefox/OpenSSL segfault. Only for testing purposes I submitted CUPS 1.4.4 with this first-try quick and dirty patch via submitrequest 42020 to the Printing project where soon CUPS 1.4.4 packages should become available so that you can test it too. The topmost RPM changelog entry for those packages is ----------------------------------------------------------------- Thu Jun 24 18:47:59 CEST 2010 - jsmeix@suse.de - revert_http.c_to_1.4.3_state.patch reverts cups/http.c to its state in CUPS 1.4.3 as band-aid workaround to avoid Novell/Suse Bugzilla bnc#617026 for now. ----------------------------------------------------------------- Use "rpm -q --changelog cups | head" to verify that you really have those packages. I would appreciate any test and feedback very much! Tomorrow I will have a closer look what exactly was changed via CUPS STR #3461 to revert exactly those changes... -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=617026 http://bugzilla.novell.com/show_bug.cgi?id=617026#c8 --- Comment #8 from Henrik Schmidt <hbs@ks.informatik.uni-kiel.de> 2010-06-24 18:37:24 UTC --- I'm on vacation for 2 weeks so can not help testing the fix. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=617026 http://bugzilla.novell.com/show_bug.cgi?id=617026#c9 Johannes Meixner <jsmeix@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #371560|0 |1 is obsolete| | --- Comment #9 from Johannes Meixner <jsmeix@novell.com> 2010-06-25 10:29:11 UTC --- Created an attachment (id=371760) --> (http://bugzilla.novell.com/attachment.cgi?id=371760) cups-1.4.4-str3461-1.4.reverted.patch cups-1.4.4-str3461-1.4.reverted.patch reverts changes by CUPS STR #3461. I submitted CUPS 1.4.4 with this patch via submitrequest 42043 to the Printing project where soon CUPS 1.4.4 packages should become available so that you can test it too. The topmost RPM changelog entry for those packages is ----------------------------------------------------------------- * Fri Jun 25 2010 jsmeix@suse.de - cups-1.4.4-str3461-1.4.reverted.patch reverts changes by CUPS STR #3461 as band-aid workaround for now to avoid that Mozilla.org applications crash when they try to print (STR #3461, STR #3605, and Novell/Suse Bugzilla bnc#617026). ----------------------------------------------------------------- Use "rpm -q --changelog cups | head" to verify that you really have those packages. I would appreciate any test and feedback very much! Because those CUPS 1.4.4 packages seem to work o.k. on my openSUSE 11.1 i586 and openSUSE Factory x86_64 systems, I assume cups-1.4.4-str3461-1.4.reverted.patch is correct and therefore I also submitted it via submitrequest 42045 to openSUSE:Factory -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=617026 http://bugzilla.novell.com/show_bug.cgi?id=617026#c10 Johannes Meixner <jsmeix@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED Target Milestone|--- |RC 2 --- Comment #10 from Johannes Meixner <jsmeix@novell.com> 2010-06-25 10:30:43 UTC ---
From my current point of view the bug is fixed now.
-- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=617026 http://bugzilla.novell.com/show_bug.cgi?id=617026#c11 --- Comment #11 from Bernhard Wiedemann <bwiedemann@suse.com> --- This is an autogenerated message for OBS integration: This bug (617026) was mentioned in https://build.opensuse.org/request/show/42045 Factory / cups -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com