[Xfce-bugs] [XFCE 0000212]: Session terminates abnormally when session manager tries to reload systray app

xfce-bugs at xfce.org xfce-bugs at xfce.org
Sat Jun 5 14:36:56 CEST 2004


A BUGNOTE has been added to this bug.
=======================================================================
http://bugs.xfce.org/view_bug_page.php?f_id=0000212
=======================================================================
Reporter:                   nick_08150
Handler:                    bmeurer
=======================================================================
Project:                    XFCE
Bug ID:                     0000212
Category:                   general
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     assigned
=======================================================================
Date Submitted:             2004-06-01 11:12 GMT
Last Modified:              2004-06-05 12:36 GMT
=======================================================================
Summary:                    Session terminates abnormally when session manager tries to reload systray app
Description: 
When an application is "running" in the systray (e.g. kxkb) at logout and
the session manager (CVS20040601) tries to restart it at next login, the
session won't start up but terminates (although at a very late state) and
you get back to the login screen. This seems to be the case with any
systray app, so I presume it's a general xfce4-session bug.
=======================================================================

-----------------------------------------------------------------------
 bmeurer - 2004-06-01 15:41 GMT 
-----------------------------------------------------------------------
Ok, weird bug, but easy to fix. The problem is that once the first KDE
application is started, it will run kdeinit (and a bunch of other daemons)
which will also connect to the session manager, though they were not
explicitly started by the sm. This confused xfce4-session and caused a
segfault. Its fixed now, though not yet committed, cause my sandbox is
kind of broken ATM.

Anyway, this is something about KDE thats really annoying. It can cause
several other problems if the kdeinit process itself is managed by the
session manager. Therefore I added the KDE compatibility to xfce4-session
to avoid such problems. Please enable "Launch KDE services on startup" if
you plan to use KDE applications.

-----------------------------------------------------------------------
 bmeurer - 2004-06-01 16:00 GMT 
-----------------------------------------------------------------------
Committed, should be fixed now.

-----------------------------------------------------------------------
 bmeurer - 2004-06-01 17:48 GMT 
-----------------------------------------------------------------------
Ok, Nick, I need your help tracking the problem:

Please set the environment variable XFSM_VERBOSE prior to starting
xfce4-session. Then after the session manager crashed, append the file
~/.xfce4-session.verbose-log to this bug report, so I can have a look at
it. In addition, it'd be helpful if you could compile xfce4-session with
debugging enabled (--enable-debug=full) and send me the backtrace of the
core dump.

-----------------------------------------------------------------------
 nick_08150 - 2004-06-01 21:20 GMT 
-----------------------------------------------------------------------
Hi Benedikt,

sorry I've been so little verbose last time.
The latest CVS version didn't compile out of the box with
--enable-debug=full,
I had to comment out an unused variable (maybe this is intended).
Nevertheless, here comes the output in .xfce4-session.verbose-log, with
--enable-debug=full enabled. 
But I'm afraid the problem is more subtle. I tried session management with
a kde systray app (kxkb) and the formerly mentioned qt-only app (pgcalc2).
When I start kxkb with xfce4 running, the panel freezes/crashes. Hm, well.
I have to kill -s 9 it to restart the panel. After restarting it manually,
kxkb comes up normally, the panel is fully functional. But when I login
next time, the session seems to actually crash, the "Your session has
lasted less than 10 seconds..." message appears.
With pgcalc2 the behaviour is just as I described it in the first bug
report: the "crash" appears very late in the startup process, just when
the session-manager background disappears (so maybe this problem is not
related to xfce4-session only).
Could you please tell my where xfce4-session core-dumps?

### .xfce4-session.verbose-log with kxbd -- start

Session "Default" loaded successfully.

Manager startup continues [Previous Id = None]

ICE connection fd = 6, received NEW CLIENT

ICE connection fd = 6, received REGISTER CLIENT [Previous Id =
11c0a80023000108612061000000025820000]

Manager startup continues [Previous Id =
11c0a80023000108612061000000025820000]

