Bug 31612 - reconstuct segfaults without tzdata installed
Summary: reconstuct segfaults without tzdata installed
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: cyrus-imapd (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P3 normal
Assignee: Sergey Y. Afonin
QA Contact: qa-sisyphus
URL:
Keywords: relnote
Depends on:
Blocks:
 
Reported: 2015-12-11 02:37 MSK by Konstantin A Lepikhov (L.A. Kostis)
Modified: 2015-12-12 16:37 MSK (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Konstantin A Lepikhov (L.A. Kostis) 2015-12-11 02:37:56 MSK
# /usr/lib/cyrus/reconstruct -V max
Segmentation fault

strace output:
...
open("/var/lib/imap/mailboxes.db", O_RDWR) = 4
fcntl(4, F_SETLKW, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
fstat(4, {st_mode=S_IFREG|0600, st_size=7140, ...}) = 0
stat("/var/lib/imap/mailboxes.db", {st_mode=S_IFREG|0600, st_size=7140, ...}) = 0
gettimeofday({1449790417, 988044}, NULL) = 0
mmap(NULL, 16384, PROT_READ, MAP_SHARED, 4, 0) = 0x7f554afd3000
fcntl(4, F_SETLKW, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
gettimeofday({1449790417, 988183}, NULL) = 0
stat("/var/lib/imap", {st_mode=S_IFDIR|S_ISVTX|0770, st_size=4096, ...}) = 0
access("/usr/share/zoneinfo/zone.tab", R_OK) = -1 ENOENT (No such file or directory)
access("/usr/lib/zoneinfo/zone.tab", R_OK) = -1 ENOENT (No such file or directory)
access("/etc/zoneinfo/zone.tab", R_OK)  = -1 ENOENT (No such file or directory)
access("/usr/share/lib/zoneinfo/zone.tab", R_OK) = -1 ENOENT (No such file or directory)
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0} ---
+++ killed by SIGSEGV +++
Segmentation fault

[root@cyrus ~]# apt-get install tzdata
Reading Package Lists... Done
Building Dependency Tree... Done
The following NEW packages will be installed:
  tzdata
0 upgraded, 1 newly installed, 0 removed and 0 not upgraded.
Need to get 337kB of archives.
After unpacking 1320kB of additional disk space will be used.
Get:1 http://ftp.altlinux.org noarch/classic tzdata 2015c-alt1 [337kB]
Fetched 337kB in 0s (396kB/s)
Committing changes...
Preparing...                                                                       ################################################################################################### [100%]
1: tzdata                                                                          ################################################################################################### [100%]
Running /usr/lib/rpm/posttrans-filetriggers
Done.
[root@cyrus ~]# /usr/lib/cyrus/reconstruct -V max
user/XXX
Repacked user/XXX to version 13
....
Comment 1 Repository Robot 2015-12-12 16:37:57 MSK
cyrus-imapd-2.5.7-alt1 -> sisyphus:

* Fri Dec 11 2015 Sergey Y. Afonin <asy@altlinux> 2.5.7-alt1
- 2.5.7 (CVE-2015-8077, CVE-2015-8078; Closes: #31611)
- added tzdata to "Requires" (Closes: #31612)