[OpenSIPS-Devel] [opensips] Opensips segfaults in db_free_result (#406)
ar45
notifications at github.com
Tue Feb 3 16:31:17 CET 2015
```
root at nyc2-sbc1:/usr/local/opensips/etc/opensips# gdb /usr/local/opensips/sbin/opensips /core.5355
GNU gdb (GDB) 7.4.1-debian
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/local/opensips/sbin/opensips...done.
[New LWP 5355]
warning: Can't read pathname for load map: Input/output error.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `/usr/local/opensips/sbin/opensips -P /run/opensips/opensips.pid -m 512 -M 8 -u'.
Program terminated with signal 11, Segmentation fault.
#0 db_free_columns (_r=_r at entry=0x6043ac) at db/db_res.c:80
80 RES_TYPES(_r) = NULL;
(gdb) bt full
#0 db_free_columns (_r=_r at entry=0x6043ac) at db/db_res.c:80
__FUNCTION__ = "db_free_columns"
#1 0x00000000005796cd in db_free_result (_r=0x6043ac) at db/db_res.c:115
__FUNCTION__ = "db_free_result"
#2 0x00007f27b0ccfaa8 in db_mysql_free_result (_h=0x7f27b0ef0b78, _r=<optimized out>) at dbase.c:896
__FUNCTION__ = "db_mysql_free_result"
#3 0x00007f27ac13b89f in ds_load_data () at dispatch.c:771
weight = <optimized out>
uri = <optimized out>
attrs = <optimized out>
port = <optimized out>
state = <optimized out>
id = <optimized out>
cnt = <optimized out>
res = 0x6043ac
values = <optimized out>
query_cols = {0x7f27ac34fbd0, 0x7f27ac34fbc0, 0x7f27ac34fbb0, 0x7f27ac34fba0, 0x7f27ac34fb90,
0x7f27ac34fb80}
i = <optimized out>
host = {s = 0x2418bc0 "dispatcher", len = 10}
nr_rows = <optimized out>
sock = <optimized out>
proto = <optimized out>
rows = <optimized out>
#4 ds_reload_db () at dispatch.c:781
old_data = <optimized out>
new_data = 0x7f278b373188
__FUNCTION__ = "ds_reload_db"
#5 0x00007f27ac1484c6 in mod_init () at dispatcher.c:374
avp_spec = {type = PVT_AVP, getf = 0x47ffd6 <pv_get_avp>, setf = 0x47faa6 <pv_set_avp>, pvp = {pvn = {
type = 0, u = {isname = {type = 0, name = {n = 7, s = {s = 0x7 <Address 0x7 out of bounds>,
len = 0}}}, dname = 0x0}}, pvi = {type = 0, u = {ival = 0, dval = 0x0}}, pvv = {
s = 0x0, len = 0}}, pvc = 0x0, trans = 0x0}
__FUNCTION__ = "mod_init"
#6 0x00000000004c548d in init_mod (m=0x7f27b0ef3060) at sr_module.c:459
__FUNCTION__ = "init_mod"
#7 0x00000000004c5404 in init_mod (m=0x7f27b0ef3720) at sr_module.c:454
__FUNCTION__ = "init_mod"
#8 0x00000000004c5404 in init_mod (m=0x7f27b0ef37f0) at sr_module.c:454
__FUNCTION__ = "init_mod"
#9 0x00000000004c5404 in init_mod (m=0x7f27b0ef3a88) at sr_module.c:454
__FUNCTION__ = "init_mod"
#10 0x00000000004c5404 in init_mod (m=0x7f27b0ef3b58) at sr_module.c:454
__FUNCTION__ = "init_mod"
#11 0x00000000004c6bd9 in init_modules () at sr_module.c:499
No locals.
#12 0x0000000000418ad4 in main (argc=<optimized out>, argv=<optimized out>) at main.c:1580
cfg_log_stderr = <optimized out>
cfg_stream = <optimized out>
c = <optimized out>
r = <optimized out>
tmp = 0x7fff15043f73 ""
tmp_len = <optimized out>
port = <optimized out>
proto = <optimized out>
options = 0x5ddce0 "f:cCm:M:b:l:n:N:rRvdDFETSVhw:t:u:g:P:G:W:o:"
ret = -1
seed = 2778829598
rfd = <optimized out>
__FUNCTION__ = "main"
(gdb)
```
---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/issues/406
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/devel/attachments/20150203/4a396745/attachment.htm>
More information about the Devel
mailing list