My Oracle Support Banner

Valgrind Memory Leakage Issue For Out Of Box Code (Doc ID 2942120.1)

Last updated on JUNE 13, 2024

Applies to:

Oracle Communications Billing and Revenue Management - Version 12.0.0.4.0 and later
Information in this document applies to any platform.

Symptoms

While testing the code with valgrind tool, memory leak has been detected in out-of-box opcodes. See below details:

1. Create a Connection Manager (CM) image with valgrind libs
2. Start CM via valgrind as follows:
       cd <BRM_HOME>/sys/cm
       export VALGRIND_LIB=/lib
       exec lib/valgrind -v --log-file=leaks_info.log --num-callers=40 --leak-check=full --show-reachable=no --leak-resolution=high --show-possibly-lost=no --track-origins=yes --trace-children=yes ${PIN_HOME}/bin/${BINARY}
3. Run few customer registration and subscription opcodes
4. Check the cm_valgrind.vglog, below memory leak can be observed:

==328== 312 (208 direct, 104 indirect) bytes in 13 blocks are definitely lost in loss record 526 of 685
==328== at 0x402C4F8: malloc (vg_replace_malloc.c:380)so)
==328== by 0x40C69FC: pbo_decimal_round (in /oms/lib/libcmpin.so)
==328== by 0x5DF7FD1: fm_cust_pol_tax_init (in /oms/lib/fm_cust_pol.so)
==328== by 0x5DDC2BF: fm_cust_pol_init_custom_tax_data (in /oms/lib/fm_cust_pol.so)
==328== by 0x5DDDDAB: fm_cust_pol_init (in /oms/lib/fm_cust_pol.so)
==328== by 0x41C8A0D: mainThread (in /oms/lib/libcm_main.so)
==328== by 0x80487C3: main (in /oms/bin/cm)
==328== by 0x5651E47: fm_bill_init_payment_cfg (in /oms/lib/fm_bill_utils.so)
==328== by 0x40D2503: pcm_op (in /oms/lib/libcmpin.so)
==328== by 0x5E655F3: fm_bill_init_cfg_adj_event (in /oms/lib/fm_bill.so)

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.