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

segfault on asterisk startup #40

Open
GoogleCodeExporter opened this issue Jul 4, 2015 · 3 comments
Open

segfault on asterisk startup #40

GoogleCodeExporter opened this issue Jul 4, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 5 May 2013 at 2:05

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 22 Jul 2013 at 9:03

@GoogleCodeExporter
Copy link
Author

[deleted comment]

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 6 Dec 2013 at 9:52

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

No branches or pull requests

1 participant