Ports open but not response from dovecot daemon (hppa)

Bug #6770 reported by Debian Bug Importer
4
Affects Status Importance Assigned to Milestone
Debian
Fix Released
Unknown
Ubuntu
Invalid
Medium
Unassigned

Bug Description

Automatically imported from Debian bug report #227442
http://bugs.debian.org/227442

Revision history for this message
In , Jaldhar (jaldhar) wrote : Re: Bug#227442: Ports open but not response from dovecot daemon (hppa)

reassign 227442 dovecot-common
thanks

On Sun, 11 Jan 2004, Jools Smyth wrote:

> Package: dovecot
> Version: 0.99.10.4-2
> Severity: grave
> Justification: renders package unusable
>
> When using the packaged version Dovecot starts up but when connecting to
> (for example) pop3 you get
>
> jools@inspiron:~$ telnet hp9000 pop3
> Trying 192.168.1.10...
> Connected to hp9000.workshop.
> Escape character is '^]'.
>

What does the protocols= line in your /etc/dovecot.conf say?

Are you sure you didn't have something else already listening to port 110?
(netstat -ln | grep 110 can tell you this.)

Do you have dovecot-common installed? Is it also 0.99.10.4.2?

Does renaming /var/run/dovecot/ssl-parameters.dat.tmp to
/var/run/dovecot/ssl-parameters.dat and then restarting dovecot help?

--
Jaldhar H. Vyas <email address hidden>
La Salle Debain - http://www.braincells.com/debian/

Revision history for this message
In , Jools Wills (jools) wrote :

On Tuesday 13 January 2004 10:31 pm, you wrote:

> I doubt that there are any huge difference between my packaged version and
> the upstream versions. What flags did you give to configure when you
> compiled your version?

none. Just :

./configure
make
make install

the following support/options are included

Install prefix ...................... : /usr/local
File offsets ........................ : 64bit
Building with SSL support ........... : yes (OpenSSL)
Building with IPv6 support .......... : yes
Building with pop3 server ........... : yes
Building with user database modules . : static passwd passwd-file (modules)
Building with password lookup modules : passwd passwd-file shadow pam
(modules)

> (Please maintain the cc to <email address hidden> in your reply)

oops. sorry

Best Regards

Jools
--
Oxford Inspire
<email address hidden>
Tel: 01865 751879
Mob: 07966 577498

Revision history for this message
In , Jaldhar (jaldhar) wrote :

On Tue, 13 Jan 2004, Jools Smyth wrote:

