<<< Date Index >>>     <<< Thread Index >>>

Re: Segmentation fault from mutt-1.5.17 with SMTP



* Mon Nov 10 2008 Gary Johnson <garyjohn@xxxxxxxxxxxxxxx>
> but when I try to pipe a message to mutt's stdin, I get a 
> segmentation fault, e.g.,
> 
>    $ echo test | mutt -s test garyjohn
(snip)
>    Program received signal SIGSEGV, Segmentation fault.
>    0x080b1f1b in mutt_smtp_send (from=0x0, to=0x928bbd8, cc=0x0, bcc=0x0, 
> msgfile=0xbfe50020 "/home/garyjohn/tmp/mutt/mutt-whiffle-3324-21584-2", 
> eightbit=0)
>        at smtp.c:232
>    232         ret = snprintf (buf, sizeof (buf), "MAIL FROM:<%s>",
>    (gdb) l
>    227         if (( ret = smtp_open (conn)))
>    228           break;
>    229         FREE (&AuthMechs);
>    230     
>    231         /* send the sender's address */
>    232         ret = snprintf (buf, sizeof (buf), "MAIL FROM:<%s>",
>    233                         EnvFrom ? EnvFrom->mailbox : from->mailbox);

This has already been fixed:

1970-01-01 00:00 +0000  Brendan Cully  <brendan@xxxxxxxxxx> (a2e8f6fab8d3)

        * smtp.c: Test that envelope from or from is set before attempting
        SMTP delivery. Closes #3079.

Oh wait, since over 38 years ago?

-- 
tamo