Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 401609 - net-print/cups-1.5.0[ssl,-gnutls] crashes when accessing Encrypted server
Summary: net-print/cups-1.5.0[ssl,-gnutls] crashes when accessing Encrypted server
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Printing Team
URL: http://www.cups.org/str.php?L4061
Whiteboard:
Keywords:
Depends on:
Blocks: cups-stable
  Show dependency tree
 
Reported: 2012-01-31 08:18 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2012-04-20 22:50 UTC (History)
0 users

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 Diego Elio Pettenò (RETIRED) gentoo-dev 2012-01-31 08:18:10 UTC
(gdb) r
Starting program: /usr/bin/lpq 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
SSL_set_bio (s=0x0, rbio=0x5555557b81f0, wbio=0x5555557b81f0) at ssl_lib.c:596
596	ssl_lib.c: File o directory non esistente.
(gdb) bt
#0  SSL_set_bio (s=0x0, rbio=0x5555557b81f0, wbio=0x5555557b81f0) at ssl_lib.c:596
#1  0x00007ffff7ba7f5f in http_setup_ssl (http=0x5555557b4710) at http.c:3817
#2  0x00007ffff7ba9498 in _httpUpdate (http=0x5555557b4710, status=0x7fffffffa8fc) at http.c:2677
#3  0x00007ffff7ba9513 in httpUpdate (http=0x5555557b4710) at http.c:2816
#4  0x00007ffff7baa6a8 in http_upgrade (http=0x5555557b4710) at http.c:4257
#5  0x00007ffff7baa83d in httpConnectEncrypt (host=<optimized out>, port=<optimized out>, encryption=<optimized out>) at http.c:476
#6  0x0000555555555579 in connect_server (command=0x7fffffffded0 "/usr/bin/lpq", http=<optimized out>) at lpq.c:290
#7  0x000055555555640e in main (argc=1, argv=0x7fffffffdb18) at lpq.c:206

This happens with anything: lpr, lpq, andy Gtk+ app when opening the print dialog, ... the problem is this:


  http->tls = SSL_new(context);
  SSL_set_bio(http->tls_credentials, bio, bio);

unfortunately at that point http->tls_credentials is still zero; this is a new feature implemented in 1.5.x series, which is why it worked before.
As far as I can tell GnuTLS should work, but I haven't tried it yet.
Comment 1 Andreas K. Hüttel archtester gentoo-dev 2012-02-07 21:51:40 UTC
Is this still a problem with cups-1.5.2 ?
Comment 2 Andreas K. Hüttel archtester gentoo-dev 2012-04-20 22:50:39 UTC
According to upstream fixed in cups-1.5.1.