Solved

panic: lock_set

Posted on 1997-02-22
1
368 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
Comment Utility
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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Decoding 32 bit binary streams 6 29
Separate into files by filename 12 66
zeroMAx challenge 20 76
Line meaning 9 75
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: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

762 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now