Solved

panic: lock_set

Posted on 1997-02-22
1
374 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Login Script to Copy Folders 12 35
Best tools for Backup and restore of Wordpress site 6 57
if loop in java 3 139
ShiftLeft challenge 21 80
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…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

806 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