> On Tuesday 13 January 2004 9:55 pm, you wrote:
> >
> > What does the protocols= line in your /etc/dovecot.conf say?
> >
>
> protocols = pop3
>
> (I tried others also)
>
> > Are you sure you didn't have something else already listening to port
110?
> > (netstat -ln | grep 110 can tell you this.)
> >
>
> yes.
>
> > Do you have dovecot-common installed? Is it also 0.99.10.4.2?
> >
>
> yes to both.
>
> > Does renaming /var/run/dovecot/ssl-parameters.dat.tmp to
> > /var/run/dovecot/ssl-parameters.dat and then restarting dovecot help?
>
>
> i did but it didnt help.
> I am now running successfully dovecot, with
> pop/pop3s/imap/imaps but built from source, so i know I can get it running.
> just not the packaged version :(
>

I doubt that there are any huge difference between my packaged version and
the upstream versions. What flags did you give to configure when you
compiled your version?

(Please maintain the cc to <email address hidden> in your reply)

--
Jaldhar H. Vyas <email address hidden>
La Salle Debain - http://www.braincells.com/debian/

Revision history for this message
In , Jaldhar (jaldhar) wrote :

On Tue, 13 Jan 2004, Jools Smyth wrote:

> Building with SSL support ........... : yes (OpenSSL)

Mine is built with gnutls. That could be significant. can you try
building dovecot with gnutls instead of openssl and see if it breaks?

--
Jaldhar H. Vyas <email address hidden>
La Salle Debain - http://www.braincells.com/debian/

Revision history for this message
In , Timo Sirainen (tss-iki) wrote : Re: Bug#227442: Ports open but not response from dovecot daemon (hppa)

On Sun, 2004-01-11 at 19:02, Jools Smyth wrote:
> open("/var/run/dovecot/ssl-parameters.dat", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or
> directory)
> rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
> rt_sigaction(SIGCHLD, NULL, {SIG_DFL}, 8) = 0
> rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
> nanosleep({1, 0}, {1, 0})
>
> over and over again
>
> i checked and there is indeed no file of this name. but only a ssl-parameters.dat.tmp file

There should be another dovecot named process that creates this
ssl-parameters.dat file. So sounds like you have some OpenSSL problem.
Try stracing the other dovecot process and see what it does? Maybe it's
blocking on trying to read too much data from /dev/random or something?

Revision history for this message
In , Jools Wills (jools) wrote : Re: Bug#227442: Ports open but not response from dovecot daemon (hppa)

On Tuesday 13 January 2004 11:59 pm, Jaldhar H. Vyas wrote:
> On Tue, 13 Jan 2004, Jools Smyth wrote:
> > Building with SSL support ........... : yes (OpenSSL)
>
> Mine is built with gnutls. That could be significant. can you try
> building dovecot with gnutls instead of openssl and see if it breaks?

ok . Just tried it.

It doesn't work if i build with gnutls.

Where do we go from here ?

Best Regards

Jools
--
Oxford Inspire
<email address hidden>
Tel: 01865 751879
Mob: 07966 577498

Revision history for this message
In , Jaldhar (jaldhar) wrote :

reassign 227442 gnutls7
thanks

On Fri, 16 Jan 2004, Jools Smyth wrote:

> On Tuesday 13 January 2004 11:59 pm, Jaldhar H. Vyas wrote:
> > On Tue, 13 Jan 2004, Jools Smyth wrote:
> > > Building with SSL support ........... : yes (OpenSSL)
> >
> > Mine is built with gnutls. That could be significant. can you try
> > building dovecot with gnutls instead of openssl and see if it breaks?
>
> ok . Just tried it.
>
> It doesn't work if i build with gnutls.
>
> Where do we go from here ?
>

We reassign this bug to gnutls!

Ivo, could this be a similiar problem to #224106?

--
Jaldhar H. Vyas <email address hidden>
La Salle Debain - http://www.braincells.com/debian/

Revision history for this message
In , Ivo Timmermans (ivo) wrote : Re: Processed: Re: Bug#227442: Ports open but not response from dovecot daemon (hppa)

Debian Bug Tracking System wrote:
> Processing commands for <email address hidden>:
>
> > reassign 227442 gnutls7
> Bug#227442: Ports open but not response from dovecot daemon (hppa)
> Bug reassigned from package `dovecot-common' to `gnutls7'.

Actually it seems to be more of a problem with the way gnutls is
handled. If you want certificates, gnutls will want the file. The
submitter reports the existence of a file
"/var/run/dovecot/ssl-parameters.dat.tmp". gnutls couldn't care less
what you feed it, but gives an error if the file isn't there.

There seems to be a difference in ssl-init-gnutls.c and
ssl-init-openssl.c; the _ssl_generate_parameters from
ssl-init-openssl.c is empty.

Please try to get more information on what dovecot is doing, using gdb
or so. Personally I don't think gnutls is to blame.

Jaldhar: the bugreport you refer to is an FTBFS bug, what does it have
to do with this?

 Ivo

--
Seit Käptn Ahab sich mit Moses zusammengetan hatte, hatte Moby Dick
nicht mehr viel zu lachen.
 - Nichtlustig

Revision history for this message
In , Jaldhar (jaldhar) wrote :

On Fri, 16 Jan 2004, Ivo Timmermans wrote:

> Actually it seems to be more of a problem with the way gnutls is
> handled. If you want certificates, gnutls will want the file. The
> submitter reports the existence of a file
> "/var/run/dovecot/ssl-parameters.dat.tmp". gnutls couldn't care less
> what you feed it, but gives an error if the file isn't there.
>

That file is there. /var/run/dovecot/ssl-parameters.dat is the one which
is missing. I'll take a look at what dovecot is doing with it.

> There seems to be a difference in ssl-init-gnutls.c and
> ssl-init-openssl.c; the _ssl_generate_parameters from
> ssl-init-openssl.c is empty.
>
> Please try to get more information on what dovecot is doing, using gdb
> or so. Personally I don't think gnutls is to blame.
>

I'll do that but fwiw, i believe dovecot has worked on hppa before and
it definitely works on other platforms with gnutls7 so I suspect this is a
regression or some weird hppa incompatability.

>
> Jaldhar: the bugreport you refer to is an FTBFS bug, what does it have
> to do with this?

I was wondering if the automake problem mentioned there resulted in a
slightly different configuration for hppa which may have triggered this
bug.

Btw, I see from Debian Planet that you have a new version of gnutls out.
Has it been built for hppa yet? Would it be worth having the bug
submitter try that instead of gnutls7?

--
Jaldhar H. Vyas <email address hidden>
La Salle Debain - http://www.braincells.com/debian/

Revision history for this message
In , Ivo Timmermans (ivo-o2w) wrote :

Jaldhar H. Vyas wrote:
> On Fri, 16 Jan 2004, Ivo Timmermans wrote:
> > Actually it seems to be more of a problem with the way gnutls is
> > handled. If you want certificates, gnutls will want the file. The
> > submitter reports the existence of a file
> > "/var/run/dovecot/ssl-parameters.dat.tmp". gnutls couldn't care less
> > what you feed it, but gives an error if the file isn't there.
> >
>
> That file is there. /var/run/dovecot/ssl-parameters.dat is the one which
> is missing. I'll take a look at what dovecot is doing with it.

Exactly. In ssl-init.c, there is a rename() which is supposed to move
it from .dat.tmp to .dat.

> I'll do that but fwiw, i believe dovecot has worked on hppa before and
> it definitely works on other platforms with gnutls7 so I suspect this is a
> regression or some weird hppa incompatability.

Could be. Jools, what does 'dpkg -l libgnutls7' say?

> Btw, I see from Debian Planet that you have a new version of gnutls out.
> Has it been built for hppa yet? Would it be worth having the bug
> submitter try that instead of gnutls7?

It's waiting in NEW. If you can make him get the sources from my site
and compile it, sure, why not.

Jools, if you want to try this, get the source for gnutls10 from:
 http://www.lychnis.net/files/debian/unstable/source/

 Ivo

--
Illegal hardware instruction

Revision history for this message
In , Jools Wills (jools) wrote :

On Friday 16 January 2004 4:58 pm, Jools Smyth wrote:
> On Friday 16 January 2004 3:49 pm, Ivo Timmermans wrote:
> > Jaldhar H. Vyas wrote:
> >
> > Could be. Jools, what does 'dpkg -l libgnutls7' say?
>
> hp9000:~# dpkg -l libgnutls7
> Desired=Unknown/Install/Remove/Purge/Hold
>
> | Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
> |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err:
> | uppercase=bad)
> |
> ||/ Name Version Description
>
> +++-====================-====================-=============================
>=========================== ii libgnutls7 0.8.12-3.1
> GNU TLS library - runtime library
>
> > Jools, if you want to try this, get the source for gnutls10 from:
> > http://www.lychnis.net/files/debian/unstable/source/

