[prev in list] [next in list] [prev in thread] [next in thread] 

List:       evms-devel
Subject:    [Evms-devel] [ evms-Bugs-916984 ] evmsgui hangs trying to write to engine log after fork
From:       "SourceForge.net" <noreply () sourceforge ! net>
Date:       2004-03-16 0:01:59
Message-ID: E1B321v-0007qd-00 () sc8-sf-web4 ! sourceforge ! net
[Download RAW message or body]

Bugs item #916984, was opened at 2004-03-15 16:01
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=383342&aid=916984&group_id=25076

Category: Engine 
Group: Version 2.0
Status: Open
Resolution: None
Priority: 5
Submitted By: Steve Landherr (sloneycho)
Assigned to: Steve Dobbelstein (steved62)
Summary: evmsgui hangs trying to write to engine log after fork

Initial Comment:
As part of evms_open_engine(), the filesystem plugins 
are loaded.  Many of these plugins attempt to run their 
mkfs program with the -V option.  This is done by 
forking a new process, then execing the mkfs program.

After the fork, the child process has no guarantee what 
state its pthread_mutexes are in.  If the fork occured at 
just the right moment, the mutex may be in a locked 
state.

Because of this, in do_fork_and_execvp(), the child 
process either must not call the LOG* functions, or must 
reinitialize the log_mutex before doing so.

See the man page for pthread_atfork() for additional 
details on fork semantics in pthread processes.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=383342&aid=916984&group_id=25076


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Evms-devel mailing list
Evms-devel@lists.sourceforge.net
To subscribe/unsubscribe, please visit:
https://lists.sourceforge.net/lists/listinfo/evms-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic