kde crashing when running dosemu

Merle Reine merle.reine at gmail.com
Fri Jan 26 01:28:15 GMT 2007


I just recently rolled out FC6 into 150 stores and we run a java app to
communicate with the cash registers at our restaurants.

At the end of the java program, I call dosemu to run an executable that
prints out a report and allows the store manager to view sales information,
etc.

when I run the script calling java and then dosemu, on some random number of
times running the script, kdeinit crashes and reboots.
I have kde set to autologin for the stores to a non-root user.  However,
upon kde crash, it comes up to the login prompt.  the store can hit enter
and it bypasses this login prompt.  Normally a reboot or fresh boot up never
prompts for a login.

I guess I have two problems to solve.

1.  Why does kde keep crashing?
2.  When it does crash, why does kde not autologin?

Below is the script we are running that causes the crash:

##################################################################
#!/bin/bash
#
# the USB ~ ttyS number is one less than the -p number!
/usr/bin/sudo /bin/ln -sf /dev/ttyUSB2 /dev/ttyS2
#
cd /u/javacomm/poll700/a570dist
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:./librxtxSerial.so
rm STATUS.OK
rm *.DAT
rm /u/soupsys/terminal.dat
rm /u/soupsys/plu.dat
rm /u/soupsys/deptment.dat
rm /u/soupsys/regdata.prn
rm /u/soupsys/regrpt.prn
#
/usr/bin/java -cp
poll700.jar:commons-logging-1.0.4.jar:jargs.jar:log4j-1.2.11.jar:jargs.jar:RXTXcomm.jar
com.gardenfresh.poll700.Poll700 -g A570 -l log4j.properties -c terminal -p 3
-b 9600 $4 $5 $6 $7 $8 $9 > /tmp/xreg
if [ -f "STATUS.OK" ]
then
  /usr/bin/java -cp
poll700.jar:commons-logging-1.0.4.jar:jargs.jar:log4j-1.2.11.jar:jargs.jar:RXTXcomm.jar
com.gardenfresh.poll700.Poll700 -g A570 -l log4j.properties -c dept -p 3 -b
9600 $4 $5 $6 $7 $8 $9 >> /tmp/xreg
  /usr/bin/java -cp
poll700.jar:commons-logging-1.0.4.jar:jargs.jar:log4j-1.2.11.jar:jargs.jar:RXTXcomm.jar
com.gardenfresh.poll700.Poll700 -g A570 -l log4j.properties -c plu -p 3 -b
9600 $4 $5 $6 $7 $8 $9 >> /tmp/xreg
  cp -f TERMINAL.DAT /u/soupsys/terminal.dat
  cp -f PLU.DAT /u/soupsys/plu.dat
  cp -f DEPTMENT.DAT /u/soupsys/deptment.dat
  /usr/bin/sudo /usr/bin/zip `date +%F%T`-x2 *.DAT
  cd /u/soupsys
  touch a5x2.cfg
###########################################
#  Everything above this point completes successfully every time.
#  Randomly, it will kill KDE when its gets to : xdosemu soup.exe
#  I tried running dosemu soup.exe without x component and it still crashes
randomly.  perhaps 1 in 40 or sometimes
#  it crashes every other time we run the program
###########################################
  xdosemu soup.exe
  lp regrpt.prn
fi
################################################################


That being said,  I understand it must be dosemu causing this but I can not
figure out why.  Oftentimes, I will get all the way through what I am doing
with the script, it runs xdosemu, then when I go to print the report, it
will crash X.

xsession error attached from last crash wher it is prompting user to login.
Soup.exe is just a dos based program that parses text files and lets user
see financial info, user schedule, etc.  It is a holdover from the
switchover to linux.  Previous to last week, all stores used dos based 286
computers so they were used to using the dos program and we continued it.
It is not an option at this time to get rid of it so I need to find out why
the random crashes of X/KDE.

/home/soup/.xsession-errors below:

X Error: BadWindow (invalid Window parameter) 3
  Major opcode:  19
  Minor opcode:  0
  Resource id:  0x2000007
X Error: BadWindow (invalid Window parameter) 3
  Major opcode:  19
  Minor opcode:  0
  Resource id:  0x2600001
ICE default IO error handler doing an exit(), pid = 16265, errno = 0
DCOPClient::attachInternal. Attach failed Could not open network socket
DCOPClient::attachInternal. Attach failed Could not open network socket
ERROR: Couldn't attach to DCOP server!
startkde: Shutting down...
Warning: connect() failed: : Connection refused
Error: Can't contact kdeinit!
unix_connect: can't connect to server
(unix:/tmp/ksocket-soup/store000.gardenfreshcorp.com-3bbd-45b92526)
startkde: Running shutdown scripts...
startkde: Done.

The lines:
X Error: BadWindow (invalid Window parameter) 3
  Major opcode:  19

Continue for hundreds of lines in .xsession-errors file.

Any help appreciated.  dosemu camp says it is a KDE issue.  I don't really
care, just need it fixed.  Any more info I can provide, I will gladly
provide.

I see the following in /var/log/messages at time of crash:
Jan 25 16:45:18 store000 kdm_greet[19883]: Can't open default user face
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde/attachments/20070125/ea565eaf/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xsession-errors
Type: application/octet-stream
Size: 8883 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde/attachments/20070125/ea565eaf/attachment.obj>
-------------- next part --------------
___________________________________________________
This message is from the kde mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.


More information about the kde mailing list