ok. built the package and installed. i removed the dovecot package.
reinstalled (to be sure). but still the same problem.

Best Regards

Jools
--
Oxford Inspire
<email address hidden>
Tel: 01865 751879
Mob: 07966 577498

Revision history for this message
In , Ivo Timmermans (ivo-o2w) wrote :

Jools Smyth wrote:
> ok. built the package and installed. i removed the dovecot package.
> reinstalled (to be sure). but still the same problem.

Yeah, dovecot should also be recompiled using the new libgnutls10-dev.
Sorry about that. Jaldhar, if you want, libgnutls10 is now in incoming.

 Ivo

--
Mein Gott, Henry! Hinter dir! Der Mobster von Loch Ness!
 - Nichtlustig

Revision history for this message
In , Ivo Timmermans (ivo-o2w) wrote : Re: building dovecot package

Jaldhar H. Vyas wrote:
> Jools, would it be possible to get a temporary account on this machine?
> It might speed things up a bit if I could look at things myself.

Has there been any progress? FWIW I can also reproduce this on
sparc, but not on i386.

 Ivo

--
"You mean since you suggested he take the toaster into the shower
with him to save time on making breakfast in the morning?"
 - BOFH 5/11/97

Revision history for this message
In , Jaldhar (jaldhar) wrote :

On Sun, 25 Jan 2004, Ivo Timmermans wrote:

> Jaldhar H. Vyas wrote:
> > Jools, would it be possible to get a temporary account on this machine?
> > It might speed things up a bit if I could look at things myself.
>
> Has there been any progress? FWIW I can also reproduce this on
> sparc, but not on i386.
>

The last time I tried, I managed to crash Jools' server. So I am a little
apprehensive about trying again without further research. Jools, if it is
ok with you I'd like to try again next week.

--
Jaldhar H. Vyas <email address hidden>
La Salle Debain - http://www.braincells.com/debian/

Revision history for this message
In , Jools Wills (jools) wrote :

On Sunday 25 January 2004 3:29 pm, Jaldhar H. Vyas wrote:

> The last time I tried, I managed to crash Jools' server. So I am a little
> apprehensive about trying again without further research. Jools, if it is
> ok with you I'd like to try again next week.

