TNG linux Asterisk - Segmentation Fault

Web based, multi-user, Telephone Management System with budget management and barring control

Moderators: Leon van Heerden, Luanda_Junzi, Belinda Frick, Lee Hendricks

TNG linux Asterisk - Segmentation Fault

Postby Dcdata » Fri Feb 07, 2014 9:19 am

Hi Datatex

I'm trying to upgrade a tng linux 1.0.7.* to your new version after running your script TNG starts to build the dialplan ans peerlist but after that it just ends no logging nothing.

I've run the app in the foreground and i get the Following error.

ChannelInExtensions: channel="602" cleanExt="602" aliasExt="602"
DEBUG ParseCDRRecordToTNGFormat: 6 src = "602" dst = "0727892718"

Segmentation fault
[root@mpuasterisk src]#


Please can this be a agent request as it has halted the client.
Dcdata
 
Posts: 73
Joined: Mon Apr 08, 2013 2:30 pm

Re: TNG linux Asterisk - Segmentation Fault

Postby Dcdata » Fri Feb 07, 2014 9:38 am

Please Find Strace

Code: Select all
[root@mpuasterisk src]# /opt/datatex/tng/tng -D && ps aux | grep -i tng
root     21141  0.0  0.0   7016   788 ?        Rs   09:35   0:00 /opt/datatex/tng/tng -D
root     21143  0.0  0.0   4028   696 pts/0    R+   09:35   0:00 grep -i tng
[root@mpuasterisk src]# strace -p 21141
Process 21141 attached - interrupt to quit
restart_syscall(<... resuming interrupted call ...>) = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0}, {0, 371794095})       = 0
nanosleep({1, 0},  <unfinished ...>
+++ killed by SIGSEGV +++
Dcdata
 
Posts: 73
Joined: Mon Apr 08, 2013 2:30 pm

Re: TNG linux Asterisk - Segmentation Fault

Postby Belinda Frick » Fri Feb 07, 2014 10:13 am

Please try the TNG update in this link:
TNG for Asterisk version 1.0.7.7 upgrade
Belinda Frick
 
Posts: 3808
Joined: Fri Nov 12, 2010 4:25 pm

Re: TNG linux Asterisk - Segmentation Fault

Postby Dcdata » Fri Feb 07, 2014 10:41 am

Hi belinda

No luck with this

Updated tng with 1.0.7.7

Shutdown tng

ran tnglive-1.1.1.11

i still get segmentation fault.
You do not have the required permissions to view the files attached to this post.
Dcdata
 
Posts: 73
Joined: Mon Apr 08, 2013 2:30 pm

Re: TNG linux Asterisk - Segmentation Fault

Postby Leon van Heerden » Mon Feb 10, 2014 9:35 am

Hi Greame,
I saw 1 issue in the log that is a bit concerning:
Code: Select all
2014-02-07 10:28:36:888 [1.1.1.11] - Could not start up webserver on port 7080 : Could not bind socket. Address and port are already in use.

This means that something else has the port open. You were not running 2 TNG at the same time? This will cause a lot of problems. Multiple accesses to the same files and updating them can cause this.

Another issue that we have identified recently is the use of enZA where the decimal point is a comma not a full stop. This causes issues with some conversions and rounding of numbers. you can try this before running tng:
Code: Select all
export LANG=C



You can also run tng like this to get a full output of the TNG crash:
Code: Select all
strace -f ./tng 2> full.log


Kind regards
Leon
----
Leon van Heerden
http://www.datatex.co.za
Leon van Heerden
 
Posts: 332
Joined: Fri Oct 29, 2010 11:21 am
Location: Cape Town

Re: TNG linux Asterisk - Segmentation Fault

Postby Dcdata » Fri Feb 14, 2014 11:20 am

HI leon

Thanks for the reply.

In the code section above the strace i have done a ps aux showing that one one tng is running.

there is no other procces running on port 7080 and the tng 1.0.7.0 works right off the bat, the problem is only when i upgrade it to 1.1.1.11 then it starts i can see on the web page it building the exchange something.

then it crashes.
Dcdata
 
Posts: 73
Joined: Mon Apr 08, 2013 2:30 pm

Re: TNG linux Asterisk - Segmentation Fault

Postby Belinda Frick » Tue Feb 18, 2014 2:27 pm

Upgrading from TNG 1.0 to 1.1 will re-create the exchange file. This file is need to do the proper costing of calls(look up of prefixes for costing). This process will take longer than the usual upgrade between versions.

There are also database changes between 1.0 and 1.1.

If you run the command Leon suggested it will log errors at the point of the 'crash', we will have a better idea of what is happening and make further suggestions.

The language option is also important.

Please try his suggestions and post us the 'full.log' if any issues.
Belinda Frick
 
Posts: 3808
Joined: Fri Nov 12, 2010 4:25 pm


Return to TNG

Who is online

Users browsing this forum: No registered users and 1 guest

cron