Would gatekeeper help review this patch?
https://bugs.open64.net/show_bug.cgi?id=766
Nystrom alias issue: deadlock in nystrom alias processInito

Nystrom has sig fault when a dead lock happens in process_inito.

In following case, the variable is initialized with a pointer to itself.

static struct tag1 { struct tag1 *next; } s1 = {&s1};

This happens because, when recursively process initialized variables,
variable is marked processed after it is processed.


Fix is mark the variable is processed before call processInitValues, avoid
cyclic initialization dead lock.

Regards
Shi ,Hui

Attachment: bug766.patch
Description: Binary data

------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Open64-devel mailing list
Open64-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/open64-devel

Reply via email to