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.

Debian etch with 2.6.15.1 kernel there is no crash.

The thing to try would be strace and/or gdb to debug the program and see
where it crashes or enable coredumps and gdb the resulting coredump.

Baruch

=================================================================
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