lkml.org 
[lkml]   [1996]   [Apr]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRTC driver bug in 1.3.91
(Sorry, one of my disks with 1.3.95 had a CRC error)
In 1.3.91 the driver for /dev/rtc has a rather serious bug:

I had enabled periodic interrupts for a never ending loop.
Unfortunately I had a programming error in the program that made me
hit ^C. The program really stopped, but I wasn't able to successfully
start it again. Although I checked the error codes in my program, no
errors were signalled. I just seemed that no interrupts are delivered
to the program (i.e. read() from /dev/rtc lasts forever).
"ps -l" indicates that the process is blocked on "rtc_interrupt".

Roughly browsing the code showed that there's one pair with
save_flags/restore_flags, but without cli() between. Maybe it's
related, maybe it's not.

In fact I assume that upon termination of a process the open files
are closed (such as /dev/rtc). Maybe there's some code missing that
does a proper cleanup.

Ulrich


\
 
 \ /
  Last update: 2005-03-22 13:37    [W:0.066 / U:0.456 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site