?
Solved

panic: lock_set

Posted on 1997-02-22
1
Medium Priority
?
401 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 2

Accepted Solution

by:
lockhart earned 200 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

Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

Question has a verified solution.

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

Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

719 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