It's quite ok. the machine is only currently running a few services for
myself. I've also upgraded the kernel and it seems to be running more stable
now. The hppa kernels are under constant development.

Please feel free to carry on using the machine.

Since then I've posted to the debian-hppa and parisc-linux lists and a kernel
developer offered to help debug it. I'm just waiting for him to give me his
public gpg key so i can mail him a password.

he mentioned in a previous mail:

>Looks like it's a thread spinning and waiting for the TLS package to
>create the real data file it needs, instead of the .tmp version.

>I wonder if we have another package that uses gnutls on hppa and is
>functional. My home system isn't up at this point or I would be poking
>about the gnutls source.

>Please ping me tommorow.

>Things I suspect:
>- Lock usage incorrect.
>- Function descriptor problems.
>- Race condition exposed on hppa systems.

Best Regards

Jools
--
Oxford Inspire
<email address hidden>
Tel: 01865 751879
Mob: 07966 577498

Revision history for this message
In , Nathanael Nerode (neroden-twcny) wrote : Bug status report?

How's progress on debugging this going? It's been quiet for almost a month.
(Info to the bug report please.)

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Automatically imported from Debian bug report #227442
http://bugs.debian.org/227442

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-Id: <email address hidden>
Date: Sun, 11 Jan 2004 17:02:58 +0000
From: Jools Smyth <email address hidden>
To: Debian Bug Tracking System <email address hidden>
Subject: Ports open but not response from dovecot daemon (hppa)

Package: dovecot
Version: 0.99.10.4-2
Severity: grave
Justification: renders package unusable

When using the packaged version Dovecot starts up but when connecting to (for example)
pop3 you get

jools@inspiron:~$ telnet hp9000 pop3
Trying 192.168.1.10...
Connected to hp9000.workshop.
Escape character is '^]'.

and then nothing. I compiled my own from source and this works fine, so its some option built
into the package which is broken on HPPA. When i built from source i included PAM and SSL
support. Please tell me where to go from here to debug this further. No useful information was
given in any logs. Also i have noticed that if i strace on my version of "pop3-login" it runs
though and finishes. but on the one shipped with the package it seems to be stuck in a loop.
forever repeating

open("/var/run/dovecot/ssl-parameters.dat", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or
directory)
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGCHLD, NULL, {SIG_DFL}, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
nanosleep({1, 0}, {1, 0})

over and over again

i checked and there is indeed no file of this name. but only a ssl-parameters.dat.tmp file

I am happy to test out any new packages with more debug information for you.

-- System Information:
Debian Release: testing/unstable
Architecture: hppa
Kernel: Linux hp9000 2.6.0-pa6 #1 Sat Jan 3 06:19:22 GMT 2004 parisc
Locale: LANG=C, LC_CTYPE=C

Versions of packages dovecot depends on:
ii dovecot-imapd 0.99.10.4-2 A secure IMAP server that supports
ii dovecot-pop3d 0.99.10.4-2 A secure POP3 server that supports

-- no debconf information

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Tue, 13 Jan 2004 16:55:25 -0500 (EST)
From: "Jaldhar H. Vyas" <email address hidden>
To: Jools Smyth <email address hidden>, <email address hidden>
Cc: <email address hidden>
Subject: Re: Bug#227442: Ports open but not response from dovecot daemon (hppa)

reassign 227442 dovecot-common
thanks

On Sun, 11 Jan 2004, Jools Smyth wrote:

> Package: dovecot
> Version: 0.99.10.4-2
> Severity: grave
> Justification: renders package unusable
>
> When using the packaged version Dovecot starts up but when connecting to
> (for example) pop3 you get
>
> jools@inspiron:~$ telnet hp9000 pop3
> Trying 192.168.1.10...
> Connected to hp9000.workshop.
> Escape character is '^]'.
>

What does the protocols= line in your /etc/dovecot.conf say?

Are you sure you didn't have something else already listening to port 110?
(netstat -ln | grep 110 can tell you this.)

Do you have dovecot-common installed? Is it also 0.99.10.4.2?

Does renaming /var/run/dovecot/ssl-parameters.dat.tmp to
/var/run/dovecot/ssl-parameters.dat and then restarting dovecot help?

--
Jaldhar H. Vyas <email address hidden>
La Salle Debain - http://www.braincells.com/debian/

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-Id: <email address hidden>
Date: Tue, 13 Jan 2004 22:43:42 +0000
From: Jools Smyth <email address hidden>
To: "Jaldhar H. Vyas" <email address hidden>
Cc: <email address hidden>
Subject: Re: Bug#227442: Ports open but not response from dovecot daemon (hppa)

