[Konsole-devel] [Bug 22479] New: hang on startup on HP/UX

bugzilla at kde.org bugzilla at kde.org
Mon Sep 9 11:44:03 UTC 2002


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
  
http://bugzilla.kde.org/show_bug.cgi?id=22479  
           Summary: hang on startup on HP/UX
           Product: konsole
           Version: unspecified
          Platform: All
        OS/Version: HP-UX
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: konsole-devel at kde.org
        ReportedBy: royd at cc.uit.no


(*** This bug was imported into bugs.kde.org ***)

Package:           konsole
Version:           KDE 2.1.0 
Severity:          normal
Installed from:    Compiled From Sources
Compiler:          gcc 2.95.2
OS:                HP/UX
OS/Compiler notes: Not Specified

Konsole never get to the prompt it is hanging in a call to tcgetattr from TEPty:makePty.  Here is a backtrace:

(gdb) bt
#0  0xc013f6f0 in _ioctl_sys ()
#1  0xc0148eb0 in ioctl ()
#2  0xc00b35bc in tcgetattr ()
#3  0xc42bdd60 in TEPty::makePty (this=warning: reading register r5: I/O error
0x0 dev=0x40068246 "/dev/pts/20"
    pgm=0x4003a2b8 "/store/bin/tcsh" args=@0x40068194
    term=0x40068348 "xterm" addutmp=0) at TEPty.C:537
#4  0xc42be300 in TEPty::commSetupDoneC (this=0x40068170) at TEPty.C:612
#5  0xc318ad34 in KProcess::start (this=0x40068170 runmode=NotifyOnExit
    comm=10) at kprocess.cpp:215
#6  0xc42bd29c in TEPty::run (this=0x40068170
    _pgm=0x7b03a26a "/store/bin/tcsh" _args=@0x4006813c
    _term=0x40068348 "xterm" _addutmp=0) at TEPty.C:269
#7  0xc42c8374 in TESession::run (this=0x40068170) at session.C:51
#8  0xc2969a34 in QObject::activate_signal ()
#9  0xc29dff78 in QSignal::activate ()
#10 0xc29f2080 in QSingleShotTimer::event ()
#11 0xc288f504 in QApplication::notify ()
Cannot access memory at address 0x0.

There is an oddity with the initialization of the pty the call to grantpt in TEPty:openPty is successful but doesn't change the ownership of the pty:

47 royd at joseph:~/src/kde2/kdebase-2.1/konsole/> ll /dev/pts/20
crw--w----   1 royd       staff      157 0x000014 Mar 15 09:03 /dev/pts/20 

According to the documentation the gid should be changed to tty by grantpt.  The documentation has a warning about possible problems if the caller has installed a custom signal handler trapping SIGCHLD but I've been experimenting with this with no success.

I also tried to hack the code to enable the use of the konsole_grantpty but that doesn't work either.

Regards
r.



(Submitted via bugs.kde.org)

------- Additional Comments From roy.dragseth at cc.uit.no  2001-05-08 07:33 -------

I finally found the time to track down this one.  It seems to be a
problem with grantpt() on hpux. I'm not 100% sure but just comment
out the HAVE_GRANTPT definition in config.h after running configure
and everything should be hunky dory...

Best regards
Roy.

-- 

  The Computer Center University of Tromsø N-9037 TROMSØ Norway.
      phone:+47 77 64 41 07 fax:+47 77 64 41 00
     Roy Dragseth High Perfomance Computing System Administrator
 Direct call: +47 77 64 62 56. email: royd at cc.uit.no



More information about the konsole-devel mailing list