mirror of
https://git.proxmox.com/git/mirror_corosync
synced 2025-10-25 10:22:23 +00:00
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 |
||
|---|---|---|
| .. | ||
| scripts | ||
| cpgbench.c | ||
| cpgbenchzc.c | ||
| cpgverify.c | ||
| evsbench.c | ||
| evsverify.c | ||
| logsys_s1.c | ||
| logsys_s2.c | ||
| logsys_s.c | ||
| logsys_t1.c | ||
| logsys_t2.c | ||
| logsysbench.c | ||
| logsysrec.c | ||
| Makefile.am | ||
| sa_error.c | ||
| sa_error.h | ||
| testconfdb.c | ||
| testcpg2.c | ||
| testcpg.c | ||
| testcpgzc.c | ||
| testevs.c | ||
| testevsth.c | ||
| testmake.sh | ||
| testparse.c | ||
| testquorum.c | ||
| testtimer.c | ||
| testvotequorum1.c | ||
| testvotequorum2.c | ||
| testzcgc.c | ||