On Fri, Mar 03, 2006 at 07:00:23PM +0200, Shlomi Fish wrote: > Hi all! > > 1. Save the script that is attached to this message. > > 2. **As root**, run it in an empty directory. > > 3. As an under-privileged user, enter this directory and type "./prog". > > Result: the program segfaults before printing the "Msg2". My question is - > why? I should note that running the same program as root does not cause a > segfault. > > I'm using Mandriva 2006 on a P4-2.4GHz system with kernel 2.6.16-rc5. > > This code was extracted from the gringotts encrypted notes manager.
Not replicated here. However what happens if you choose other locales? (possibly non-installed ones)? How about setlocale() to just one component? LC_CTYPE? LC_TIME? LC_MESSAGES? LC_COLLATE ? -- Tzafrir Cohen | [EMAIL PROTECTED] | VIM is http://tzafrir.org.il | | a Mutt's [EMAIL PROTECTED] | | best ICQ# 16849755 | | friend ================================================================= 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]
