Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CRASH] v0.10 when on call and CGRateS Engine restarts #2764

Closed
vtzan opened this issue Mar 22, 2021 · 3 comments
Closed

[CRASH] v0.10 when on call and CGRateS Engine restarts #2764

vtzan opened this issue Mar 22, 2021 · 3 comments
Assignees

Comments

@vtzan
Copy link
Contributor

vtzan commented Mar 22, 2021

Dear Team,

CGRateS v0.10

/go/bin/cgr-engine --version
CGRateS@v0.10.3~dev-20210319074531-bc08d94fae4a

Crashes with
[signal SIGSEGV: segmentation violation code=0x1 addr=0x90 pc=0x1051177]

when there is an on going call and I manually restart CGRateS Engine and then I hangup the call.
This happens 3-4 seconds after the call hangup.

Logs:

goroutine 187 [running]:
github.com/cgrates/cgrates/engine.(*EventCost).FieldAsInterface(0x0, 0xc00013ba50, 0x5, 0x5, 0x0, 0x1, 0xc00097b870, 0x4526ec)
	/usr/src/cgrates/engine/eventcost.go:907 +0x37
github.com/cgrates/cgrates/utils.MapStorage.FieldAsInterface(0xc000565140, 0xc00013ba40, 0x6, 0x6, 0x0, 0x5, 0xc00013ba40, 0x6)
	/usr/src/cgrates/utils/mapstorage.go:95 +0xca4
github.com/cgrates/cgrates/config.(*RSRParser).ParseDataProviderWithInterfaces(0xc0005d9b90, 0x1b4df98, 0xc000565140, 0x1afe8bc, 0x1, 0x456767, 0x0, 0xc00097b9c8, 0x2)
	/usr/src/cgrates/config/rsrparser.go:313 +0xfd
github.com/cgrates/cgrates/engine.(*CDR).FieldAsString(0xc000484dc0, 0xc0005d9b90, 0x0, 0xc00082b9f8, 0x13, 0xc00082b9f8)
	/usr/src/cgrates/engine/cdr.go:156 +0x139
github.com/cgrates/cgrates/engine.(*CDR).exportFieldValue(0xc000484dc0, 0xc000344000, 0xc0002f4c30, 0x9, 0x0, 0x0, 0x0)
	/usr/src/cgrates/engine/cdr.go:339 +0x187
github.com/cgrates/cgrates/engine.(*CDR).formatField(0xc000484dc0, 0xc000344000, 0x0, 0x0, 0x0, 0x0, 0xc0002f4c30, 0xc000564930, 0x1, 0x0, ...)
	/usr/src/cgrates/engine/cdr.go:391 +0x345
github.com/cgrates/cgrates/engine.(*CDR).AsExportMap(0xc000484dc0, 0xc00022f790, 0x1a, 0x1a, 0x75be00, 0x0, 0x0, 0x0, 0xc0002f4c30, 0x23bf8e0, ...)
	/usr/src/cgrates/engine/cdr.go:455 +0x2b2
github.com/cgrates/cgrates/engine.(*CDRExporter).postCdr(0xc000754d00, 0xc000484dc0, 0x16ff12d, 0x4)
	/usr/src/cgrates/engine/cdre.go:252 +0xc68
github.com/cgrates/cgrates/engine.(*CDRExporter).processCDR(0xc000754d00, 0xc000484dc0, 0x0, 0x0)
	/usr/src/cgrates/engine/cdre.go:339 +0xa74
github.com/cgrates/cgrates/engine.(*CDRExporter).processCDRs.func1(0x0, 0xc0004c97f0, 0xc000754d00, 0xc000484dc0)
	/usr/src/cgrates/engine/cdre.go:406 +0x3c
created by github.com/cgrates/cgrates/engine.(*CDRExporter).processCDRs
	/usr/src/cgrates/engine/cdre.go:405 +0xf5

cgrates.json --> here

Let me know if you need any further information on this case

Thank you in advance for your support

Vasilios Tzanoudakis

@Jajcus
Copy link

Jajcus commented May 21, 2021

Any chance to get this into a released v0.10 version?

@danbogos
Copy link
Collaborator

We have pushed a new development package on v0.10. Hope that will do.

DanB

@vtzan
Copy link
Contributor Author

vtzan commented May 21, 2021

@danbogos I have just tested that. Its working great!!! thanks !!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants