From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5)
Description of problem:
sudo -u auser -s -H
dialog gives a segmentation fault
I'm guessing it can't access the terminal (permissions problem?)
the segmentation fault is presumably a dialog problem. a permission
denied message would be more friendly
the permissions might be an sudo problem?
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.sudo -u auser -s -H
2.dialog --yesno test 20 10
Actual Results: Segmentation fault
Expected Results: a dialog box
running from gdb gives-
GNU gdb Red Hat Linux (5.1-1)
Copyright 2001 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and
welcome to change it and/or distribute copies of it under certain
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for
This GDB was configured as "i386-redhat-linux"...(no debugging symbols
(gdb) run --yesno test 20 10
Starting program: /usr/bin/dialog --yesno test 20 10
(no debugging symbols found)...
Program received signal SIGSEGV, Segmentation fault.
fputc (c=27, fp=0x0) at fputc.c:38
38 fputc.c: Permission denied.
seems to be s.th. like /dev/pts/[0-9]+ which /proc/self/fd/1 is
pointing to... so, you have to chown this before.
yes, this seems to be a problem of dialog..