Welcome to Soft32 Linux Forums!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Futex Wait Called

 
   Soft32 Home -> Linux -> App Development RSS
Next:  Processing of linux-2.6_2.6.26-19lenny1_i386.chan..  
Author Message
pandi

External


Since: Oct 22, 2009
Posts: 1



(Msg. 1) Posted: Thu Oct 22, 2009 8:44 pm
Post subject: Futex Wait Called
Archived from groups: comp>os>linux>development>apps (more info?)

I am working on fedora core 7, kernel version 2.6.21, gcc version
4.1.2. I have my user space application which communicate with my char
driver using write and read system calls. I have a thread in
application to send data to driver and concurrently a signal handler
(user space) is register. write calls is invoking continuously and
read call is also invoking continuously on notification from driver.
Here am facing a problem of "futex_wait" at one time. Even though my
user space application has no mutex locking, FUTEX_WAIT is called and
nothing proceeds after this.

I got below lines form strace of my process and always getting lock at
same address.

--- SIGRT_15 (Real-time signal 13) @ 0 (0) ---
futex(0x4aa700b0, FUTEX_WAIT, 2, NULL

please guide me to solve this issue or what could be reason for above
things.

if need any more info, i will give u.
Back to top
Login to vote
Christof Meerwald

External


Since: Oct 26, 2009
Posts: 1



(Msg. 2) Posted: Mon Oct 26, 2009 3:20 pm
Post subject: Re: Futex Wait Called [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Thu, 22 Oct 2009 20:44:17 -0700 (PDT), pandi wrote:
> I am working on fedora core 7, kernel version 2.6.21, gcc version
> 4.1.2. I have my user space application which communicate with my char
> driver using write and read system calls. I have a thread in
> application to send data to driver and concurrently a signal handler
> (user space) is register. write calls is invoking continuously and

Note that the set of functions your are allowed to use in a signal handler
is very limited (i.e. only async signal safe functions). To me it looks like
you are trying to call a non async signal safe function which causes the
problem.

Can you show use the code for the signal handler?


Christof

--
http://cmeerw.org sip:cmeerw at cmeerw.org
mailto:cmeerw at cmeerw.org xmpp:cmeerw at cmeerw.org
Back to top
Login to vote
Display posts from previous:   
Related Topics:
How can i register a link protocol for browsers - I want to add an action to the system so that every time a user clicks in a link with for example ..

storing the data in ln2440 target board memory - hai.. i using the target board ln2440sbc..and linux OS.. (16Mb flash and 32Mb sdram) i have cross compiled and porte...

GTK run error - hi i had created one same application in glad interface designer with c option.the n i compiled the same after that i....

C++ -> mplayer, stdin, stdout, popen / fork / pipe... - Hello everybody. I tried to work this out on my own for about 6 hours non-stop now and I just don't get it working.......

[gentoo-user] how does a pipe work? Which process wait for.. - Hello. This might be OT but I am pretty interested in this and being unlucky not able to find a real in-depth..

[patch] futex: restartable futex_wait - LTP test sigaction_16_24 fails, because it expects sem_wait to be restarted if SA_RESTART is set. sem_wait is..
       Soft32 Home -> Linux -> App Development All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Categories:
 Windows
  Linux
 Mac
 PDA


[ Contact us | Terms of Service/Privacy Policy ]