On Tuesday 13 January 2004 10:31 pm, you wrote:

> I doubt that there are any huge difference between my packaged version and
> the upstream versions. What flags did you give to configure when you
> compiled your version?

none. Just :

./configure
make
make install

the following support/options are included

Install prefix ...................... : /usr/local
File offsets ........................ : 64bit
Building with SSL support ........... : yes (OpenSSL)
Building with IPv6 support .......... : yes
Building with pop3 server ........... : yes
Building with user database modules . : static passwd passwd-file (modules)
Building with password lookup modules : passwd passwd-file shadow pam
(modules)

> (Please maintain the cc to <email address hidden> in your reply)

oops. sorry

Best Regards

Jools
--
Oxford Inspire
<email address hidden>
Tel: 01865 751879
Mob: 07966 577498

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Tue, 13 Jan 2004 17:31:49 -0500 (EST)
From: "Jaldhar H. Vyas" <email address hidden>
To: Jools Smyth <email address hidden>
Cc: <email address hidden>
Subject: Re: Bug#227442: Ports open but not response from dovecot daemon (hppa)

On Tue, 13 Jan 2004, Jools Smyth wrote:

> On Tuesday 13 January 2004 9:55 pm, you wrote:
> >
> > What does the protocols= line in your /etc/dovecot.conf say?
> >
>
> protocols = pop3
>
> (I tried others also)
>
> > Are you sure you didn't have something else already listening to port
110?
> > (netstat -ln | grep 110 can tell you this.)
> >
>
> yes.
>
> > Do you have dovecot-common installed? Is it also 0.99.10.4.2?
> >
>
> yes to both.
>
> > Does renaming /var/run/dovecot/ssl-parameters.dat.tmp to
> > /var/run/dovecot/ssl-parameters.dat and then restarting dovecot help?
>
>
> i did but it didnt help.
> I am now running successfully dovecot, with
> pop/pop3s/imap/imaps but built from source, so i know I can get it running.
> just not the packaged version :(
>

I doubt that there are any huge difference between my packaged version and
the upstream versions. What flags did you give to configure when you
compiled your version?

(Please maintain the cc to <email address hidden> in your reply)

--
Jaldhar H. Vyas <email address hidden>
La Salle Debain - http://www.braincells.com/debian/

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Tue, 13 Jan 2004 18:59:23 -0500 (EST)
From: "Jaldhar H. Vyas" <email address hidden>
To: Jools Smyth <email address hidden>
Cc: <email address hidden>
Subject: Re: Bug#227442: Ports open but not response from dovecot daemon (hppa)

On Tue, 13 Jan 2004, Jools Smyth wrote:

> Building with SSL support ........... : yes (OpenSSL)

Mine is built with gnutls. That could be significant. can you try
building dovecot with gnutls instead of openssl and see if it breaks?

--
Jaldhar H. Vyas <email address hidden>
La Salle Debain - http://www.braincells.com/debian/

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-Id: <1074064486.3795.66.camel@hurina>
Date: Wed, 14 Jan 2004 09:14:46 +0200
From: Timo Sirainen <email address hidden>
To: Jools Smyth <email address hidden>, <email address hidden>
Cc: Debian Bug Tracking System <email address hidden>
Subject: Re: Bug#227442: Ports open but not response from dovecot daemon (hppa)

--=-Znq/9R7EbljXkSH8+eeN
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

On Sun, 2004-01-11 at 19:02, Jools Smyth wrote:
> open("/var/run/dovecot/ssl-parameters.dat", O_RDONLY|O_LARGEFILE) =3D -1 =
ENOENT (No such file or=20
> directory)
> rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) =3D 0
> rt_sigaction(SIGCHLD, NULL, {SIG_DFL}, 8) =3D 0
> rt_sigprocmask(SIG_SETMASK, [], NULL, 8) =3D 0
> nanosleep({1, 0}, {1, 0})
>=20
> over and over again
>=20
> i checked and there is indeed no file of this name. but only a ssl-parame=
ters.dat.tmp file

There should be another dovecot named process that creates this
ssl-parameters.dat file. So sounds like you have some OpenSSL problem.
Try stracing the other dovecot process and see what it does? Maybe it's
blocking on trying to read too much data from /dev/random or something?

--=-Znq/9R7EbljXkSH8+eeN
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQBABOxmyUhSUUBViskRAgppAJ9s2d2hxwLY069Gg54WbroeG5115gCfTncY
lcgSrXYBOUo5oW6P8ww+k0Y=
=syaL
-----END PGP SIGNATURE-----

