Bug 662555

Summary: [abrt] mailx-12.5-1.fc13: strlen: Process /bin/mailx was killed by signal 11 (SIGSEGV)
Product: [Fedora] Fedora Reporter: Wendell Baker <wendellcraigbaker>
Component: mailxAssignee: Ivana Varekova <varekova>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 13CC: dmitry, varekova
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Unspecified   
Whiteboard: abrt_hash:ee13a7175023e23443b0b99a6d809e0c69674c68
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-12-13 14:39:03 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: backtrace none

Description Wendell Baker 2010-12-13 06:15:10 UTC
abrt version: 1.1.14
architecture: i686
Attached file: backtrace
cmdline: Mail -v -s testing wbaker
component: mailx
crash_function: strlen
executable: /bin/mailx
kernel: 2.6.34.7-56.fc13.i686.PAE
package: mailx-12.5-1.fc13
rating: 4
reason: Process /bin/mailx was killed by signal 11 (SIGSEGV)
release: Fedora release 13 (Goddard)
time: 1292220726
uid: 500

comment
-----
$ cat example-yahoo.rc
set nss-config-dir=/home/example/nss
set smtp=smtp://plus.smtp.mail.yahoo.com:465
set smtp-auth=login
set smtp-auth-password=PASSWORD
set smtp-auth-user=USERNAME
#set smtp-use-starttls
set ssl-method=tls1
set ssl-verify=ignore
set from USERNAME

I'm unclear what the correct recipe for Y!Mail is actually ...  I have Gmail working (see below).  And I have my Y!Mail Plus working in thunderbird.  So I was trying to get my Y!Mail to work in /usr/bin/Mail by mapping the settings from thunderbird back to the *.rc file settings.

One acquires the nss directory from (arbitrarily) any Mozilla product
$ ls /home/wbaker/.mozilla/eclipse/*.db
/home/wbaker/.mozilla/eclipse/cert8.db
/home/wbaker/.mozilla/eclipse/secmod.db
/home/wbaker/.mozilla/eclipse/key3.db
see Mail(1) where it describes how to copy these files out of any Mozilla product


The scenario reported above works just fine (i.e. does not segfault) with gmail, so the nss files are "fine"
$ cat example-gmail.rc 
set nss-config-dir=/home/example/nss
set smtp=smtp://smtp.gmail.com:587
set smtp-auth=login
set smtp-auth-password=PASSWORD
set smtp-auth-user=USERNAME
set smtp-use-starttls
set ssl-verify=ignore


This crashes in Fedora 10 (mailx-12.4-1.fc10.i386) and Fedora 13 (mailx-12.5-1.fc13.i686)

How to reproduce
-----
1. echo testing | MAILRC=$(pwd)/example-yahoo.rc Mail -v -s "testing" user
see the segfault

Comment 1 Wendell Baker 2010-12-13 06:15:12 UTC
Created attachment 468310 [details]
File: backtrace

Comment 2 Dmitry Butskoy 2010-12-13 14:21:35 UTC
According to the backtrace and the source code, it looks like something related to the "smtp" value (perhaps it is appeared as undefined in the code someway...)

One question: why you use:

set smtp=smtp://plus.smtp.mail.yahoo.com:465

instead of just:

set smtp=smtps://plus.smtp.mail.yahoo.com

(port 465 is the standard port for smtps (smtp over ssl)) ?

Comment 3 Dmitry Butskoy 2010-12-13 14:35:09 UTC
Reproduced under 12.4 as well.

When I drop the line:

set from USERNAME

from the Yahoo config, the segfault is disappeared.

Why you use this line for Yahoo, and do not use something similar for Gmail?

Comment 4 Dmitry Butskoy 2010-12-13 14:39:03 UTC
OOps... :)

You must use:

set from=USERNAME

(you've forgotten the "=" sign).