Bug 109854 - Segmentation fault if used after sudo -u auser -s -H
Segmentation fault if used after sudo -u auser -s -H
Status: CLOSED CURRENTRELEASE
Product: Red Hat Enterprise Linux 2.1
Classification: Red Hat
Component: dialog (Show other bugs)
2.1
i686 Linux
medium Severity medium
: ---
: ---
Assigned To: Harald Hoyer
Ben Levenson
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2003-11-12 09:25 EST by Neil Prockter
Modified: 2007-11-30 17:06 EST (History)
0 users

See Also:
Fixed In Version: 1.0.20040731-3
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2005-09-16 08:49:34 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Neil Prockter 2003-11-12 09:25:47 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5)
Gecko/20031007 Firebird/0.7

Description of problem:
after using

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):
dialog-0.9a-5

How reproducible:
Always

Steps to Reproduce:
1.sudo -u auser -s -H
2.dialog --yesno test 20 10
3.
    

Actual Results:  Segmentation fault

Expected Results:  a dialog box

Additional info:

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
you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for
details.
This GDB was configured as "i386-redhat-linux"...(no debugging symbols
found)...
(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.
        in fputc.c
Comment 1 Harald Hoyer 2004-01-28 09:52:32 EST
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..

Note You need to log in before you can comment on or make changes to this bug.