--=-Znq/9R7EbljXkSH8+eeN--

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-Id: <email address hidden>
Date: Fri, 16 Jan 2004 13:40:25 +0000
From: Jools Smyth <email address hidden>
To: "Jaldhar H. Vyas" <email address hidden>
Cc: <email address hidden>
Subject: Re: Bug#227442: Ports open but not response from dovecot daemon (hppa)

On Tuesday 13 January 2004 11:59 pm, Jaldhar H. Vyas wrote:
> On Tue, 13 Jan 2004, Jools Smyth wrote:
> > Building with SSL support ........... : yes (OpenSSL)
>
> Mine is built with gnutls. That could be significant. can you try
> building dovecot with gnutls instead of openssl and see if it breaks?

ok . Just tried it.

It doesn't work if i build with gnutls.

Where do we go from here ?

Best Regards

Jools
--
Oxford Inspire
<email address hidden>
Tel: 01865 751879
Mob: 07966 577498

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Fri, 16 Jan 2004 08:59:40 -0500 (EST)
From: "Jaldhar H. Vyas" <email address hidden>
To: <email address hidden>, Jools Smyth <email address hidden>
Cc: <email address hidden>
Subject: Re: Bug#227442: Ports open but not response from dovecot daemon (hppa)

reassign 227442 gnutls7
thanks

On Fri, 16 Jan 2004, Jools Smyth wrote:

> On Tuesday 13 January 2004 11:59 pm, Jaldhar H. Vyas wrote:
> > On Tue, 13 Jan 2004, Jools Smyth wrote:
> > > Building with SSL support ........... : yes (OpenSSL)
> >
> > Mine is built with gnutls. That could be significant. can you try
> > building dovecot with gnutls instead of openssl and see if it breaks?
>
> ok . Just tried it.
>
> It doesn't work if i build with gnutls.
>
> Where do we go from here ?
>

We reassign this bug to gnutls!

Ivo, could this be a similiar problem to #224106?

--
Jaldhar H. Vyas <email address hidden>
La Salle Debain - http://www.braincells.com/debian/

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <20040116153221.GA14278@juarez>
Date: Fri, 16 Jan 2004 16:32:21 +0100
From: Ivo Timmermans <email address hidden>
To: <email address hidden>, Jools Smyth <email address hidden>
Cc: "Jaldhar H. Vyas" <email address hidden>
Subject: Re: Processed: Re: Bug#227442: Ports open but not response from
 dovecot daemon (hppa)

Debian Bug Tracking System wrote:
> Processing commands for <email address hidden>:
>=20
> > reassign 227442 gnutls7
> Bug#227442: Ports open but not response from dovecot daemon (hppa)
> Bug reassigned from package `dovecot-common' to `gnutls7'.

Actually it seems to be more of a problem with the way gnutls is
handled. If you want certificates, gnutls will want the file. The
submitter reports the existence of a file
"/var/run/dovecot/ssl-parameters.dat.tmp". gnutls couldn't care less
what you feed it, but gives an error if the file isn't there.

There seems to be a difference in ssl-init-gnutls.c and
ssl-init-openssl.c; the _ssl_generate_parameters from
ssl-init-openssl.c is empty.

Please try to get more information on what dovecot is doing, using gdb
or so. Personally I don't think gnutls is to blame.

Jaldhar: the bugreport you refer to is an FTBFS bug, what does it have
to do with this?

 Ivo

--=20
Seit K=C3=A4ptn Ahab sich mit Moses zusammengetan hatte, hatte Moby Dick
nicht mehr viel zu lachen.
 - Nichtlustig

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Fri, 16 Jan 2004 10:41:43 -0500 (EST)
From: "Jaldhar H. Vyas" <email address hidden>
To: Ivo Timmermans <email address hidden>
Cc: <email address hidden>, Jools Smyth <email address hidden>
Subject: Re: Processed: Re: Bug#227442: Ports open but not response from
 dovecot daemon (hppa)

On Fri, 16 Jan 2004, Ivo Timmermans wrote:

> Actually it seems to be more of a problem with the way gnutls is
> handled. If you want certificates, gnutls will want the file. The
> submitter reports the existence of a file
> "/var/run/dovecot/ssl-parameters.dat.tmp". gnutls couldn't care less
> what you feed it, but gives an error if the file isn't there.
>

That file is there. /var/run/dovecot/ssl-parameters.dat is the one which
is missing. I'll take a look at what dovecot is doing with it.

> There seems to be a difference in ssl-init-gnutls.c and
> ssl-init-openssl.c; the _ssl_generate_parameters from
> ssl-init-openssl.c is empty.
>
> Please try to get more information on what dovecot is doing, using gdb
> or so. Personally I don't think gnutls is to blame.
>

