S. Poehlsen
16 years ago
Hello, it's me again.
I forgot to dispose and unregister my messages in my programs.
After sending to many messages I was not able to start my program anymore
because DDS_DomainParticipantFactory_create_participant() failed with a
NULL pointer.
I think it would be better to return a proper error message since the
failing program does not really has something to do with the misbehavior
of other programs.
A valgrind output looks like this:
==24043== Invalid write of size 4
==24043== at 0x46F1EC7: c_new (in .../HDE/x86.linux2.6/lib/libddsdatabase.so)
==24043== by 0x4955927: v_qosCreate (in .../HDE/x86.linux2.6/lib/libddskernel.so)
==24043== by 0x49535E4: v_participantQosNew (in .../HDE/x86.linux2.6/lib/libddskernel.so)
==24043== by 0x49532A2: v_participantNew (in .../HDE/x86.linux2.6/lib/libddskernel.so)
==24043== by 0x49ADFE4: u_participantNew (in .../HDE/x86.linux2.6/lib/libddsuser.so)
==24043== by 0x49E67F5: _DomainParticipantNew (in .../HDE/x86.linux2.6/lib/libdcpsgapi.so)
==24043== by 0x49E7CC0: gapi_domainParticipantFactory_create_participant (in .../HDE/x86.linux2.6/lib/libdcpsgapi.so)
==24043== by 0x472F22F: DDS_DomainParticipantFactory_create_participant (in ../HDE/x86.linux2.6/lib/libdcpssac.so)
==24043== by 0x804C41D: main (rpctest.c:177)
==24043== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24043==
==24043== Process terminating with default action of signal 11 (SIGSEGV)
In ospl-error.log I can found the following error message.
========================================================================================
Report : ERROR
Date : Fri May 15 15:05:39 2009
Description : Memory claim denied: required size (64) exceeds available resources (104)!
Node : acc
Process : 24679
Thread : main thread 4a59bc0
Internals : V4.1.090513/c_mmbase/c_mmbase.c/252/0/280393987
Steph
I forgot to dispose and unregister my messages in my programs.
After sending to many messages I was not able to start my program anymore
because DDS_DomainParticipantFactory_create_participant() failed with a
NULL pointer.
I think it would be better to return a proper error message since the
failing program does not really has something to do with the misbehavior
of other programs.
A valgrind output looks like this:
==24043== Invalid write of size 4
==24043== at 0x46F1EC7: c_new (in .../HDE/x86.linux2.6/lib/libddsdatabase.so)
==24043== by 0x4955927: v_qosCreate (in .../HDE/x86.linux2.6/lib/libddskernel.so)
==24043== by 0x49535E4: v_participantQosNew (in .../HDE/x86.linux2.6/lib/libddskernel.so)
==24043== by 0x49532A2: v_participantNew (in .../HDE/x86.linux2.6/lib/libddskernel.so)
==24043== by 0x49ADFE4: u_participantNew (in .../HDE/x86.linux2.6/lib/libddsuser.so)
==24043== by 0x49E67F5: _DomainParticipantNew (in .../HDE/x86.linux2.6/lib/libdcpsgapi.so)
==24043== by 0x49E7CC0: gapi_domainParticipantFactory_create_participant (in .../HDE/x86.linux2.6/lib/libdcpsgapi.so)
==24043== by 0x472F22F: DDS_DomainParticipantFactory_create_participant (in ../HDE/x86.linux2.6/lib/libdcpssac.so)
==24043== by 0x804C41D: main (rpctest.c:177)
==24043== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24043==
==24043== Process terminating with default action of signal 11 (SIGSEGV)
In ospl-error.log I can found the following error message.
========================================================================================
Report : ERROR
Date : Fri May 15 15:05:39 2009
Description : Memory claim denied: required size (64) exceeds available resources (104)!
Node : acc
Process : 24679
Thread : main thread 4a59bc0
Internals : V4.1.090513/c_mmbase/c_mmbase.c/252/0/280393987
Steph