cyrus21-common: Fails to start on hppa, ctl_cyrusdb hangs forever

Bug #12867 reported by Debian Bug Importer
4
Affects Status Importance Assigned to Milestone
cyrus21-imapd (Debian)
Fix Released
Unknown
cyrus21-imapd (Ubuntu)
Invalid
High
Unassigned

Bug Description

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

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

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

Revision history for this message
Debian Bug Importer (debzilla) wrote :
Download full text (11.7 KiB)

Message-Id: <email address hidden>
Date: Sun, 13 Feb 2005 15:14:25 +0100
From: Alexander Barton <email address hidden>
To: Debian Bug Tracking System <email address hidden>
Subject: cyrus21-common: Fails to start on hppa, ctl_cyrusdb hangs forever

Package: cyrus21-common
Version: 2.1.17-3
Severity: grave
Justification: renders package unusable

When I start Cyrus 2.1 on Debian on HPPA, ctl_cyrusdb (which is started
automatically as configured in /etc/cyrus.conf) hangs forever. The same is
true when I start it manually.

Using strace I get the following trace:

execve("/usr/sbin/ctl_cyrusdb", ["/usr/sbin/ctl_cyrusdb", "-r"], [/* 22 vars */]) = 0
newuname({sys="Linux", node="C3600", ...}) = 0
brk(0) = 0x47000
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40000000
open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(3, {st_mode=0, st_size=0, ...}) = 0
mmap(NULL, 32274, PROT_READ, MAP_PRIVATE, 3, 0) = 0x400b7000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/usr/lib/libsasl2.so.2", O_RDONLY) = 3
read(3, "\177ELF\1\2\1\3\0\0\0\0\0\0\0\0\0\3\0\17\0\0\0\1\0\0@l"..., 512) = 512
fstat64(3, {st_mode=0, st_size=0, ...}) = 0
mmap(NULL, 165480, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40236000
mprotect(0x4024e000, 67176, PROT_NONE) = 0
mmap(0x4025d000, 8192, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0x17000) = 0x4025d000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/libresolv.so.2", O_RDONLY) = 3
read(3, "\177ELF\1\2\1\3\0\0\0\0\0\0\0\0\0\3\0\17\0\0\0\1\0\0.p"..., 512) = 512
fstat64(3, {st_mode=0, st_size=0, ...}) = 0
mmap(NULL, 150128, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40371000
mprotect(0x40383000, 76400, PROT_NONE) = 0
mmap(0x40392000, 8192, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0x11000) = 0x40392000
mmap(0x40394000, 6768, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40394000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/usr/lib/libdb3.so.3", O_RDONLY) = 3
read(3, "\177ELF\1\2\1\3\0\0\0\0\0\0\0\0\0\3\0\17\0\0\0\1\0\001"..., 512) = 512
fstat64(3, {st_mode=0, st_size=0, ...}) = 0
mmap(NULL, 1036232, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4068b000
mprotect(0x40775000, 77768, PROT_NONE) = 0
mmap(0x40784000, 16384, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0xe9000) = 0x40784000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/usr/lib/libssl.so.0.9.7", O_RDONLY) = 3
read(3, "\177ELF\1\2\1\3\0\0\0\0\0\0\0\0\0\3\0\17\0\0\0\1\0\0\245"..., 512) = 512
fstat64(3, {st_mode=0, st_size=0, ...}) = 0
mmap(NULL, 286528, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4028a000
mprotect(0x402bd00...

Revision history for this message
In , Henrique de Moraes Holschuh (hmh) wrote : Re: Bug#295076: cyrus21-common: Fails to start on hppa, ctl_cyrusdb hangs forever

tags 295076 + unreproducible moreinfo
thanks

On Sun, 13 Feb 2005, Alexander Barton wrote:
> When I start Cyrus 2.1 on Debian on HPPA, ctl_cyrusdb (which is started
> automatically as configured in /etc/cyrus.conf) hangs forever. The same is
> true when I start it manually.

This usually means the db environment is gone. kaput. corrupted. busted.

> Is this a problem with Berkeley DB 3 on HPPA?

Probably.

Stop cyrus. Make sure (thorough ps, etc) that it is really stopped. cd to
/var/lib/cyrus.

Now, run db3_recover. Does it hang? if yes, you're in trouble, and you will
have to rm ALL the dbs and ALL the logs. There is a backup of the mailboxes db
in /var/backups which can be used to restore the mailboxes database using
ctl_mboxlist. You will lose some information.

If db3_recover worked, rm the deliver.db and tls_sessions.db databases, and
make sure all files have owner "cyrus". Then start Cyrus again (and good
luck).

Did it work? BTW, have you experienced any power outages, cyrus crashes,
memory failures or anything else that could have corrupted a db3
environment? It is damn difficult to corrupt it on ia32, at least...

Look at the db3 changelogs, see if there are any suspicious changes listed
for hppa.

--
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh

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

Message-ID: <email address hidden>
Date: Sun, 13 Feb 2005 15:36:31 -0200
From: Henrique de Moraes Holschuh <email address hidden>
To: Alexander Barton <email address hidden>, <email address hidden>
Subject: Re: Bug#295076: cyrus21-common: Fails to start on hppa, ctl_cyrusdb hangs forever

tags 295076 + unreproducible moreinfo
thanks

On Sun, 13 Feb 2005, Alexander Barton wrote:
> When I start Cyrus 2.1 on Debian on HPPA, ctl_cyrusdb (which is started
> automatically as configured in /etc/cyrus.conf) hangs forever. The same is
> true when I start it manually.

This usually means the db environment is gone. kaput. corrupted. busted.

> Is this a problem with Berkeley DB 3 on HPPA?

Probably.

Stop cyrus. Make sure (thorough ps, etc) that it is really stopped. cd to
/var/lib/cyrus.

Now, run db3_recover. Does it hang? if yes, you're in trouble, and you will
have to rm ALL the dbs and ALL the logs. There is a backup of the mailboxes db
in /var/backups which can be used to restore the mailboxes database using
ctl_mboxlist. You will lose some information.

If db3_recover worked, rm the deliver.db and tls_sessions.db databases, and
make sure all files have owner "cyrus". Then start Cyrus again (and good
luck).

Did it work? BTW, have you experienced any power outages, cyrus crashes,
memory failures or anything else that could have corrupted a db3
environment? It is damn difficult to corrupt it on ia32, at least...

Look at the db3 changelogs, see if there are any suspicious changes listed
for hppa.

--
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh

Revision history for this message
In , Jochen Friedrich (jochen) wrote : Re: Bug#295076: cyrus21-common: Fails to start on hppa, ctl_cyrusdb hangs forever

Hi Alexander,

db3 on hppa had a bug (#2666685) which caused this exact behaviour. Please
make sure you have at least db3 version 3.2.9-21 installed.

Thanks,
Jochen

> tags 295076 + unreproducible moreinfo
> thanks
>
> On Sun, 13 Feb 2005, Alexander Barton wrote:
> > When I start Cyrus 2.1 on Debian on HPPA, ctl_cyrusdb (which is started
> > automatically as configured in /etc/cyrus.conf) hangs forever. The same is
> > true when I start it manually.
>
> This usually means the db environment is gone. kaput. corrupted. busted.
>
> > Is this a problem with Berkeley DB 3 on HPPA?
>
> Probably.
>
> Stop cyrus. Make sure (thorough ps, etc) that it is really stopped. cd to
> /var/lib/cyrus.
>
> Now, run db3_recover. Does it hang? if yes, you're in trouble, and you will
> have to rm ALL the dbs and ALL the logs. There is a backup of the mailboxes db
> in /var/backups which can be used to restore the mailboxes database using
> ctl_mboxlist. You will lose some information.
>
> If db3_recover worked, rm the deliver.db and tls_sessions.db databases, and
> make sure all files have owner "cyrus". Then start Cyrus again (and good
> luck).
>
> Did it work? BTW, have you experienced any power outages, cyrus crashes,
> memory failures or anything else that could have corrupted a db3
> environment? It is damn difficult to corrupt it on ia32, at least...
>
> Look at the db3 changelogs, see if there are any suspicious changes listed
> for hppa.
>
> --
> "One disk to rule them all, One disk to find them. One disk to bring
> them all and in the darkness grind them. In the Land of Redmond
> where the shadows lie." -- The Silicon Valley Tarot
> Henrique Holschuh
>
>
>

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

Message-ID: <Pine.LNX.4.58.0502132204410.1911@localhost>
Date: Sun, 13 Feb 2005 22:07:45 +0100 (CET)
From: Jochen Friedrich <email address hidden>
To: Henrique de Moraes Holschuh <email address hidden>,
 <email address hidden>
Cc: Alexander Barton <email address hidden>
Subject: Re: Bug#295076: cyrus21-common: Fails to start on hppa, ctl_cyrusdb
    hangs forever

Hi Alexander,

db3 on hppa had a bug (#2666685) which caused this exact behaviour. Please
make sure you have at least db3 version 3.2.9-21 installed.

Thanks,
Jochen

> tags 295076 + unreproducible moreinfo
> thanks
>
> On Sun, 13 Feb 2005, Alexander Barton wrote:
> > When I start Cyrus 2.1 on Debian on HPPA, ctl_cyrusdb (which is started
> > automatically as configured in /etc/cyrus.conf) hangs forever. The same is
> > true when I start it manually.
>
> This usually means the db environment is gone. kaput. corrupted. busted.
>
> > Is this a problem with Berkeley DB 3 on HPPA?
>
> Probably.
>
> Stop cyrus. Make sure (thorough ps, etc) that it is really stopped. cd to
> /var/lib/cyrus.
>
> Now, run db3_recover. Does it hang? if yes, you're in trouble, and you will
> have to rm ALL the dbs and ALL the logs. There is a backup of the mailboxes db
> in /var/backups which can be used to restore the mailboxes database using
> ctl_mboxlist. You will lose some information.
>
> If db3_recover worked, rm the deliver.db and tls_sessions.db databases, and
> make sure all files have owner "cyrus". Then start Cyrus again (and good
> luck).
>
> Did it work? BTW, have you experienced any power outages, cyrus crashes,
> memory failures or anything else that could have corrupted a db3
> environment? It is damn difficult to corrupt it on ia32, at least...
>
> Look at the db3 changelogs, see if there are any suspicious changes listed
> for hppa.
>
> --
> "One disk to rule them all, One disk to find them. One disk to bring
> them all and in the darkness grind them. In the Land of Redmond
> where the shadows lie." -- The Silicon Valley Tarot
> Henrique Holschuh
>
>
>

Revision history for this message
In , Alexander Barton (alex-barton) wrote : Re: Bug#295076: cyrus21-common: Fails to start on hppa, ctl_cyrusdb hangs forever

Am 13. Feb 2005 um 22:07 Uhr schrieb Jochen Friedrich:

> db3 on hppa had a bug (#2666685) which caused this exact behaviour.
> Please
> make sure you have at least db3 version 3.2.9-21 installed.

Okay, I installed 3.2.9-22 from unstable and reinstalled cyrus21-xxx.
Now Cyrus seems to work as expected. Thanks a lot!

Sorry for blaming the Cyrus packages for this Berkeley DB bug :-)

Regards
Alex

--
Alexander Barton, Freiburg, Germany
http://www.barton.de/, <email address hidden>

Revision history for this message
In , Henrique de Moraes Holschuh (hmh) wrote :

On Mon, 14 Feb 2005, Alexander Barton wrote:
> Okay, I installed 3.2.9-22 from unstable and reinstalled cyrus21-xxx.
> Now Cyrus seems to work as expected. Thanks a lot!

Ok. Closing the bug, then...

> Sorry for blaming the Cyrus packages for this Berkeley DB bug :-)

It's not a problem...

--
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh

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

Message-Id: <email address hidden>
Date: Mon, 14 Feb 2005 00:45:26 +0100
From: Alexander Barton <email address hidden>
To: Jochen Friedrich <email address hidden>
Cc: Henrique de Moraes Holschuh <email address hidden>,
 <email address hidden>, Alexander Barton <email address hidden>
Subject: Re: Bug#295076: cyrus21-common: Fails to start on hppa, ctl_cyrusdb hangs forever

Am 13. Feb 2005 um 22:07 Uhr schrieb Jochen Friedrich:

> db3 on hppa had a bug (#2666685) which caused this exact behaviour.
> Please
> make sure you have at least db3 version 3.2.9-21 installed.

Okay, I installed 3.2.9-22 from unstable and reinstalled cyrus21-xxx.
Now Cyrus seems to work as expected. Thanks a lot!

Sorry for blaming the Cyrus packages for this Berkeley DB bug :-)

Regards
Alex

--
Alexander Barton, Freiburg, Germany
http://www.barton.de/, <email address hidden>

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

Message-ID: <email address hidden>
Date: Sun, 13 Feb 2005 21:58:38 -0200
From: Henrique de Moraes Holschuh <email address hidden>
To: Alexander Barton <email address hidden>
Cc: <email address hidden>
Subject: Re: Bug#295076: cyrus21-common: Fails to start on hppa, ctl_cyrusdb hangs forever

On Mon, 14 Feb 2005, Alexander Barton wrote:
> Okay, I installed 3.2.9-22 from unstable and reinstalled cyrus21-xxx.
> Now Cyrus seems to work as expected. Thanks a lot!

Ok. Closing the bug, then...

> Sorry for blaming the Cyrus packages for this Berkeley DB bug :-)

It's not a problem...

--
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh

Revision history for this message
Martin Pitt (pitti) wrote :

Not a bug in cyrus, and only affects hppa.

Changed in cyrus21-imapd:
status: Unknown → Fix Released
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.