LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-01-2004, 11:08 PM   #1
jcase008
LQ Newbie
 
Registered: Jul 2004
Posts: 3

Rep: Reputation: 0
Question Diagnosing Deadlock


I have been using linux now for the last 8 years, and recently ran into a situation where I am stumped. It looks like wine (and other programs at random times) deadlocks. The symptoms are:

The wine process does not finish execution.
ps will hang (on a read( ) of /proc/<deadlocked process>/stat)
system cannot be shut down cleanly
wine process cannot be killed

strace wine shows
mkdir("/home/me/.wine-Y1SaMs", 0777) = 0
write(2, "wine: creating configuration dir"..., 61wine: creating configuration directory '/home/me/.wine'...
) = 61
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x4019eac8) = 2289
waitpid(2289,

and stops

This is with yesterday's (29 June 2004) wine CVS. Same thing happens with CVS from 5 May 04, and 1 other prior version (have not checked others).

There is no output to /var/log describing the event. The rest of the system continues to function normally.

This does not seem to be a hardware problem. There are no hardware related symptoms in Linux, and Win2K operates 'as expected.'

My questions are:
Is this deadlock or something else?
What steps should I take to start troubleshooting?
If you have experienced ps hanging, why did it happen and what did you do to fix it?
 
Old 07-01-2004, 11:15 PM   #2
jcase008
LQ Newbie
 
Registered: Jul 2004
Posts: 3

Original Poster
Rep: Reputation: 0
BTW

By the way, this is in Mandrake 10, with:
Mandrake kernel 2.4.25-5mdk
gcc 3.3.2
wine CVS 20040615 (and other programs)
Latest Mandrake updates
and so on
 
Old 07-02-2004, 12:39 AM   #3
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
One of the first things I do when confronted by this is to punch the NumLock key and see if the LED on the keyboard changes state. If it's stuck, I cry 'hardware foul'

If something in wine is killing your X session then things are gonna be a bit greasy. What's your load when this happens - can you get a console and get the results from 'uptime' or see what's running in 'top'?
 
Old 07-03-2004, 09:09 PM   #4
jcase008
LQ Newbie
 
Registered: Jul 2004
Posts: 3

Original Poster
Rep: Reputation: 0
The computer continues to operate normally (except for the ps thing). Numlock flashes, the X session still works, I can even start different programs. It's only 1 process that hangs. The rest of the hardware functions normally.

top, ps, ktop, even an ls of /proc/2177 (example PID) hang. So I can't get a complete list, but I will recreate the error, and post the process list just before the hang. But anything that tries to read("/proc/2177/stat") will hang. strace of the PID before execution shows this.

I can ^C out of strace, but the process cannot be killed.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Timer Deadlock problem in timer_create and delete_timer nkk4u Programming 0 04-15-2005 02:10 AM
I need some help diagnosing a problem... guitargeek Mandriva 3 11-23-2003 04:16 PM
Deadlock, cdrecord/cdrdao, SCSI emu issue? clip Linux - General 1 10-17-2003 08:17 PM
How do I escape mysql RPM erase deadlock ?? tuka Linux - Newbie 1 09-06-2003 10:54 PM
deadlock rajani Programming 0 03-11-2002 06:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration