Bug 11075 - KDM/XDM + FreeBSD-4.1 generates weird problems.
Summary: KDM/XDM + FreeBSD-4.1 generates weird problems.
Status: CLOSED FIXED
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: 1.0
Platform: unspecified Other
: NOR grave
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-09-19 05:33 UTC by Unknown
Modified: 2002-09-16 14:43 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description pschmied 2000-09-19 05:24:44 UTC
(*** This bug was imported into bugs.kde.org ***)

Package: kwrited
Version: 2.0.0 (KDE 1.94 >= 20000911)
Severity: grave

I start kde 2.0 final beta via "startx" and everything works great. I start kde from xdm or kdm and it generally sucks.  I'm inittially greeted with kwrited crashing and then my konsole crashes as soon as I load it.  This only happens when I start with kdm or xdm not with "startx."
I hope this helps.  Sorry I could not generate a backtrace.  That hangs too under kdm / xdm login sessions.

-Peter
Comment 1 Mike Oliver 2000-10-19 20:48:59 UTC
I experienced a similar problem on my FreeBSD 4.1.1 system with
XFree86 4.0.1. kwrited crashes upon startup with a SIGABRT; the
same thing happens if konsole or konqueror are started from the
klicker.

The crashes occur when the programs are run without being attached
to a terminal for instance from an .xsession file.  When kwrited
konsole or konqueror are started from an xterm they run without
problems.

The crashes trace to TEPty::makePty. Specifically the abort() is
triggered on lines 438 and 439 of TEPty.C:

  if (! (str_ptr=ttyname(0)) ) {
    abort();

The crashes went away when I made the following substitution:

  if (! (str_ptr=ttyname(fd)) ) {
    abort();

I have no idea what this breaks but it solves my problem.  The
utmp stuff doesn't work at all under FreeBSD so perhaps it would
be better to just comment out this part in FreeBSD for now if this
substitution produces incorrect behaviour.
Comment 2 Chris Machemer 2001-04-28 01:08:48 UTC
This is a multi-part message in MIME format.

------=_NextPart_000_001F_01C0CF5E.4067BDF0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Trying to clean up the bug logs a bit.

If any of these things are still problems by all means submit a new repor=
t.

Chris Machemer
machey@ptd.net


------=_NextPart_000_001F_01C0CF5E.4067BDF0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2462.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Trying to clean up the bug logs a bit.</FO=
NT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>If any of these things are still problems=
 by all=20
means submit a new report.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Chris Machemer</FONT></DIV>
<DIV><FONT face=3DArial size=3D2><A=20
href=3D"mailto:machey@ptd.net">machey@ptd.net</A></FONT></DIV>
<DIV>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_001F_01C0CF5E.4067BDF0--