Summary: | ASTERISK-28692: cdr: Asterisk crashed after NoOp application in realtime | ||||
Reporter: | Timofey Pupyshev (timofey.pupyshev@gmail.com) | Labels: | |||
Date Opened: | 2020-01-15 04:38:27.000-0600 | Date Closed: | |||
Priority: | Minor | Regression? | |||
Status: | Open/New | Components: | CDR/General | ||
Versions: | 17.1.0 | Frequency of Occurrence | |||
Related Issues: |
| ||||
Environment: | Attachments: | ( 0) 2.zip ( 1) core-brief.txt ( 2) core-full.txt ( 3) core-locks.txt ( 4) core-thread1.txt | |||
Description: | Asterisk crushed after "NoOp" application in realtime.
extconfig.conf have: extensions => odbc,mysql,rt_extensions database: id,context,exten,priority,app,appdata data: 1,test,100,1,NoOp,My Test Text After callin to 100, asterisk crush. In Asterisk 15 - all work. | ||||
Comments: | By: Asterisk Team (asteriskteam) 2020-01-15 04:38:28.648-0600 Thanks for creating a report! The issue has entered the triage process. That means the issue will wait in this status until a Bug Marshal has an opportunity to review the issue. Once the issue has been reviewed you will receive comments regarding the next steps towards resolution. A good first step is for you to review the [Asterisk Issue Guidelines|https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines] if you haven't already. The guidelines detail what is expected from an Asterisk issue report. Then, if you are submitting a patch, please review the [Patch Contribution Process|https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process]. Please note that once your issue enters an open state it has been accepted. As Asterisk is an open source project there is no guarantee or timeframe on when your issue will be looked into. If you need expedient resolution you will need to find and pay a suitable developer. Asking for an update on your issue will not yield any progress on it and will not result in a response. All updates are posted to the issue when they occur. By: Joshua C. Colp (jcolp) 2020-01-15 05:03:07.695-0600 Thank you for the crash report. However, we need more information to investigate the crash. Please provide: 1. A backtrace generated from a core dump using the instructions provided on the Asterisk wiki [1]. 2. Specific steps taken that lead to the crash. 3. All configuration information necesary to reproduce the crash. Thanks! [1]: https://wiki.asterisk.org/wiki/display/AST/Getting+a+Backtrace By: Timofey Pupyshev (timofey.pupyshev@gmail.com) 2020-01-15 05:05:06.886-0600 I intall asterisk 16.7.0. NoOp is work correctly. By: Timofey Pupyshev (timofey.pupyshev@gmail.com) 2020-01-15 05:19:38.234-0600 backtrace By: Joshua C. Colp (jcolp) 2020-01-15 05:25:18.162-0600 Was Asterisk built with DONT_OPTIMIZE set as mentioned on the wiki page? The output seems to indicate it wasn't, so data is missing. By: Joshua C. Colp (jcolp) 2020-01-15 05:26:59.228-0600 And can you please also attach any console output. By: Timofey Pupyshev (timofey.pupyshev@gmail.com) 2020-01-15 05:30:12.497-0600 1. backtrace in attache files. 2. install clear asterisk 17.1.0, create database in mariadb, switch in extensions.conf, create one sip in sip.conf, run asterisk, make call from sip phone to extension 100. --- 2.1 extconfig.conf have: extensions => odbc,mysql,rt_extensions 2.2 database: id,context,exten,priority,app,appdata 2.3 data in database: 1,test,100,1,NoOp,My Test Text 2,test,100,2,HangUp 3. More detail: Database Structure and Data: DROP TABLE IF EXISTS `rt_extensions`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `rt_extensions` ( `id` int(11) NOT NULL AUTO_INCREMENT, `context` varchar(128) NOT NULL, `exten` varchar(128) NOT NULL, `priority` int(11) NOT NULL DEFAULT 0, `app` varchar(128) NOT NULL, `appdata` text NOT NULL, `uuid` varchar(36) DEFAULT NULL, `context_uuid` varchar(36) DEFAULT NULL, `exten_uuid` varchar(36) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; LOCK TABLES `rt_extensions` WRITE; /*!40000 ALTER TABLE `rt_extensions` DISABLE KEYS */; INSERT INTO `rt_extensions` VALUES (1,'test','101',1,'NoOp','','5cee2d4c-30c9-4e07-9007-4a145ebffdf4','18705a04-ea26-4e3a-bc2b-20ac2ee2d484','3266fd8c-870e-4e8b-ae94-c12c91174e27'),(2,'test','101',4,'Echo','','d602e3d4-83d0-41d8-b163-48acf4667cd1','18705a04-ea26-4e3a-bc2b-20ac2ee2d484','3266fd8c-870e-4e8b-ae94-c12c91174e27'),(3,'test','101',5,'Hangup','','a0033282-9ed0-4604-a1f8-22061a6d5484','18705a04-ea26-4e3a-bc2b-20ac2ee2d484','3266fd8c-870e-4e8b-ae94-c12c91174e27'),(4,'test','101',2,'Answer','','f72c5b0d-59e5-49bc-8a3c-244cec8e5eee','18705a04-ea26-4e3a-bc2b-20ac2ee2d484','3266fd8c-870e-4e8b-ae94-c12c91174e27'),(5,'test','101',3,'SayDigits','123123','97f2e016-91e0-4c64-b1fc-84ba83de2e40','18705a04-ea26-4e3a-bc2b-20ac2ee2d484','3266fd8c-870e-4e8b-ae94-c12c91174e27'),(6,'test','101',6,'Dial','SIP/user-100','835736db-3303-4f65-9dd7-db7151f14e58','18705a04-ea26-4e3a-bc2b-20ac2ee2d484','3266fd8c-870e-4e8b-ae94-c12c91174e27'); /*!40000 ALTER TABLE `rt_extensions` ENABLE KEYS */; UNLOCK TABLES; extconfig.conf [settings] ;------------; ; REALTIME ; ;------------; acls => odbc,mysql,rt_acls extensions => odbc,mysql,rt_extensions musiconhold => odbc,mysql,rt_musiconhold queue_log => odbc,mysql,log_queue queue_members => odbc,mysql,rt_queue_members queue_rules => odbc,mysql,rt_queue_rules queues => odbc,mysql,rt_queues sippeers => odbc,mysql,rt_sippeers sippeer have one record extension.conf have switch to realtime By: Timofey Pupyshev (timofey.pupyshev@gmail.com) 2020-01-15 05:34:06.326-0600 Asterisk Ready. *CLI> core show version Asterisk 17.1.0 built by root @ debian on a x86_64 running Linux on 2020-01-15 08:17:45 UTC ------- a lot of text ------- Asterisk Ready. *CLI> == Using SIP RTP TOS bits 184 == Using SIP RTP CoS mark 5 > 0x7fb6e40156b0 -- Strict RTP learning after remote address set to: 192.168.0.162:16518 -- Executing [101@test:1] NoOp("SIP/user-100-00000000", "") Bus error (core dumped) By: Joshua C. Colp (jcolp) 2020-01-15 05:40:09.023-0600 Can you answer my question about DONT_OPTIMIZE? If not can you rebuild Asterisk with it enabled and provide an updated backtrace? By: Timofey Pupyshev (timofey.pupyshev@gmail.com) 2020-01-15 05:43:06.812-0600 10 min please. By: Timofey Pupyshev (timofey.pupyshev@gmail.com) 2020-01-15 06:01:33.306-0600 Compile asterisk with DONT_OPTIMIZE. add 2.zip |