See <https://kamailio.sipwise.com/job/kamailiodev-nightly-binaries/architecture=…>
------------------------------------------
[...truncated 319.41 KB...]
CC (gcc) [M app_perl.so] kamailioxs.o
LD (gcc) [M app_perl.so] app_perl.so
CC (gcc) [M db_perlvdb.so] perlvdb_oohelpers.o
CC (gcc) [M db_perlvdb.so] perlvdb_conv.o
CC (gcc) [M db_perlvdb.so] db_perlvdb.o
CC (gcc) [M db_perlvdb.so] perlvdbfunc.o
make[4]: 'libsrdb1.so.1.0' is up to date.
LD (gcc) [M db_perlvdb.so] db_perlvdb.so
make[2]: Leaving directory '/tmp/buildd/kamailio-5.2.0~dev4+0~20180221005652.1050+jessie/src'
make[1]: Leaving directory '/tmp/buildd/kamailio-5.2.0~dev4+0~20180221005652.1050+jessie'
/usr/bin/make every-module group_include="kutils"
make[1]: Entering directory '/tmp/buildd/kamailio-5.2.0~dev4+0~20180221005652.1050+jessie'
/usr/bin/make -C src/ every-module
make[2]: Entering directory '/tmp/buildd/kamailio-5.2.0~dev4+0~20180221005652.1050+jessie/src'
CC (gcc) [M utils.so] xcap_auth.o
CC (gcc) [M utils.so] pidf.o
CC (gcc) [M utils.so] conf.o
CC (gcc) [M utils.so] utils.o
make[4]: 'libsrdb1.so.1.0' is up to date.
LD (gcc) [M utils.so] utils.so
CC (gcc) [M http_client.so] http_client.o
CC (gcc) [M http_client.so] curlcon.o
CC (gcc) [M http_client.so] curlrpc.o
CC (gcc) [M http_client.so] curl_api.o
CC (gcc) [M http_client.so] functions.o
LD (gcc) [M http_client.so] http_client.so
make[2]: Leaving directory '/tmp/buildd/kamailio-5.2.0~dev4+0~20180221005652.1050+jessie/src'
make[1]: Leaving directory '/tmp/buildd/kamailio-5.2.0~dev4+0~20180221005652.1050+jessie'
/usr/bin/make every-module group_include="klua"
make[1]: Entering directory '/tmp/buildd/kamailio-5.2.0~dev4+0~20180221005652.1050+jessie'
/usr/bin/make -C src/ every-module
make[2]: Entering directory '/tmp/buildd/kamailio-5.2.0~dev4+0~20180221005652.1050+jessie/src'
CC (gcc) [M app_lua.so] app_lua_mod.o
CC (gcc) [M app_lua.so] app_lua_exp.o
CC (gcc) [M app_lua.so] app_lua_sr.o
CC (gcc) [M app_lua.so] app_lua_api.o
CC (gcc) [M app_lua.so] app_lua_kemi_export.o
LD (gcc) [M app_lua.so] app_lua.so
make[2]: Leaving directory '/tmp/buildd/kamailio-5.2.0~dev4+0~20180221005652.1050+jessie/src'
make[1]: Leaving directory '/tmp/buildd/kamailio-5.2.0~dev4+0~20180221005652.1050+jessie'
/usr/bin/make every-module group_include="kmemcached"
make[1]: Entering directory '/tmp/buildd/kamailio-5.2.0~dev4+0~20180221005652.1050+jessie'
/usr/bin/make -C src/ every-module
make[2]: Entering directory '/tmp/buildd/kamailio-5.2.0~dev4+0~20180221005652.1050+jessie/src'
CC (gcc) [M memcached.so] memcached.o
CC (gcc) [M memcached.so] mcd_var.o
LD (gcc) [M memcached.so] memcached.so
make[2]: Leaving directory '/tmp/buildd/kamailio-5.2.0~dev4+0~20180221005652.1050+jessie/src'
make[1]: Leaving directory '/tmp/buildd/kamailio-5.2.0~dev4+0~20180221005652.1050+jessie'
/usr/bin/make every-module group_include="ksnmpstats"
make[1]: Entering directory '/tmp/buildd/kamailio-5.2.0~dev4+0~20180221005652.1050+jessie'
/usr/bin/make -C src/ every-module
make[2]: Entering directory '/tmp/buildd/kamailio-5.2.0~dev4+0~20180221005652.1050+jessie/src'
CC (gcc) [M snmpstats.so] snmpSIPRegUserTable.o
CC (gcc) [M snmpstats.so] utilities.o
CC (gcc) [M snmpstats.so] snmpSIPContactTable.o
CC (gcc) [M snmpstats.so] snmpSIPMethodSupportedTable.o
CC (gcc) [M snmpstats.so] snmpSIPStatusCodesTable.o
CC (gcc) [M snmpstats.so] interprocess_buffer.o
CC (gcc) [M snmpstats.so] alarm_checks.o
CC (gcc) [M snmpstats.so] hashTable.o
CC (gcc) [M snmpstats.so] snmpSIPCommonObjects.o
CC (gcc) [M snmpstats.so] snmpSIPServerObjects.o
CC (gcc) [M snmpstats.so] kamailioServer.o
CC (gcc) [M snmpstats.so] snmp_statistics.o
CC (gcc) [M snmpstats.so] snmpObjects.o
CC (gcc) [M snmpstats.so] kamailioNetConfig.o
CC (gcc) [M snmpstats.so] snmpMIBNotifications.o
CC (gcc) [M snmpstats.so] snmpSIPPortTable.o
CC (gcc) [M snmpstats.so] kamailioNet.o
CC (gcc) [M snmpstats.so] snmpstats.o
CC (gcc) [M snmpstats.so] snmpSIPRegUserLookupTable.o
CC (gcc) [M snmpstats.so] sub_agent.o
LD (gcc) [M snmpstats.so] snmpstats.so
make[2]: Leaving directory '/tmp/buildd/kamailio-5.2.0~dev4+0~20180221005652.1050+jessie/src'
make[1]: Leaving directory '/tmp/buildd/kamailio-5.2.0~dev4+0~20180221005652.1050+jessie'
/usr/bin/make every-module group_include="kcarrierroute"
make[1]: Entering directory '/tmp/buildd/kamailio-5.2.0~dev4+0~20180221005652.1050+jessie'
/usr/bin/make -C src/ every-module
make[2]: Entering directory '/tmp/buildd/kamailio-5.2.0~dev4+0~20180221005652.1050+jessie/src'
CC (gcc) [M carrierroute.so] parser_carrierroute.o
CC (gcc) [M carrierroute.so] cr_db.o
CC (gcc) [M carrierroute.so] cr_config.o
CC (gcc) [M carrierroute.so] config.o
CC (gcc) [M carrierroute.so] cr_func.o
CC (gcc) [M carrierroute.so] cr_fifo.o
CC (gcc) [M carrierroute.so] cr_domain.o
CC (gcc) [M carrierroute.so] cr_carrier.o
CC (gcc) [M carrierroute.so] cr_rule.o
CC (gcc) [M carrierroute.so] cr_map.o
CC (gcc) [M carrierroute.so] db_carrierroute.o
CC (gcc) [M carrierroute.so] cr_fixup.o
CC (gcc) [M carrierroute.so] carrierroute.o
CC (gcc) [M carrierroute.so] cr_data.o
CC (gcc) [M carrierroute.so] prime_hash.o
make[4]: 'libtrie.so.1.0' is up to date.
make[4]: 'libsrdb1.so.1.0' is up to date.
LD (gcc) [M carrierroute.so] carrierroute.so
make[2]: Leaving directory '/tmp/buildd/kamailio-5.2.0~dev4+0~20180221005652.1050+jessie/src'
make[1]: Leaving directory '/tmp/buildd/kamailio-5.2.0~dev4+0~20180221005652.1050+jessie'
/usr/bin/make every-module group_include="kxmpp"
make[1]: Entering directory '/tmp/buildd/kamailio-5.2.0~dev4+0~20180221005652.1050+jessie'
/usr/bin/make -C src/ every-module
make[2]: Entering directory '/tmp/buildd/kamailio-5.2.0~dev4+0~20180221005652.1050+jessie/src'
CC (gcc) [M xmpp.so] sha.o
CC (gcc) [M xmpp.so] xmpp_server.o
CC (gcc) [M xmpp.so] xmpp_api.o
CC (gcc) [M xmpp.so] xpool.o
CC (gcc) [M xmpp.so] xode.o
CC (gcc) [M xmpp.so] xode_str.o
CC (gcc) [M xmpp.so] xmpp_component.o
CC (gcc) [M xmpp.so] xmpp.o
CC (gcc) [M xmpp.so] util.o
CC (gcc) [M xmpp.so] xsnprintf.o
CC (gcc) [M xmpp.so] xstream.o
CC (gcc) [M xmpp.so] xode_from.o
CC (gcc) [M xmpp.so] network.o
LD (gcc) [M xmpp.so] xmpp.so
make[2]: Leaving directory '/tmp/buildd/kamailio-5.2.0~dev4+0~20180221005652.1050+jessie/src'
make[1]: Leaving directory '/tmp/buildd/kamailio-5.2.0~dev4+0~20180221005652.1050+jessie'
/usr/bin/make every-module group_include="kcpl"
make[1]: Entering directory '/tmp/buildd/kamailio-5.2.0~dev4+0~20180221005652.1050+jessie'
/usr/bin/make -C src/ every-module
make[2]: Entering directory '/tmp/buildd/kamailio-5.2.0~dev4+0~20180221005652.1050+jessie/src'
CC (gcc) [M cplc.so] sub_list.o
CC (gcc) [M cplc.so] cpl_parser.o
CC (gcc) [M cplc.so] cpl_run.o
CC (gcc) [M cplc.so] cpl_time.o
CC (gcc) [M cplc.so] cpl_loader.o
CC (gcc) [M cplc.so] cpl_db.o
CC (gcc) [M cplc.so] cpl_nonsig.o
CC (gcc) [M cplc.so] cpl_log.o
CC (gcc) [M cplc.so] cplc.o
CC (gcc) [M cplc.so] cpl_sig.o
make[4]: 'libsrdb1.so.1.0' is up to date.
LD (gcc) [M cplc.so] cplc.so
make[2]: Leaving directory '/tmp/buildd/kamailio-5.2.0~dev4+0~20180221005652.1050+jessie/src'
make[1]: Leaving directory '/tmp/buildd/kamailio-5.2.0~dev4+0~20180221005652.1050+jessie'
/usr/bin/make every-module group_include="kredis"
make[1]: Entering directory '/tmp/buildd/kamailio-5.2.0~dev4+0~20180221005652.1050+jessie'
/usr/bin/make -C src/ every-module
make[2]: Entering directory '/tmp/buildd/kamailio-5.2.0~dev4+0~20180221005652.1050+jessie/src'
CC (gcc) [M db_redis.so] redis_dbase.o
redis_dbase.c: In function 'db_redis_dump_reply':
redis_dbase.c:39:9: warning: format '%lu' expects argument of type 'long unsigned int', but argument 10 has type 'size_t' [-Wformat=]
LM_DBG("printing %lu elements in array reply\n", reply->elements);
^
redis_dbase.c:39:9: warning: format '%lu' expects argument of type 'long unsigned int', but argument 8 has type 'size_t' [-Wformat=]
redis_dbase.c: In function 'db_redis_scan_query_keys':
redis_dbase.c:679:13: warning: format '%lu' expects argument of type 'long unsigned int', but argument 12 has type 'size_t' [-Wformat=]
LM_ERR("Invalid number of reply elements for scan on table '%.*s', expected 2, got %lu\n",
^
redis_dbase.c:679:13: warning: format '%lu' expects argument of type 'long unsigned int', but argument 10 has type 'size_t' [-Wformat=]
redis_dbase.c:711:17: warning: format '%lu' expects argument of type 'long unsigned int', but argument 10 has type 'size_t' [-Wformat=]
LM_ERR("Invalid null key at cursor result index %lu while scanning table '%.*s'\n",
^
redis_dbase.c:711:17: warning: format '%lu' expects argument of type 'long unsigned int', but argument 8 has type 'size_t' [-Wformat=]
redis_dbase.c:716:17: warning: format '%lu' expects argument of type 'long unsigned int', but argument 10 has type 'size_t' [-Wformat=]
LM_ERR("Invalid key type at cursor result index %lu while scanning table '%.*s', expected string\n",
^
redis_dbase.c:716:17: warning: format '%lu' expects argument of type 'long unsigned int', but argument 8 has type 'size_t' [-Wformat=]
redis_dbase.c: In function 'db_redis_convert_row':
redis_dbase.c:980:17: warning: format '%lu' expects argument of type 'long unsigned int', but argument 10 has type 'size_t' [-Wformat=]
LM_DBG("column %lu does not match, ignore row\n", col);
^
redis_dbase.c:980:17: warning: format '%lu' expects argument of type 'long unsigned int', but argument 8 has type 'size_t' [-Wformat=]
redis_dbase.c:995:9: warning: format '%lu' expects argument of type 'long unsigned int', but argument 13 has type 'size_t' [-Wformat=]
LM_ERR("Invalid number of columns at row %d/%d, expecting %d, got %lu\n",
^
redis_dbase.c:995:9: warning: format '%lu' expects argument of type 'long unsigned int', but argument 11 has type 'size_t' [-Wformat=]
redis_dbase.c:1006:9: warning: format '%lu' expects argument of type 'long unsigned int', but argument 10 has type 'size_t' [-Wformat=]
LM_DBG("converting column #%lu of row #%d", colidx, RES_ROW_N(_r));
^
redis_dbase.c:1006:9: warning: format '%lu' expects argument of type 'long unsigned int', but argument 8 has type 'size_t' [-Wformat=]
redis_dbase.c: In function 'db_redis_perform_delete':
redis_dbase.c:1311:21: warning: format '%lu' expects argument of type 'long unsigned int', but argument 10 has type 'size_t' [-Wformat=]
LM_DBG("column %lu does not match, ignore row\n", col);
^
redis_dbase.c:1311:21: warning: format '%lu' expects argument of type 'long unsigned int', but argument 8 has type 'size_t' [-Wformat=]
redis_dbase.c: In function 'db_redis_perform_update':
redis_dbase.c:1563:21: warning: format '%lu' expects argument of type 'long unsigned int', but argument 10 has type 'size_t' [-Wformat=]
LM_DBG("column %lu does not match, ignore row\n", col);
^
redis_dbase.c:1563:21: warning: format '%lu' expects argument of type 'long unsigned int', but argument 8 has type 'size_t' [-Wformat=]
CC (gcc) [M db_redis.so] redis_connection.o
redis_connection.c: In function 'print_query':
redis_connection.c:29:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (redis_key_t *k = query; k; k = k->next) {
^
redis_connection.c:29:5: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
../../Makefile.rules:100: recipe for target 'redis_connection.o' failed
make[3]: *** [redis_connection.o] Error 1
Makefile:511: recipe for target 'modules' failed
make[2]: *** [modules] Error 1
make[2]: Leaving directory '/tmp/buildd/kamailio-5.2.0~dev4+0~20180221005652.1050+jessie/src'
Makefile:27: recipe for target 'every-module' failed
make[1]: *** [every-module] Error 2
make[1]: Leaving directory '/tmp/buildd/kamailio-5.2.0~dev4+0~20180221005652.1050+jessie'
debian/rules:137: recipe for target 'build-stamp' failed
make: *** [build-stamp] Error 2
dpkg-buildpackage: error: debian/rules build-arch gave error exit status 2
E: Failed autobuilding of package
I: user script /var/cache/pbuilder/build/cow.13664/tmp/hooks/C10shell starting
┌──────────────────────────────────────────────────────────────────────────────┐
│ FTBFS - problem with building Debian package │
└──────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────┐
│ DEB_KEEP_BUILD_ENV is not set to 'true', not keeping build environment │
└──────────────────────────────────────────────────────────────────────────────┘
I: user script /var/cache/pbuilder/build/cow.13664/tmp/hooks/C10shell finished
I: unmounting /tmp/apt-jdg_GyNJjx filesystem
I: unmounting dev/pts filesystem
I: unmounting run/shm filesystem
I: unmounting proc filesystem
-> Cleaning COW directory
forking: rm -rf /var/cache/pbuilder/build//cow.13664
+ '[' 1 -eq 0 ']'
+ bailout 1 'Error: Failed to build with cowbuilder.'
+ '[' -n 1 ']'
+ EXIT=1
+ '[' -n 'Error: Failed to build with cowbuilder.' ']'
+ echo 'Error: Failed to build with cowbuilder.'
Error: Failed to build with cowbuilder.
+ rm -f /var/run/lock/jessie-i386.building.11276
+ '[' -r /var/run/lock/jessie-i386.update.11276 ']'
+ '[' '' = true ']'
+ echo '*** Getting rid of files in <https://kamailio.sipwise.com/job/kamailiodev-nightly-binaries/architecture=…> to avoid problems in next run. ***'
*** Getting rid of files in <https://kamailio.sipwise.com/job/kamailiodev-nightly-binaries/architecture=…> to avoid problems in next run. ***
+ rm -f '<https://kamailio.sipwise.com/job/kamailiodev-nightly-binaries/architecture=…'>
+ '[' -n /tmp/tmp.H2t9P2cv8U ']'
+ rm -rf /tmp/tmp.H2t9P2cv8U
+ '[' -n /tmp/apt-jdg_GyNJjx ']'
+ sudo rm -rf /tmp/apt-jdg_GyNJjx
+ '[' -n 3200 ']'
++ sed -e 's/^\([0-9]*\).*/\1/'
+ SECONDS=319
++ date
+ echo '*** Finished execution of /usr/bin/build-and-provide-package at Wed Feb 21 02:10:34 UTC 2018 [running 319 seconds] ***'
*** Finished execution of /usr/bin/build-and-provide-package at Wed Feb 21 02:10:34 UTC 2018 [running 319 seconds] ***
+ exit 1
Build step 'Execute shell' marked build as failure
Archiving artifacts
Recording fingerprints
TAP Reports Processing: START
Looking for TAP results report in workspace using pattern: report/*.tap
Did not find any matching files.
Recording test results
ERROR: Step ‘Publish JUnit test result report’ failed: No test report files were found. Configuration error?
### Description
We are having cores when stopping the lb service if TLS is enabled.
### Troubleshooting
#### Debugging Data
```
Core was generated by `/usr/sbin/kamailio -f /etc/kamailio/lb/kamailio.cfg -P /var/run/kamailio/kamail'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 ossl_init_thread_stop (locals=0x7faaf4442d58) at ../crypto/init.c:332
332 ../crypto/init.c: No such file or directory.
(gdb) bt full
#0 ossl_init_thread_stop (locals=0x7faaf4442d58) at ../crypto/init.c:332
No locals.
#1 0x00007faaf8d15234 in OPENSSL_cleanup () at ../crypto/init.c:400
currhandler = <optimized out>
lasthandler = <optimized out>
#2 0x00007fab014bb910 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#3 0x00007fab014bb96a in exit () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#4 0x0000556782094615 in handle_sigs () at main.c:698
chld = <optimized out>
chld_status = 0
memlog = <optimized out>
__func__ = "handle_sigs"
#5 0x000055678209aa05 in main_loop () at main.c:1747
```
#### Log Messages
```
lb[8618]: WARNING: tls [tls_init.c:704]: init_tls_h(): tls: openssl bug #1491 (crash/mem leaks on low memory) workaround enabled (on low memory tls operations will fail preemptively) with free memory thresholds 7340032 and 3670016 bytes
```
### Additional Information
* **Kamailio Version** - output of `kamailio -v`
```
This is NGCP version based on 4.4.6
kamailio -v
version: kamailio 4.4.6 (x86_64/linux) becbde
flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: becbde
compiled with gcc 6.3.0
```
* **Operating System**:
```
Debian stretch
Linux spce 4.9.0-3-amd64 #1 SMP Debian 4.9.30-2+deb9u2 (2017-06-26) x86_64 GNU/Linux
libssl1.1 version 1.1.0f-3
```
--
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/1189