I'll do that but fwiw, i believe dovecot has worked on hppa before and
it definitely works on other platforms with gnutls7 so I suspect this is a
regression or some weird hppa incompatability.

>
> Jaldhar: the bugreport you refer to is an FTBFS bug, what does it have
> to do with this?

I was wondering if the automake problem mentioned there resulted in a
slightly different configuration for hppa which may have triggered this
bug.

Btw, I see from Debian Planet that you have a new version of gnutls out.
Has it been built for hppa yet? Would it be worth having the bug
submitter try that instead of gnutls7?

--
Jaldhar H. Vyas <email address hidden>
La Salle Debain - http://www.braincells.com/debian/

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <20040116154950.GB14278@juarez>
Date: Fri, 16 Jan 2004 16:49:50 +0100
From: Ivo Timmermans <email address hidden>
To: "Jaldhar H. Vyas" <email address hidden>
Cc: <email address hidden>, Jools Smyth <email address hidden>
Subject: Re: Processed: Re: Bug#227442: Ports open but not response from
 dovecot daemon (hppa)

Jaldhar H. Vyas wrote:
> On Fri, 16 Jan 2004, Ivo Timmermans wrote:
> > Actually it seems to be more of a problem with the way gnutls is
> > handled. If you want certificates, gnutls will want the file. The
> > submitter reports the existence of a file
> > "/var/run/dovecot/ssl-parameters.dat.tmp". gnutls couldn't care less
> > what you feed it, but gives an error if the file isn't there.
> >
>
> That file is there. /var/run/dovecot/ssl-parameters.dat is the one which
> is missing. I'll take a look at what dovecot is doing with it.

Exactly. In ssl-init.c, there is a rename() which is supposed to move
it from .dat.tmp to .dat.

> I'll do that but fwiw, i believe dovecot has worked on hppa before and
> it definitely works on other platforms with gnutls7 so I suspect this is a
> regression or some weird hppa incompatability.

Could be. Jools, what does 'dpkg -l libgnutls7' say?

> Btw, I see from Debian Planet that you have a new version of gnutls out.
> Has it been built for hppa yet? Would it be worth having the bug
> submitter try that instead of gnutls7?

It's waiting in NEW. If you can make him get the sources from my site
and compile it, sure, why not.

Jools, if you want to try this, get the source for gnutls10 from:
 http://www.lychnis.net/files/debian/unstable/source/

 Ivo

--
Illegal hardware instruction

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-Id: <email address hidden>
Date: Fri, 16 Jan 2004 18:09:09 +0000
From: Jools Smyth <email address hidden>
To: <email address hidden>,
 "Jaldhar H. Vyas" <email address hidden>
Cc: <email address hidden>
Subject: Re: Processed: Re: Bug#227442: Ports open but not response from
 dovecot daemon (hppa)

On Friday 16 January 2004 4:58 pm, Jools Smyth wrote:
> On Friday 16 January 2004 3:49 pm, Ivo Timmermans wrote:
> > Jaldhar H. Vyas wrote:
> >
> > Could be. Jools, what does 'dpkg -l libgnutls7' say?
>
> hp9000:~# dpkg -l libgnutls7
> Desired=Unknown/Install/Remove/Purge/Hold
>
> | Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
> |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err:
> | uppercase=bad)
> |
> ||/ Name Version Description
>
> +++-====================-====================-=============================
>=========================== ii libgnutls7 0.8.12-3.1
> GNU TLS library - runtime library
>
> > Jools, if you want to try this, get the source for gnutls10 from:
> > http://www.lychnis.net/files/debian/unstable/source/

ok. built the package and installed. i removed the dovecot package.
reinstalled (to be sure). but still the same problem.

Best Regards

Jools
--
Oxford Inspire
<email address hidden>
Tel: 01865 751879
Mob: 07966 577498

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <20040116183801.GE14633@juarez>
Date: Fri, 16 Jan 2004 19:38:01 +0100
From: Ivo Timmermans <email address hidden>
To: Jools Smyth <email address hidden>
Cc: "Jaldhar H. Vyas" <email address hidden>, <email address hidden>
Subject: Re: Processed: Re: Bug#227442: Ports open but not response from
 dovecot daemon (hppa)

Jools Smyth wrote:
> ok. built the package and installed. i removed the dovecot package.
> reinstalled (to be sure). but still the same problem.

Yeah, dovecot should also be recompiled using the new libgnutls10-dev.
Sorry about that. Jaldhar, if you want, libgnutls10 is now in incoming.

 Ivo

