Returning Error From Pre-Billing Policy Causes Segmentation Fault Error

(Doc ID 557957.1)

Last updated on JANUARY 19, 2014

Applies to:

Oracle Communications Billing and Revenue Management - Version to [Release 7.0.0]
Information in this document applies to any platform.
This problem can occur on any platform.
Checked for relevance on 19-Jan-2014


When we try to modify any of the pre-billing policy files like below , to return an error using pin_set_err() function using different error codes, it causes segmentation fault in billing process.

- fm_bill_pol_spec_future_cycle.c
- fm_bill_pol_spec_billno.c
- fm_bill_pol_bill_pre_commit.c
- fm_bill_pol_calc_pymt_due_t.c

The pstack of the core generated looks like below :

core 'core' of 25724: /export/home1/pin03/opt/portal/7.0/bin/cm
fd577994 fm_bill_mb_bill_acct (2711, 0, 0, ffbfdf68, fd6357f0, fdbaae1c) + 22b4
fd5753d4 fm_bill_mb_make_bill (caaf0, 1, db0f0, ea190, ffbfdf68, 1) + 544
fd573fdc op_bill_make_bill (8a10, 0, ea190, db0f0, d6870, ffbfdf68) + a2c
ff0b50d8 cm_custom (ff0f2d84, d69c8, 6e, 0, 0, ffbfe258) + 600
ff0b3020 cm_child (1, 2, f4240, caaf0, ff0f134c, 298) + fe8
ff0bc068 mainThread (a0104d1, fdc00314, 0, ff0edce0, 9, ffbfe390) + 3dc0
00010b10 main (1, ffbfea94, ffbfea9c, 22400, 0, 0) + 8
00010af0 _start (0, 0, 0, 0, 0, 0) + 108

Below is a sample scenario where this issue can be reproduced :

1) Modify one of the pre-billing policy file, for  example, "fm_bill_pol_bill_pre_commit.c"
2) Compile and build the new fm_bill_pol library . Move this to the pin_home/lib folder after taking a backup of the original file
3) Create an account(say on Jan 1st) with any standard out of box plan
4) Move to the next bill cycle ( say Feb 1st)
5) Run pin_bill_day . This should result in a core dump ( stack trace will be seen in the cm pinlog )


Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms