On Friday 03 March 2006 20:36, Baruch Even wrote: > 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. >
Thanks for letting me know. > 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. The problem is that when running under strace or gdb the program does not crash... ;-) Anyway, I filed a bug report for it in the Mandriva Bugzilla: http://qa.mandriva.com/show_bug.cgi?id=21433 If any Mandriva'ers here can try to reproduce the bug, and comment on the bug report, that would be great. Regards, Shlomi Fish --------------------------------------------------------------------- Shlomi Fish [EMAIL PROTECTED] Homepage: http://www.shlomifish.org/ 95% of the programmers consider 95% of the code they did not write, in the bottom 5%. ================================================================= 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]
