[Openais] RE: Library core dump using evt.

Kristen Smith kjsmith at nortel.com
Tue Jan 10 05:54:53 PST 2006


Steve,

Here is the core info:

(gdb) print *handleDatabase
$1 = {handleCount = 1, handles = 0x80bcfd0, mutex = {__m_reserved = 2,
__m_count = 0,
    __m_owner = 0xc9f, __m_kind = 0, __m_lock = {__status = 1,
__spinlock = 0}},
  handleInstanceDestructor = 0xb747f638 <chanHandleInstanceDestructor>}
(gdb) print handleDatabase->mutex
$2 = {__m_reserved = 2, __m_count = 0, __m_owner = 0xc9f, __m_kind = 0,
__m_lock = {
    __status = 1, __spinlock = 0}}
(gdb) print handleDatabase->handles
$3 = (struct saHandle *) 0x80bcfd0
(gdb) print handle
No symbol "handle" in current context.
(gdb) print inHandle
$4 = 931264244833698761


(gdb) up
#1  0xb747e12a in saEvtEventAllocate (channelHandle=7222815479134420992,
    eventHandle=0xb49e4870) at evt.c:1361
1361            saHandleInstancePut (&channel_handle_db,
edi->edi_channel_handle);
(gdb) p event_handle_db
$1 = {handleCount = 1, handles = 0x80b7850, mutex = {__m_reserved = 0,
__m_count = 0,
    __m_owner = 0x0, __m_kind = 0, __m_lock = {__status = 0, __spinlock
= 0}},
  handleInstanceDestructor = 0xb747f6b8 <eventHandleInstanceDestructor>}
(gdb) p evt_instance_handle_db
$2 = {handleCount = 1, handles = 0x80b7838, mutex = {__m_reserved = 1,
__m_count = 0,
    __m_owner = 0xba9, __m_kind = 0, __m_lock = {__status = 1,
__spinlock = 0}},
  handleInstanceDestructor = 0xb747f5a8 <evtHandleInstanceDestructor>}
(gdb) p channel_handle_db
$3 = {handleCount = 1, handles = 0x80bcfd0, mutex = {__m_reserved = 2,
__m_count = 0,
    __m_owner = 0xc9f, __m_kind = 0, __m_lock = {__status = 1,
__spinlock = 0}},
  handleInstanceDestructor = 0xb747f638 <chanHandleInstanceDestructor>}
(gdb) p channel_handle_db->mutex
$4 = {__m_reserved = 2, __m_count = 0, __m_owner = 0xc9f, __m_kind = 0,
__m_lock = {
    __status = 1, __spinlock = 0}}
(gdb) p channel_handle_db->handles
$5 = (struct saHandle *) 0x80bcfd0

As for freeing - yes. The code is basically this (in a while loop):

saEvtEventAllocate
saEvtEventAttributesSet
saEvtEventPublish  - inside a second while loop looking at AGAIN error -
loops a few times
saEvtEventFree(event_handle);

Let me know what else I can get for you.

Kristen

       




More information about the Openais mailing list