Bug 1113617 - mailx segfaults on empty "from" setting
Summary: mailx segfaults on empty "from" setting
Alias: None
Product: Fedora
Classification: Fedora
Component: mailx
Version: 22
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
Assignee: Nikola Forró
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2014-06-26 13:59 UTC by Filip Krska
Modified: 2015-08-26 17:49 UTC (History)
2 users (show)

Fixed In Version: 12.5-15.fc22
Doc Type: Bug Fix
Doc Text:
Clone Of: 1113611
Last Closed: 2015-08-26 04:34:09 UTC
Type: Bug

Attachments (Terms of Use)
patch for empty from (1.14 KB, patch)
2014-07-24 10:00 UTC, Jan Chaloupka
no flags Details | Diff

Description Filip Krska 2014-06-26 13:59:22 UTC
mailx-12.5-10.fc20.x86_64 reproduces as well

+++ This bug was initially created as a clone of Bug #1113611 +++

mailx-12.5-11.el7.x86_64 reproduces as well

+++ This bug was initially created as a clone of Bug #1113592 +++

Description of problem:

mailx segfaults if

set from=

or e.g.

set from= some.put.after.a.space.com

line is present in /etc/mail.rc

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. put lines
set smtp=smtp.redhat.com
set from=

to /etc/mail.rc

2. run
# mailx -s Test fkrska

Actual results:
Segmentation fault

Expected results:

mail sent

Additional info:

Patch proposed (mailx silently sends email with From: MAILER-DAEMON). Perhaps even more desired behavior would be to detect empty "from" (which has no use case and often caused by user mistakenly put space after "=") and print warning on stderr.

Comment 1 Jan Chaloupka 2014-07-24 10:00:26 UTC
Created attachment 920490 [details]
patch for empty from

Comment 3 Dmitry Butskoy 2014-08-02 13:26:52 UTC
The actual upstream for mailx is
(or see nail.sf.net for more info).

Comment 4 Jan Chaloupka 2014-08-04 05:35:31 UTC
Thank you Dmitry. I found this link but without mailing list.

From http://heirloom.sourceforge.net/mailx.html:

Mailx development is discussed on the nail-devel mailing list. All people interested in discussing or coding features for future releases are invited to participate. Bug reports should also be sent to the list. To subscribe to the list or look at the archives, visit <https://lists.sourceforge.net/lists/listinfo/nail-devel>. Currently, only subscribers are allowed to post.

Comment 5 Fedora End Of Life 2015-05-29 12:13:45 UTC
This message is a reminder that Fedora 20 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 20. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '20'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 20 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 6 Filip Krska 2015-06-15 14:10:23 UTC
mailx-12.5-14.fc22.x86_64 still reproduces

Comment 7 Fedora Admin XMLRPC Client 2015-07-13 09:56:46 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 8 Fedora Update System 2015-08-12 09:09:26 UTC
mailx-12.5-17.fc23 has been submitted as an update for Fedora 23.

Comment 9 Fedora Update System 2015-08-12 09:12:05 UTC
mailx-12.5-15.fc22 has been submitted as an update for Fedora 22.

Comment 11 Fedora Update System 2015-08-13 16:58:08 UTC
Package mailx-12.5-15.fc22:
* should fix your issue,
* was pushed to the Fedora 22 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing mailx-12.5-15.fc22'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).

Comment 12 Fedora Update System 2015-08-26 04:34:07 UTC
mailx-12.5-17.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.

Comment 13 Fedora Update System 2015-08-26 17:49:57 UTC
mailx-12.5-15.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, 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.