leitang / iksemel

Automatically exported from code.google.com/p/iksemel
GNU Lesser General Public License v2.1
0 stars 0 forks source link

segfault on asterisk startup #40

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.start asterisk
2.
3.

What is the expected output? What do you see instead?

asterisk[1063]: segfault at 0 ip 00007f117aee122d sp 00007fffbc398990 error 4 
in libiksemel.so.3.1.1[7f117aed8000+d000]

What version of the product are you using? On what operating system?
iksemel-1.4-4.fc17.x86_64.rpm

Fedora 17

Please provide any additional information below.

Original issue reported on code.google.com by 4531...@gmail.com on 5 May 2013 at 2:05

GoogleCodeExporter commented 9 years ago
This should help...

[2013-07-18 23:40:10] ERROR[2545]: config_options.c:512 aco_process_config: 
Unable to load config file 'udptl.conf'
[2013-07-18 23:40:10] NOTICE[2545]: app_queue.c:7709 reload_queue_rules: No 
queuerules.conf file found, queues will not follow penalty rules
[2013-07-18 23:40:10] ERROR[2545]: cdr_custom.c:90 load_config: Unable to load 
cdr_custom.conf. Not logging custom CSV CDRs.
[2013-07-18 23:40:10] ERROR[2545]: cel_custom.c:89 load_config: Unable to load 
cel_custom.conf. Not logging CEL to custom CSVs.
[2013-07-18 23:40:10] NOTICE[2545]: res_odbc.c:1527 odbc_obj_connect: 
Connecting asteriskcdrdb
[2013-07-18 23:40:10] NOTICE[2545]: iax2-provision.c:558 iax_provision_reload: 
No IAX provisioning configuration found, IAX provisioning disabled.

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb46d2b40 (LWP 2545)]
0xb733f6d8 in iks_stack_delete (s=0x8b0e9e8) at ikstack.c:189
189             c = s->meta->next;
(gdb) 

Original comment by ab3...@gmail.com on 22 Jul 2013 at 9:03

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I ran into this problem too, for me if my username / password combo was bad I 
experience this segfault. 

The following patch fixes the failed login from causing asterisk to crash.

+++ src/filter.c        2013-12-06 13:15:48.000000000 -0800
@@ -45,7 +45,7 @@
        iksrule *rule;
        va_list ap;
        int type;
+       if (!f) return NULL;
-
        s = iks_stack_new (sizeof (iksrule), DEFAULT_RULE_CHUNK_SIZE);
        if (!s) return NULL;
        rule = iks_stack_alloc (s, sizeof (iksrule));

Original comment by cabel.mc...@gmail.com on 6 Dec 2013 at 9:52