--
Mein Gott, Henry! Hinter dir! Der Mobster von Loch Ness!
 - Nichtlustig

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <20040125151931.GA30140@juarez>
Date: Sun, 25 Jan 2004 16:19:31 +0100
From: Ivo Timmermans <email address hidden>
To: "Jaldhar H. Vyas" <email address hidden>
Cc: Jools Smyth <email address hidden>, <email address hidden>
Subject: Re: building dovecot package

Jaldhar H. Vyas wrote:
> Jools, would it be possible to get a temporary account on this machine?
> It might speed things up a bit if I could look at things myself.

Has there been any progress? FWIW I can also reproduce this on
sparc, but not on i386.

 Ivo

--
"You mean since you suggested he take the toaster into the shower
with him to save time on making breakfast in the morning?"
 - BOFH 5/11/97

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Sun, 25 Jan 2004 10:29:11 -0500 (EST)
From: "Jaldhar H. Vyas" <email address hidden>
To: Ivo Timmermans <email address hidden>
Cc: Jools Smyth <email address hidden>, <email address hidden>
Subject: Re: building dovecot package

On Sun, 25 Jan 2004, Ivo Timmermans wrote:

> Jaldhar H. Vyas wrote:
> > Jools, would it be possible to get a temporary account on this machine?
> > It might speed things up a bit if I could look at things myself.
>
> Has there been any progress? FWIW I can also reproduce this on
> sparc, but not on i386.
>

The last time I tried, I managed to crash Jools' server. So I am a little
apprehensive about trying again without further research. Jools, if it is
ok with you I'd like to try again next week.

--
Jaldhar H. Vyas <email address hidden>
La Salle Debain - http://www.braincells.com/debian/

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-Id: <email address hidden>
Date: Sun, 25 Jan 2004 15:40:36 +0000
From: Jools Smyth <email address hidden>
To: "Jaldhar H. Vyas" <email address hidden>,
 Ivo Timmermans <email address hidden>
Cc: <email address hidden>
Subject: Re: building dovecot package

On Sunday 25 January 2004 3:29 pm, Jaldhar H. Vyas wrote:

> The last time I tried, I managed to crash Jools' server. So I am a little
> apprehensive about trying again without further research. Jools, if it is
> ok with you I'd like to try again next week.

It's quite ok. the machine is only currently running a few services for
myself. I've also upgraded the kernel and it seems to be running more stable
now. The hppa kernels are under constant development.

Please feel free to carry on using the machine.

Since then I've posted to the debian-hppa and parisc-linux lists and a kernel
developer offered to help debug it. I'm just waiting for him to give me his
public gpg key so i can mail him a password.

he mentioned in a previous mail:

>Looks like it's a thread spinning and waiting for the TLS package to
>create the real data file it needs, instead of the .tmp version.

>I wonder if we have another package that uses gnutls on hppa and is
>functional. My home system isn't up at this point or I would be poking
>about the gnutls source.

>Please ping me tommorow.

>Things I suspect:
>- Lock usage incorrect.
>- Function descriptor problems.
>- Race condition exposed on hppa systems.

Best Regards

Jools
--
Oxford Inspire
<email address hidden>
Tel: 01865 751879
Mob: 07966 577498

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-Id: <email address hidden>
Date: Mon, 23 Feb 2004 13:36:37 -0500
From: Nathanael Nerode <email address hidden>
To: <email address hidden>
Subject: Bug status report?

How's progress on debugging this going? It's been quiet for almost a month.
(Info to the bug report please.)

Revision history for this message
Matt Zimmerman (mdz) wrote :

This bug does not appear to affect any Warty architectures

Revision history for this message
In , Matthias Urlichs (smurf) wrote : No longer an issue

I am closing this bug because
- dovecot now uses openssl
- gnutls11 has an hppa fix which should close this

If anybody thinks it's still an issue, please reopen.

--
Matthias Urlichs | {M:U} IT Design @ m-u-it.de | <email address hidden>

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <20040726083944.GL21052@kiste>
Date: Mon, 26 Jul 2004 10:39:45 +0200
From: "Matthias Urlichs" <email address hidden>
To: <email address hidden>
Subject: No longer an issue

I am closing this bug because
- dovecot now uses openssl
- gnutls11 has an hppa fix which should close this

If anybody thinks it's still an issue, please reopen.

--
Matthias Urlichs | {M:U} IT Design @ m-u-it.de | <email address hidden>

Revision history for this message
Daniel Robitaille (robitaille) wrote :

Marked as "DONE" in Debian in July 2004

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.