Client Id = 11c0a80023000108612061000000025820000, received SET PROPERTIES
[Num props = 6]
   Name:  Program
   Type:  ARRAY8
   Value: xfwm4
   Name:  UserID
   Type:  ARRAY8
   Value: narend
   Name:  RestartStyleHint
   Type:  CARD8
   Value: 0
   Name:  ProcessID
   Type:  ARRAY8
   Value: 30051
   Name:  CurrentDirectory
   Type:  ARRAY8
   Value: /home/narend
   Name:  _GSM_Priority
   Type:  CARD8
   Value: 20

ICE connection fd = 7, received NEW CLIENT

ICE connection fd = 7, received REGISTER CLIENT [Previous Id =
11c0a80023000108612061100000025820002]

Manager startup continues [Previous Id =
11c0a80023000108612061100000025820002]

Client Id = 11c0a80023000108612061100000025820002, received SET PROPERTIES
[Num props = 6]
   Name:  Program
   Type:  ARRAY8
   Value: xftaskbar4
   Name:  UserID
   Type:  ARRAY8
   Value: narend
   Name:  RestartStyleHint
   Type:  CARD8
   Value: 0
   Name:  ProcessID
   Type:  ARRAY8
   Value: 30054
   Name:  CurrentDirectory
   Type:  ARRAY8
   Value: /home/narend
   Name:  _GSM_Priority
   Type:  CARD8
   Value: 30

ICE connection fd = 8, received NEW CLIENT

ICE connection fd = 8, received REGISTER CLIENT [Previous Id =
11c0a80023000108612061200000025820003]

Manager startup continues [Previous Id =
11c0a80023000108612061200000025820003]

Client Id = 11c0a80023000108612061200000025820003, received SET PROPERTIES
[Num props = 6]
   Name:  Program
   Type:  ARRAY8
   Value: xfdesktop
   Name:  UserID
   Type:  ARRAY8
   Value: narend
   Name:  RestartStyleHint
   Type:  CARD8
   Value: 0
   Name:  ProcessID
   Type:  ARRAY8
   Value: 30056
   Name:  CurrentDirectory
   Type:  ARRAY8
   Value: /home/narend
   Name:  _GSM_Priority
   Type:  CARD8
   Value: 35

ICE connection fd = 9, received NEW CLIENT

ICE connection fd = 9, received REGISTER CLIENT [Previous Id =
11c0a80023000108612328500000295930002]

Manager startup continues [Previous Id =
11c0a80023000108612328500000295930002]

Client Id = 11c0a80023000108612328500000295930002, received SET PROPERTIES
[Num props = 6]
   Name:  Program
   Type:  ARRAY8
   Value: xfce4-panel
   Name:  UserID
   Type:  ARRAY8
   Value: narend
   Name:  RestartStyleHint
   Type:  CARD8
   Value: 0
   Name:  ProcessID
   Type:  ARRAY8
   Value: 30058
   Name:  CurrentDirectory
   Type:  ARRAY8
   Value: /home/narend
   Name:  _GSM_Priority
   Type:  CARD8
   Value: 40

ICE connection fd = 10, received NEW CLIENT

ICE connection fd = 10, received REGISTER CLIENT [Previous Id = None]

### .xfce4-session.verbose-log with kxbd -- end








### .xfce4-session.verbose-log with pgcalc2 -- start

Session "Default" loaded successfully.

Manager startup continues [Previous Id = None]

ICE connection fd = 6, received NEW CLIENT

ICE connection fd = 6, received REGISTER CLIENT [Previous Id =
11c0a80023000108612061000000025820000]

Manager startup continues [Previous Id =
11c0a80023000108612061000000025820000]

Client Id = 11c0a80023000108612061000000025820000, received SET PROPERTIES
[Num props = 6]
   Name:  Program
   Type:  ARRAY8
   Value: xfwm4
   Name:  UserID
   Type:  ARRAY8
   Value: narend
   Name:  RestartStyleHint
   Type:  CARD8
   Value: 0
   Name:  ProcessID
   Type:  ARRAY8
   Value: 30592
   Name:  CurrentDirectory
   Type:  ARRAY8
   Value: /home/narend
   Name:  _GSM_Priority
   Type:  CARD8
   Value: 20

