Bug 2035665 - [abrt] mairix: make_nvp(): mairix killed by SIGSEGV
Summary: [abrt] mairix: make_nvp(): mairix killed by SIGSEGV
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: mairix
Version: 34
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Lichvar
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:d64c8425436961837b3ac2d5447...
: 2073552 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-12-26 16:40 UTC by Need Real Name
Modified: 2022-05-07 04:32 UTC (History)
1 user (show)

Fixed In Version: mairix-0.24-13.20220426git638a69.fc35 mairix-0.24-13.20220426git638a69.fc36
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-05-04 13:51:37 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (37.97 KB, text/plain)
2021-12-26 16:40 UTC, Need Real Name
no flags Details
File: core_backtrace (1.81 KB, text/plain)
2021-12-26 16:40 UTC, Need Real Name
no flags Details
File: cpuinfo (2.49 KB, text/plain)
2021-12-26 16:40 UTC, Need Real Name
no flags Details
File: dso_list (577 bytes, text/plain)
2021-12-26 16:40 UTC, Need Real Name
no flags Details
File: environ (5.77 KB, text/plain)
2021-12-26 16:40 UTC, Need Real Name
no flags Details
File: exploitable (82 bytes, text/plain)
2021-12-26 16:40 UTC, Need Real Name
no flags Details
File: limits (1.29 KB, text/plain)
2021-12-26 16:40 UTC, Need Real Name
no flags Details
File: maps (3.85 KB, text/plain)
2021-12-26 16:40 UTC, Need Real Name
no flags Details
File: mountinfo (2.99 KB, text/plain)
2021-12-26 16:40 UTC, Need Real Name
no flags Details
File: open_fds (164 bytes, text/plain)
2021-12-26 16:40 UTC, Need Real Name
no flags Details
File: proc_pid_status (1.40 KB, text/plain)
2021-12-26 16:40 UTC, Need Real Name
no flags Details

Description Need Real Name 2021-12-26 16:40:32 UTC
Description of problem:
The mail file seems to have photographs that are not properly delimited (at least according to mairix)
and the database construction fails. It appears to be trying to index every single number and latter
after a certain point.

Version-Release number of selected component:
mairix-0.24-10.fc34

Additional info:
reporter:       libreport-2.15.2
backtrace_rating: 4
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-org.gnome.Terminal.slice/vte-spawn-77c2fff6-3140-49cb-8b78-a13815e44fb2.scope
cmdline:        mairix --unlock
crash_function: make_nvp
executable:     /usr/bin/mairix
journald_cursor: s=e4fcadf4b66a46d5a71a0a9f5369a04e;i=6e535;b=4a16edbb690344a287b14af7590a95e3;m=3a3d801b6b;t=5d40f2d60b9e0;x=26c6564028dca3e1
kernel:         5.15.10-100.fc34.x86_64
rootdir:        /
runlevel:       N 5
type:           CCpp
uid:            1000

Truncated backtrace:
Thread no. 1 (8 frames)
 #0 make_nvp at /usr/src/debug/mairix-0.24-10.fc34.x86_64/nvp.c:279
 #1 do_attachment at /usr/src/debug/mairix-0.24-10.fc34.x86_64/rfc822.c:786
 #2 do_multipart at /usr/src/debug/mairix-0.24-10.fc34.x86_64/rfc822.c:904
 #3 do_body at /usr/src/debug/mairix-0.24-10.fc34.x86_64/rfc822.c:697
 #4 data_to_rfc822 at /usr/src/debug/mairix-0.24-10.fc34.x86_64/rfc822.c:1056
 #5 make_rfc822 at /usr/src/debug/mairix-0.24-10.fc34.x86_64/rfc822.c:1435
 #6 scan_new_messages at /usr/src/debug/mairix-0.24-10.fc34.x86_64/db.c:755
 #7 update_database at /usr/src/debug/mairix-0.24-10.fc34.x86_64/db.c:1085

Comment 1 Need Real Name 2021-12-26 16:40:35 UTC
Created attachment 1847820 [details]
File: backtrace

Comment 2 Need Real Name 2021-12-26 16:40:36 UTC
Created attachment 1847821 [details]
File: core_backtrace

Comment 3 Need Real Name 2021-12-26 16:40:37 UTC
Created attachment 1847822 [details]
File: cpuinfo

Comment 4 Need Real Name 2021-12-26 16:40:38 UTC
Created attachment 1847823 [details]
File: dso_list

Comment 5 Need Real Name 2021-12-26 16:40:39 UTC
Created attachment 1847824 [details]
File: environ

Comment 6 Need Real Name 2021-12-26 16:40:40 UTC
Created attachment 1847825 [details]
File: exploitable

Comment 7 Need Real Name 2021-12-26 16:40:40 UTC
Created attachment 1847826 [details]
File: limits

Comment 8 Need Real Name 2021-12-26 16:40:41 UTC
Created attachment 1847827 [details]
File: maps

Comment 9 Need Real Name 2021-12-26 16:40:42 UTC
Created attachment 1847828 [details]
File: mountinfo

Comment 10 Need Real Name 2021-12-26 16:40:43 UTC
Created attachment 1847829 [details]
File: open_fds

Comment 11 Need Real Name 2021-12-26 16:40:44 UTC
Created attachment 1847830 [details]
File: proc_pid_status

Comment 12 Need Real Name 2022-04-08 19:13:11 UTC
*** Bug 2073552 has been marked as a duplicate of this bug. ***

Comment 13 Miroslav Lichvar 2022-04-12 10:31:13 UTC
I was able to reproduce a crash around that place in make_nvp(). I'll submit a patch upstream.

Comment 14 Miroslav Lichvar 2022-04-20 08:07:35 UTC
Upstream PR: https://github.com/vandry/mairix/pull/31

Comment 15 Miroslav Lichvar 2022-04-26 13:45:25 UTC
This should be now fixed upstream. It seems there are other important fixes in the repository, so I'll update to a git snapshot.

Comment 16 Fedora Update System 2022-04-26 16:39:49 UTC
FEDORA-2022-6685a6c887 has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2022-6685a6c887

Comment 17 Fedora Update System 2022-04-26 16:40:12 UTC
FEDORA-2022-9df720d823 has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2022-9df720d823

Comment 18 Fedora Update System 2022-04-26 22:01:38 UTC
FEDORA-2022-9df720d823 has been pushed to the Fedora 36 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2022-9df720d823`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-9df720d823

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

Comment 19 Fedora Update System 2022-04-27 09:31:38 UTC
FEDORA-2022-6685a6c887 has been pushed to the Fedora 35 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2022-6685a6c887`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-6685a6c887

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

Comment 20 Fedora Update System 2022-05-04 13:51:37 UTC
FEDORA-2022-6685a6c887 has been pushed to the Fedora 35 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 21 Fedora Update System 2022-05-07 04:32:38 UTC
FEDORA-2022-9df720d823 has been pushed to the Fedora 36 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.