----- Original Message ----- 
From: "Boris Ratner" <[EMAIL PROTECTED]>
To: "Linux-IL" <[EMAIL PROTECTED]>
Sent: Friday, June 04, 2004 5:08 AM
Subject: mail utility segfault on sid


> Hi List!
>
> I have a weird segfault when i'm running "mail" or "mailx" .
> I use debian  sid  whith mailutils 0.4+20040414-4 installed.
> running mail under "ltrace" shows that the segfault happens after a
> getenv("LC_ALL")
> call.
> My LC_ALL is not set.
> I wrote a simple C code to call getenv("LC_ALL") - no error occured the
> function returned "" (empty).
> If i set LC_ALL and then run mail or mailx  evrything works fine.
>
> Could you tell me what would be the right thing to do next?
>
> kind regards,
> Boris Ratner.
>
>

hey,
most likely it segfaults because mail does getenv ("LC_ALL") without
checking if it returns NULL, and then dereference the returned pointer
(which happens to be NULL if LC_ALL isnt set), i didnt bother to look at the
code though.
Idan.


=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to