mirror_corosync/test
Jan Friesse 8605bbc7b2 Fix coroipcc linking
Fixes rhbz#499918
	
Functions from ckpt library (like aCkptCheckpointOpen,
saCkptSectionIterationInitialize, ...) internally uses corosync functions
reply_receive, reply_receive_in_buf, ... This functions are included in
coroipcc.c source file and uses global static variable ipc_hdb.

Without patch, coroipcc is linked to shared library (libcoroipcc.so) AND linked
with every corosync libraries (like cpg, ....), so global variable ipc_hdb is
included not only in libcoroipcc.so, but also in libcpg.so, ...

dlm_controld has function retrieve_plocks, and whole binary is linked with
libcoroipcc and libcpg. So ipc_hdb is included TWICE (so has TWO addresses).

Main problem causing the bug was, that reply_receive uses address from one
library, and reply_receive_in_buf uses other. This confuses check of hdb_get
function.

After removing linking of coroipcc.o to cpg, and rather use of dynamic version,
 (this means, there is only one instance of ipc_hdb) problem disappeared.



git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2203 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-06-01 08:46:10 +00:00
..
scripts Split openais and corosync tree into two seperate repositories. 2008-08-05 13:23:46 +00:00
cpgbench.c don't include <assert.h> when it's not used 2009-05-18 16:41:37 +00:00
cpgbenchzc.c don't include <assert.h> when it's not used 2009-05-18 16:41:37 +00:00
cpgverify.c avoid 'incompatible pointer type' compiler warning 2009-05-04 12:37:27 +00:00
evsbench.c Remove warning in evsbench. 2009-04-18 07:42:25 +00:00
evsverify.c evs.h: s/int/size_t; const-correctness changes 2009-04-08 06:43:17 +00:00
logsys_s1.c remove all trailing blanks 2009-04-22 08:03:55 +00:00
logsys_s2.c remove all trailing blanks 2009-04-22 08:03:55 +00:00
logsys_s.c remove all trailing blanks 2009-04-22 08:03:55 +00:00
logsys_t1.c remove all trailing blanks 2009-04-22 08:03:55 +00:00
logsys_t2.c remove all trailing blanks 2009-04-22 08:03:55 +00:00
logsysbench.c Add logsys v3 2009-04-20 04:28:33 +00:00
logsysrec.c remove all trailing blanks 2009-04-22 08:03:55 +00:00
Makefile.am Fix coroipcc linking 2009-06-01 08:46:10 +00:00
sa_error.c remove all trailing blanks 2009-04-22 08:03:55 +00:00
sa_error.h cleanup the last of the SAF headers and types 2008-11-06 21:49:07 +00:00
testconfdb.c don't include <signal.h> when it's not used 2009-05-18 16:41:46 +00:00
testcpg2.c Remove const from delivery callback to allow inplace endian changes of 2009-04-26 02:38:46 +00:00
testcpg.c don't include <signal.h> when it's not used 2009-05-18 16:41:46 +00:00
testcpgzc.c don't include <signal.h> when it's not used 2009-05-18 16:41:46 +00:00
testevs.c Rework how dispatch functions so service engines work properly. 2009-04-18 07:06:14 +00:00
testevsth.c remove all trailing blanks 2009-04-22 08:03:55 +00:00
testmake.sh remove all trailing blanks 2009-04-22 08:03:55 +00:00
testparse.c remove all trailing blanks 2009-04-22 08:03:55 +00:00
testquorum.c don't shadow file-scoped global, "handle" 2009-04-15 19:12:25 +00:00
testtimer.c remove all trailing blanks 2009-04-22 08:03:55 +00:00
testvotequorum1.c testvotequorum1.c: don't shadow file-scoped global, "handle" 2009-04-15 19:12:56 +00:00
testvotequorum2.c - Every .c file should include "config.h" to get the right defines... 2009-03-19 12:58:53 +00:00
testzcgc.c don't include <signal.h> when it's not used 2009-05-18 16:41:46 +00:00