ICE connection fd = 7, received NEW CLIENT

ICE connection fd = 7, received REGISTER CLIENT [Previous Id =
11c0a80023000108612061100000025820002]

Manager startup continues [Previous Id =
11c0a80023000108612061100000025820002]

Client Id = 11c0a80023000108612061100000025820002, received SET PROPERTIES
[Num props = 6]
   Name:  Program
   Type:  ARRAY8
   Value: xftaskbar4
   Name:  UserID
   Type:  ARRAY8
   Value: narend
   Name:  RestartStyleHint
   Type:  CARD8
   Value: 0
   Name:  ProcessID
   Type:  ARRAY8
   Value: 30595
   Name:  CurrentDirectory
   Type:  ARRAY8
   Value: /home/narend
   Name:  _GSM_Priority
   Type:  CARD8
   Value: 30

ICE connection fd = 8, received NEW CLIENT

ICE connection fd = 8, received REGISTER CLIENT [Previous Id =
11c0a80023000108612061200000025820003]

Manager startup continues [Previous Id =
11c0a80023000108612061200000025820003]

Client Id = 11c0a80023000108612061200000025820003, received SET PROPERTIES
[Num props = 6]
   Name:  Program
   Type:  ARRAY8
   Value: xfdesktop
   Name:  UserID
   Type:  ARRAY8
   Value: narend
   Name:  RestartStyleHint
   Type:  CARD8
   Value: 0
   Name:  ProcessID
   Type:  ARRAY8
   Value: 30597
   Name:  CurrentDirectory
   Type:  ARRAY8
   Value: /home/narend
   Name:  _GSM_Priority
   Type:  CARD8
   Value: 35

ICE connection fd = 9, received NEW CLIENT

ICE connection fd = 9, received REGISTER CLIENT [Previous Id =
11c0a80023000108612328500000295930002]

Manager startup continues [Previous Id =
11c0a80023000108612328500000295930002]

Client Id = 11c0a80023000108612328500000295930002, received SET PROPERTIES
[Num props = 6]
   Name:  Program
   Type:  ARRAY8
   Value: xfce4-panel
   Name:  UserID
   Type:  ARRAY8
   Value: narend
   Name:  RestartStyleHint
   Type:  CARD8
   Value: 0
   Name:  ProcessID
   Type:  ARRAY8
   Value: 30599
   Name:  CurrentDirectory
   Type:  ARRAY8
   Value: /home/narend
   Name:  _GSM_Priority
   Type:  CARD8
   Value: 40

ICE connection fd = 10, received NEW CLIENT

ICE connection fd = 10, received REGISTER CLIENT [Previous Id =
11c0a80023000108612363100000301090000]

Manager startup continues [Previous Id =
11c0a80023000108612363100000301090000]

ICE connection fd = 11, received NEW CLIENT

ICE connection fd = 11, received REGISTER CLIENT [Previous Id =
11c0a80023000108612277400000284950002]

Manager startup continues [Previous Id =
11c0a80023000108612277400000284950002]

Manager finished startup, entering IDLE mode now

Client Id = 11c0a80023000108612277400000284950002, received SET PROPERTIES
[Num props = 5]
   Name:  CloneCommand
   Type:  LISTofARRAY8
   Name:  Program
   Type:  ARRAY8
   Value: xterm
   Name:  RestartCommand
   Type:  LISTofARRAY8
   Name:  UserID
   Type:  ARRAY8
   Value: narend
   Name:  ProcessID
   Type:  ARRAY8
   Value: 30604

ICE connection fd = 12, received NEW CLIENT

ICE connection fd = 12, received REGISTER CLIENT [Previous Id = None]


### .xfce4-session.verbose-log with pgcalc2 -- end

-----------------------------------------------------------------------
 bmeurer - 2004-06-05 12:36 GMT 
-----------------------------------------------------------------------
hm, the log looks ok, except for xterm, but xterm is known to be buggy with
session management. xfce4-session dumps a core file to the directory it
was started from (usually your home directory). You may have to rise the
core file limit first (ulimit -c unlimited for sh/ksh/zsh).



More information about the Xfce-bugs mailing list