Bug 2267210 - cyrus_info coredumping in 3.8.1
Summary: cyrus_info coredumping in 3.8.1
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: cyrus-imapd
Version: 39
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Martin Osvald 🛹
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-03-01 06:33 UTC by Martin Osvald 🛹
Modified: 2024-03-23 00:25 UTC (History)
6 users (show)

Fixed In Version: cyrus-imapd-3.8.1-11.fc41 cyrus-imapd-3.8.1-11.fc39 cyrus-imapd-3.8.1-11.fc40
Clone Of:
Environment:
Last Closed: 2024-03-02 08:05:21 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github cyrusimap/cyrus-imapd/commit/a2bf7ed5aee1386a450dc6bd5dd3c6750fe39592 0 None None None 2024-03-01 06:37:54 UTC
Github cyrusimap cyrus-imapd issues 4650 0 None closed core dump while checking config with cyr_info 2024-03-01 06:37:54 UTC
Github cyrusimap cyrus-imapd issues 4723 0 None closed `cyr_info conf-all` crashes in 3.8 2024-03-01 06:37:54 UTC

Description Martin Osvald 🛹 2024-03-01 06:33:04 UTC
Received a report of cyr_info crashing through email:

I updated from cyrus-imapd 3.6.0 to 3.8.1 when I did the upgrade from F38 to F39, and I'm trying to figure out if any meaningful defaults have changed, but unfortunately I'm seeing this.

Reproducible: Always

Steps to Reproduce:
1.# cyr_info -s 3.6.0 conf-default
Actual Results:  
Crashing every time

Expected Results:  
No crashes

# cyr_info -s 3.6.0 conf-default
acl_admin_implies_write: no
addressbookprefix: #addressbooks
admins:  afspts_localrealms:  afspts_mycell:  allowallsubscribe: no
allowanonymouslogin: no
allowapop: yes
allowdeleted: no
allownewnews: no
allowplaintext: no
allowsetacl: yes
allowusermoves: no
altnamespace: yes
altprefix: Alt Folders
annotation_db: twoskip
annotation_db_path:  anyoneuseracl: yes
annotation_allow_undefined: no
annotation_definitions:  annotation_callout:  annotation_callout_disable_append: no
annotation_enable_legacy_commands: no
aps_topic:  aps_topic_caldav:  aps_topic_carddav:  archive_enabled: no
archive_days:  archive_after: 7d
Aborted (core dumped)
#

Comment 1 Martin Osvald 🛹 2024-03-01 06:36:33 UTC
The provided corefile contains this:

~~~
Core was generated by `cyr_info -s 3.6 conf-default'.
Program terminated with signal SIGABRT, Aborted.
#0  __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:44
Downloading source file /usr/src/debug/glibc-2.38-16.fc39.x86_64/nptl/pthread_kill.c
44            return INTERNAL_SYSCALL_ERROR_P (ret) ? INTERNAL_SYSCALL_ERRNO (ret) : 0;                                                                                                                                                      
(gdb) bt
#0  __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:44
#1  0x00007f1ddb5c48a3 in __pthread_kill_internal (signo=6, threadid=<optimized out>) at pthread_kill.c:78
#2  0x00007f1ddb5728ee in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#3  0x00007f1ddb55a8ff in __GI_abort () at abort.c:79
#4  0x00005619273c4a43 in do_defconf (since=<optimized out>, want_since=<optimized out>) at imap/cyr_info.c:278
#5  main (argc=<optimized out>, argv=<optimized out>) at imap/cyr_info.c:525
(gdb) f 4
#4  0x00005619273c4a43 in do_defconf (since=<optimized out>, want_since=<optimized out>) at imap/cyr_info.c:278
278                     abort();
(gdb) list
273                 case OPT_SWITCH:
274                     printf("%s: %s\n", imapopts[i].optname, imapopts[i].def.b ? "yes" : "no");
275                     break;
276
277                 default:
278                     abort();
279             }
280         }
281     }
282
(gdb)
~~~

The same symptoms are described in the following upstream issues:

https://github.com/cyrusimap/cyrus-imapd/issues/4650
https://github.com/cyrusimap/cyrus-imapd/issues/4723

There is an existing fix for it:

https://github.com/cyrusimap/cyrus-imapd/commit/a2bf7ed5aee1386a450dc6bd5dd3c6750fe39592

Comment 2 Fedora Update System 2024-03-02 06:29:01 UTC
FEDORA-2024-db42e37012 (cyrus-imapd-3.8.1-11.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-db42e37012

Comment 3 Fedora Update System 2024-03-02 07:06:09 UTC
FEDORA-2024-3f18b03659 (cyrus-imapd-3.8.1-11.fc40) has been submitted as an update to Fedora 40.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-3f18b03659

Comment 4 Fedora Update System 2024-03-02 07:29:18 UTC
FEDORA-2024-7a959bc16d (cyrus-imapd-3.8.1-11.fc39) has been submitted as an update to Fedora 39.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-7a959bc16d

Comment 5 Fedora Update System 2024-03-02 08:05:21 UTC
FEDORA-2024-db42e37012 (cyrus-imapd-3.8.1-11.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 6 Fedora Update System 2024-03-03 01:12:42 UTC
FEDORA-2024-7a959bc16d has been pushed to the Fedora 39 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-7a959bc16d`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-7a959bc16d

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Fedora Update System 2024-03-03 02:09:49 UTC
FEDORA-2024-3f18b03659 has been pushed to the Fedora 40 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-3f18b03659`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-3f18b03659

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 8 Fedora Update System 2024-03-11 01:36:40 UTC
FEDORA-2024-7a959bc16d (cyrus-imapd-3.8.1-11.fc39) has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 9 Fedora Update System 2024-03-23 00:25:59 UTC
FEDORA-2024-3f18b03659 (cyrus-imapd-3.8.1-11.fc40) has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.