into persist.az.mvista.com:/home/sdake/openais
2005/01/08 02:16:10-07:00 mvista.com!sdake
tlist.c:
Fix use of memory area after free when timer_fn deletes a timer.
The 3 cases are:
1. timer_fn deletes its own timer
2. timer_fn deletes next timer after its own timer
3. timer_fn deletes any other timer
BKrev: 41dfa4faNWgA_s0fcyzlj-jhOFNKAA
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@399 fd59a12c-fef9-0310-b244-a6a79926bd2f
The 3 cases are:
1. timer_fn deletes its own timer
2. timer_fn deletes next timer after its own timer
3. timer_fn deletes any other timer
(Logical change 1.112)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@398 fd59a12c-fef9-0310-b244-a6a79926bd2f
Fix missing unlock in error conditions reported by Kristen Smith
BKrev: 41deef37lfq4PXPbgolOpenG8xUJYg
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@397 fd59a12c-fef9-0310-b244-a6a79926bd2f
deadlock situtation. The problem would occur when I would kill aisexec
while my program was running (using EVT and CLM apis). My program is
multi-threaded where 1 thread is calling evtDispatch and other threads
can be calling evtPublish at various times. The problem I ran into is when I
killed aisexec, the evtDispatch would take a lock, but never give it back.
At the same time, my sending thread would call evtPublish which would take
the lock and hang since evtDispatch never gave up the lock it took.
The fix was to add a few unlocks in evt.c where they appeared to be missing.
Here is the info:
1) line 504 in evt.c (lib dir) calls
pthread_mutex_unlock(&evti->ei_mutex);
goto error_unlock;
2) There are subsequent calls to goto error_unlock in later error statements
that do not unlock the mutex before the goto call - the lines are 534 and 541
Adding the unlock right before the goto @ 534 and @ 541 fixes the deadlock
for my scenario.
Kristen Smith
Nortel Networks
(Logical change 1.110)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@394 fd59a12c-fef9-0310-b244-a6a79926bd2f
Kristen Smith reported a bug where evs would return 0.0.0.0 in the
source address. This patch fixes that defect 182.
BKrev: 41950c4eWm2WAOmtw1VmnIPUzCirKw
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@383 fd59a12c-fef9-0310-b244-a6a79926bd2f
into persist.az.mvista.com:/home/sdake/openais
2004/11/06 10:42:19-07:00 mvista.com!sdake
gmi.c:
Commit timeout wasn't stopped when entering gather state. This patch stops
the commit timeout when the gather state is entered.
BKrev: 418d0d02UJqL-86F2zLxnkruJk2Z7Q
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@378 fd59a12c-fef9-0310-b244-a6a79926bd2f
append keygen.o to clean target
amf.c:
match function name to coding style
BKrev: 418baa69pjW8OB2yd60kweHMtHG5Fg
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@377 fd59a12c-fef9-0310-b244-a6a79926bd2f
get rid of make error
amf.c:
implement gmi_token_callback in amf.c
BKrev: 418aaf0fKs_99rjhstkG78ZR02mT9g
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@373 fd59a12c-fef9-0310-b244-a6a79926bd2f
and executive. Also parser could crash when out of memory occurs.
util.c:
Fix off by one which oculd cause invalid handle to be used.
testevt.c, testckpt.c, subscription.c, evtbench.c:
type safeness printing.
publish.c:
type safeness prnting.
ais_types.h:
64bit safe ais types
Makefile:
Remove specific o files instead of all objects.
parse.c:
Fix crash in parser.
hdb.c:
Fix off by one which could cause invalid handle to be used.
gmi.c:
remove type-punned pointer warning
ckpt.c, amf.c:
Type checking changes for printf's
BKrev: 4180200fVk1m035hXoENX87UgLUrKg
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@360 fd59a12c-fef9-0310-b244-a6a79926bd2f
exec/evt.c:
1. manage the base event ID a little better.
2. I also added some private log levels to allow me to selectively turn
on debug output in some sections of the code without turning on
everything.
3. Remove (EVT) from all the printf calls.
The next is an update to the testevt program. I added some cases to test
multiple channel and subscriptions as well as some retained event tests.
BKrev: 417978c5I2I15AFzIQ0zITa5_ESuZQ
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@355 fd59a12c-fef9-0310-b244-a6a79926bd2f
2. I also added some private log levels to allow me to selectively turn
on debug output in some sections of the code without turning on
everything.
3. Remove (EVT) from all the printf calls.
(Logical change 1.97)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@354 fd59a12c-fef9-0310-b244-a6a79926bd2f