[PolyORB-users] Memory leaks in polyorb

Tony Gair tony.gair at bmshome.co.uk
Fri Aug 17 18:36:09 CEST 2012



I'm getting memory leaks using a remote call interface. I am also 
passing variant records across the interface as a result of a function. 
Using Valgrind they look like

==2733== 480 bytes in 5 blocks are possibly lost in loss record 2,577 of 
2,646
==2733==    at 0x4C244E8: malloc (vg_replace_malloc.c:236)
==2733==    by 0xC45CED7: __gnat_malloc (in /usr/lib/libgnat-4.4.so.1)
==2733==    by 0xBCBFD9D: polyorb__any__initialize (in 
/usr/lib/libpolyorb.so.2)
==2733==    by 0xBCA629D: polyorb__any__to_any_instances__to_any__17Xn 
(in /usr/lib/libpolyorb.so.2)
==2733==    by 0xBCC0EDB: polyorb__any__to_any__15 (in 
/usr/lib/libpolyorb.so.2)
==2733==    by 0x4AD69A: 
main_store_pkg__building_controller_check_in___typecode12173___typecode12217___typecode12219.42841 
(in /home/target/dsaworking/bc_partition)
==2733==    by 0x4AD287: 
main_store_pkg__building_controller_check_in___typecode12173___typecode12217.41996 
(in /home/target/dsaworking/bc_partition)
==2733==    by 0x4A645A: 
main_store_pkg__building_controller_check_in___typecode12173.41923 (in 
/home/target/dsaworking/bc_partition)
==2733==    by 0x4A2E6C: main_store_pkg__building_controller_check_in 
(in /home/target/dsaworking/bc_partition)
==2733==    by 0x4E6DA3: dsa_comms_pkg__deal_with_remote_orders 
(dsa_comms_pkg.adb:22)
==2733==    by 0x4E80AB: dsa_comms_pkg__dsa_comms_task_typeB 
(dsa_comms_pkg.adb:234)
==2733==    by 0xBFC8802: ??? (in /usr/lib/libgnarl-4.4.so.1)

I am executing the calls from inside a task. Do I have to stop using 
variant records across the interface?

other information :
I am using debian squeeze and the debian packages
Gnat is version 4.4.5
and polyorb version 2.6.0



More information about the PolyORB-users mailing list