AnsweredAssumed Answered

ioctl(6, 0x37 <unfinished ...>     killed by SIGSEGV

Question asked by Chetna Kharkar on Apr 22, 2015
Latest reply on Apr 27, 2015 by CarlosCasillas

Hi,

 

I am using a signal handler and a threads thread1 & thred2 running continuously .

 

In my signal handler I have just set the flag & in thread checking the flag to take action on it accordingly.

 

Also to display the status I have a display driver is running in main (Not in threads) .

After some time of execution I am getting the error given below .

open("/dev/klcd", O_WRONLY|O_NONBLOCK) = 6

write(1, "KLCD IOCTL Option: Print With Sp"..., 50) = 50

ioctl(6, 0x37, 0x7e8a2bb8) = 0

close(6) = 0

write(1, "KLCD User level Test Program \n", 30) = 30

write(1, "\n", 1) = 1

write(1, " val val in main fun 1503.803101"..., 64) = 64

write(1, "ioctl command debug: 7 \n", 24) = 24

open("/dev/klcd", O_WRONLY|O_NONBLOCK) = 6

write(1, "KLCD IOCTL Option: Print With Sp"..., 50) = 50

ioctl(6, 0x37 <unfinished ...>

+++ killed by SIGSEGV +++

 

I thing this is because my Kernel space lcd display  driver gets interrupted by signal alarm ,it is not executing the ioctl call completely .Please help hpw to recover from this error .

 

I am using Linux kernel 3.12 .

Outcomes