Currently, ims_dialog includes execinfo.h to use backtrace in the
backtrace2str function. However, all calls to backtrace2str are
commented so disable this function through "if 0" and comment the
include on execinfo.h to allow the cross-compilation of the ims_dialog
module as some libc's don't always have this header (uclibc-ng, musl)
Signed-off-by: Fabrice Fontaine <fontaine.fabrice(a)gmail.com>
You can view, comment on, or merge this pull request online at:
https://github.com/…
[View More]kamailio/kamailio/pull/996
-- Commit Summary --
* Fix execinfo error in ims_dialog module
-- File Changes --
M src/modules/ims_dialog/dlg_hash.c (4)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/996.patchhttps://github.com/kamailio/kamailio/pull/996.diff
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/996
[View Less]
Module: kamailio
Branch: 5.0
Commit: 074f52de88f473945628f81740a87e5f6bc072ea
URL: https://github.com/kamailio/kamailio/commit/074f52de88f473945628f81740a87e5…
Author: James Cloos <cloos(a)jhcloos.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-03-14T20:11:29+01:00
app_perl: Make sv2int_str() static
- The function is only called from the xs file, and C11âs inline
semantics mean that gcc-5 and later miscompile this file when
no optimization is …
[View More]specified.
Signed-off-by: James Cloos <cloos(a)jhcloos.com>
(cherry picked from commit 42d3b93f838d1c2eeb009894422fe016a6572520)
---
Modified: src/modules/app_perl/kamailioxs.xs
---
Diff: https://github.com/kamailio/kamailio/commit/074f52de88f473945628f81740a87e5…
Patch: https://github.com/kamailio/kamailio/commit/074f52de88f473945628f81740a87e5…
---
diff --git a/src/modules/app_perl/kamailioxs.xs b/src/modules/app_perl/kamailioxs.xs
index 02fb5a5..8d2604c 100644
--- a/src/modules/app_perl/kamailioxs.xs
+++ b/src/modules/app_perl/kamailioxs.xs
@@ -402,7 +402,7 @@ char *pv_sprintf(struct sip_msg *m, char *fmt) {
* - strflag: flag mask to be or-applied for string match
*/
-inline int sv2int_str(SV *val, int_str *is,
+static inline int sv2int_str(SV *val, int_str *is,
unsigned short *flags, unsigned short strflag) {
char *s;
STRLEN len;
[View Less]
Module: kamailio
Branch: master
Commit: 42d3b93f838d1c2eeb009894422fe016a6572520
URL: https://github.com/kamailio/kamailio/commit/42d3b93f838d1c2eeb009894422fe01…
Author: James Cloos <cloos(a)jhcloos.com>
Committer: James Cloos <cloos(a)jhcloos.com>
Date: 2017-03-10T16:52:55-05:00
app_perl: Make sv2int_str() static
- The function is only called from the xs file, and C11âs inline
semantics mean that gcc-5 and later miscompile this file when
no optimization is specified.
…
[View More]Signed-off-by: James Cloos <cloos(a)jhcloos.com>
---
Modified: src/modules/app_perl/kamailioxs.xs
---
Diff: https://github.com/kamailio/kamailio/commit/42d3b93f838d1c2eeb009894422fe01…
Patch: https://github.com/kamailio/kamailio/commit/42d3b93f838d1c2eeb009894422fe01…
---
diff --git a/src/modules/app_perl/kamailioxs.xs b/src/modules/app_perl/kamailioxs.xs
index 02fb5a5..8d2604c 100644
--- a/src/modules/app_perl/kamailioxs.xs
+++ b/src/modules/app_perl/kamailioxs.xs
@@ -402,7 +402,7 @@ char *pv_sprintf(struct sip_msg *m, char *fmt) {
* - strflag: flag mask to be or-applied for string match
*/
-inline int sv2int_str(SV *val, int_str *is,
+static inline int sv2int_str(SV *val, int_str *is,
unsigned short *flags, unsigned short strflag) {
char *s;
STRLEN len;
[View Less]
dlg_set_timeout("2419200", $var(entry), $var(id));
The both $var's contains strings. If I enclose them with "" there's no segfault, but the var's doesn't seem to be parsed by dlg_set_timeout either.
Doing this causes a seg fault when kamailio starts. Version 4.4.2
Will try to get a core dump, but not sure since this is a production system...
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/1011