Bug#760476: cups - crashes after reading tls stuff

2014-10-11 Thread Nikos Mavrogiannopoulos
On Sun, 21 Sep 2014 13:50:36 +0200 Andreas Metzler ametz...@bebt.de wrote:
 On 2014-09-16 Didier 'OdyX' Raboud o...@debian.org wrote:
 [...]
  Le jeudi, 4 septembre 2014, 13.30:19 Bastian Blank a écrit :
  cups aborts at random times after reading certificates and keys:
  (…) 
  As cups disables generation of core files, no additional information
   is available.
 
  Would it be imaginable for you to run a cups rebuilt with the attached 
  patch ? I will consult with upstream and followup on this point on your 
  other bug (#760475)
 [...]
 
 Hello Bastian,
 could you perhaps come up with a backtrace?

For some reason getrusage() with RUSAGE_THREAD fails in that system. Did
that happen after a kernel change or so? I've committed in gnutls'
repository a fix to fallback to RUSAGE_SELF if that happens.

regards,
Nikos


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#760476: cups - crashes after reading tls stuff

2014-09-21 Thread Andreas Metzler
On 2014-09-16 Didier 'OdyX' Raboud o...@debian.org wrote:
[...]
 Le jeudi, 4 septembre 2014, 13.30:19 Bastian Blank a écrit :
 cups aborts at random times after reading certificates and keys:
 (…) 
 As cups disables generation of core files, no additional information
  is available.

 Would it be imaginable for you to run a cups rebuilt with the attached 
 patch ? I will consult with upstream and followup on this point on your 
 other bug (#760475)
[...]

Hello Bastian,

could you perhaps come up with a backtrace?

cu Andreas

-- 
`What a good friend you are to him, Dr. Maturin. His other friends are
so grateful to you.'
`I sew his ears on from time to time, sure'


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#760476: cups - crashes after reading tls stuff

2014-09-17 Thread Didier 'OdyX' Raboud
Control: reassign -1 libgnutls-deb0-28 3.3.7-2

Le mardi, 16 septembre 2014, 19.10:40 Didier 'OdyX' Raboud a écrit :
 Control: tags -1 +upstream
 Control: forwarded -1 https://cups.org/str.php?L4484
 (…)
 I've forwarded your report to upstream, see above.

Upstream seems to think this is a GnuTLS issue:

Le mardi, 16 septembre 2014, 11.23:24 Michael Sweet a écrit :
 Didier, GNU TLS is aborting the process (never appropriate behavior
 for a library...), and without a backtrace it is impossible to
 diagnose this further.
 
 Feel free to re-open if you determine there is something in CUPS that
 needs to be fixed, but right now it looks like GNU TLS doesn't like
 something and isn't being nice enough to allow cupsd to deal with it.

I'm therefore hereby reassigning this bug to the library package. Dear 
libgnutls-deb0-28 maintainers: I can't reproduce the bug, but Bastian 
might be able to assist here. Please ask if you need further input from 
me.

Cheers,

OdyX


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#760476: cups - crashes after reading tls stuff

2014-09-16 Thread Didier 'OdyX' Raboud
Control: tags -1 +upstream
Control: forwarded -1 https://cups.org/str.php?L4484

Hi Bastian, and thanks for your bugreport,

I've forwarded your report to upstream, see above.

Le jeudi, 4 septembre 2014, 13.30:19 Bastian Blank a écrit :
 cups aborts at random times after reading certificates and keys:
 (…) 
 As cups disables generation of core files, no additional information
 is available.

Would it be imaginable for you to run a cups rebuilt with the attached 
patch ? I will consult with upstream and followup on this point on your 
other bug (#760475)

Cheers,
OdyXdiff --git a/scheduler/main.c b/scheduler/main.c
index e9ced71..a526628 100644
--- a/scheduler/main.c
+++ b/scheduler/main.c
@@ -431,14 +431,6 @@ main(int  argc,/* I - Number of command-line args */
 
 #ifndef DEBUG
/*
-* Disable core dumps...
-*/
-
-getrlimit(RLIMIT_CORE, limit);
-limit.rlim_cur = 0;
-setrlimit(RLIMIT_CORE, limit);
-
-   /*
 * Disconnect from the controlling terminal...
 */
 


Bug#760476: cups - crashes after reading tls stuff

2014-09-04 Thread Bastian Blank
Package: cups
Version: 1.7.5-1
Severity: serious

cups aborts at random times after reading certificates and keys:

accept(8, {sa_family=AF_INET, sin_port=htons(60862), 
sin_addr=inet_addr(192.0.2.1)}, [16]) = 16
getsockname(16, {sa_family=AF_INET, sin_port=htons(631), 
sin_addr=inet_addr(192.0.2.1)}, [16]) = 0
setsockopt(16, SOL_TCP, TCP_NODELAY, [1], 4) = 0
fcntl(16, F_GETFD)= 0
fcntl(16, F_SETFD, FD_CLOEXEC)= 0
epoll_ctl(3, EPOLL_CTL_ADD, 16, {EPOLLIN, {u32=3313009952, 
u64=140470218425632}}) = 0
epoll_wait(3, {{EPOLLIN, {u32=3313009952, u64=140470218425632}}}, 4096, 1000) = 
1
recvfrom(16, \26, 1, MSG_PEEK, NULL, NULL) = 1
access(/etc/cups/ssl/server.key, F_OK) = 0
access(/etc/cups/ssl/server.crt, F_OK) = 0
open(/etc/cups/ssl/server.key, O_RDONLY) = 17
fstat(17, {st_mode=S_IFREG|0640, st_size=1704, ...}) = 0
fstat(17, {st_mode=S_IFREG|0640, st_size=1704, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x7fc1c411a000
lseek(17, 0, SEEK_CUR)= 0
read(17, -BEGIN PRIVATE KEY-\nMIIE..., 4096) = 1704
read(17, , 4096)= 0
close(17) = 0
munmap(0x7fc1c411a000, 4096)  = 0
open(/etc/cups/ssl/server.crt, O_RDONLY) = 17
fstat(17, {st_mode=S_IFREG|0644, st_size=1025, ...}) = 0
fstat(17, {st_mode=S_IFREG|0644, st_size=1025, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x7fc1c411a000
lseek(17, 0, SEEK_CUR)= 0
read(17, -BEGIN CERTIFICATE-\nMIIC..., 4096) = 1025
read(17, , 4096)= 0
close(17) = 0
munmap(0x7fc1c411a000, 4096)  = 0
clock_gettime(CLOCK_REALTIME, {1409732232, 52793719}) = 0
getrusage(0x1 /* RUSAGE_??? */, {ru_utime={0, 732045}, ru_stime={0, 280017}, 
...}) = 0
read(3, 0x7fffe61990b0, 16)   = -1 EINVAL (Invalid argument)
rt_sigprocmask(SIG_UNBLOCK, [ABRT], NULL, 8) = 0
tgkill(18683, 18683, SIGABRT) = 0
--- SIGABRT (Aborted) @ 0 (0) ---

As cups disables generation of core files, no additional information is 
available.

Bastian

-- 


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org