A quick solution for #529 to verify the function being called is populated so
it doesn't segfault.
### gdb output && bracktrace
```
Breakpoint 1, pv_parse_spec (in=in@entry=0x882e50 , e=0x77425be0)
at pvar.c:3720
3720s.len = p - s.s;
(gdb) print pte
$5 = (pv_export_t
My solution to #531 caused by _tr_parse_sparam attempting to parse an empty
argument. The 100% CPU is caused by an infinite loop in `static void
trans_fill_right(pv_value_t *val, str pad, int len)` (transformations.c:129)
since the while loop `while (len > 0)` depends on pad.len being decrement
Following construct causes an infinite loop:
startup_route
{
$var(foo) = "foo";
xlog("$(var(foo){s.fill.right, ,7})\n");
...
---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/issues/531__
Branch: refs/heads/master
Home: https://github.com/OpenSIPS/opensips
Commit: bcf8524cded3f05013dc7fcabc8fea38a9766873
https://github.com/OpenSIPS/opensips/commit/bcf8524cded3f05013dc7fcabc8fea38a9766873
Author: Liviu Chircu
Date: 2015-05-30 (Sat, 30 May 2015)
Changed paths:
this adds a string transformation primarily used for making pretty logs. for
example:
```
xlog("L_INFO","$var(prefix): $(cs{s.width,7}): $(rm{s.width,9}): request from
uac behind nat\n");
```
i looked into use `$(cs{s.fill.right, " ", 7})` but it wasn't meant for that it
seems.
You can view,
Branch: refs/heads/master
Home: https://github.com/OpenSIPS/opensips
Commit: 94e359384087c791b25e030a08269f73962d024b
https://github.com/OpenSIPS/opensips/commit/94e359384087c791b25e030a08269f73962d024b
Author: Liviu Chircu
Date: 2015-05-29 (Fri, 29 May 2015)
Changed paths:
Although core variables correctly handle this error, OpenSIPS will segfault
when a module variable is given instead:
startup_route
{
#works
$(ru(foo)) = "foo";
#crashes
$(DLG_dir(foo)) = 5;
line 9: 5074 Segmentation fault (core dumped) ./opensips -m
props to @etamme for finding this bug that caused contacts not to be loaded
when opensips is restarted because the expires location value was munged.
You can view, comment on, or merge this pull request online at:
https://github.com/OpenSIPS/opensips/pull/528
-- Commit Summary --
* update s
Branch: refs/heads/master
Home: https://github.com/OpenSIPS/opensips
Commit: 57938c0914bd3c41308897fc4f85befa62e14f8e
https://github.com/OpenSIPS/opensips/commit/57938c0914bd3c41308897fc4f85befa62e14f8e
Author: Liviu Chircu
Date: 2015-05-29 (Fri, 29 May 2015)
Changed paths:
https://github.com/OpenSIPS/opensips/commit/84b4e7ea35b584c3f29f56db3e2bd152a8ee6bdc
. This commit provides partition support for permissions module. Any kind of
feedback would be appreciated!
---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/issues/501#
Branch: refs/heads/master
Home: https://github.com/OpenSIPS/opensips
Commit: 84b4e7ea35b584c3f29f56db3e2bd152a8ee6bdc
https://github.com/OpenSIPS/opensips/commit/84b4e7ea35b584c3f29f56db3e2bd152a8ee6bdc
Author: ionutrazvanionita
Date: 2015-05-29 (Fri, 29 May 2015)
Changed p
Branch: refs/heads/master
Home: https://github.com/OpenSIPS/opensips
Commit: 1713bb2c14269cc0fca33c6187d1230692c2a290
https://github.com/OpenSIPS/opensips/commit/1713bb2c14269cc0fca33c6187d1230692c2a290
Author: Bogdan-Andrei Iancu
Date: 2015-05-29 (Fri, 29 May 2015)
Changed
Branch: refs/heads/2.1
Home: https://github.com/OpenSIPS/opensips
Commit: 59d0f336083f262c36cac522117addf989c87f99
https://github.com/OpenSIPS/opensips/commit/59d0f336083f262c36cac522117addf989c87f99
Author: Bogdan-Andrei Iancu
Date: 2015-05-29 (Fri, 29 May 2015)
Changed pa
13 matches
Mail list logo