Solved

panic: lock_set

Posted on 1997-02-22
1
380 Views
Last Modified: 2013-12-26
I have a program running on a Sparc 20 machine with Solaris 2.4 (SunOS 5.4) and using Motif 1.2.?.  I am using some of the Timer Callbacks with Motif as well as some serial, socket, and timer "interrupt" routines that we have developed.  I have received the following error mainly after letting the program run overnight:

      panic: lock_set: lock held and only one CPU

This shows up in the /usr/adm/messages after the hard reboot when such an error occurs.  What I am looking for is what would cause such an error.  I am not doing any locking on my own so it could be internal to the libraries I am using.  This was a problem early on in the project and is not repeatable nor consistent.  Now that the project is coming to an end, I would like to get this issue resolved.
0
Comment
Question by:mkcarter
1 Comment
 
LVL 2

Accepted Solution

by:
lockhart earned 100 total points
ID: 1292268
Your timer interrupt routines may be the culprits.  Interrupts are not completely safe when used with X.  If you want to do something on a periodic basis, you should use XtAppAddTimeOut() so that the main event loop is your mechanism for everything.  

This shouldn't have caused a panic, but then I don't have enough information from your question to judge.

Mike
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
mixString challenge 36 130
matchUp  challenge 6 68
java ^ examples 8 69
ASP.NET C# MessageBox.Show Showing a modal dialog box or form when the application ... 2 160
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

792 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question