osmo-msc/src/libmsc
Neels Hofmeyr db8272921d sms.db: silence libdbi warnings on out-of-range index
Apparently, since libdbi 0.9.0 aka 0.9.0-5 on debian-testing, osmo-msc barfs
numerous libdbi warnings whenever a query rightfully returns no rows.

Trivially query whether there are any rows first by adding an inline wrap
function next_row().

Silenced:

  DDB <000d> ../../../../src/osmo-msc/src/libmsc/db.c:188 DBI: -6: An invalid or out-of-range index was passed to libdbi
  DDB <000d> ../../../src/libosmocore/src/backtrace.c:47 backtrace() returned 11 addresses
  DDB <000d> ../../../src/libosmocore/src/backtrace.c:57        /usr/local/bin/osmo-msc(+0xfb81) [0x555555563b81]
  DDB <000d> ../../../src/libosmocore/src/backtrace.c:57        /usr/lib/x86_64-linux-gnu/libdbi.so.1(_error_handler+0x99) [0x7ffff63f5c39]
  DDB <000d> ../../../src/libosmocore/src/backtrace.c:57        /usr/lib/x86_64-linux-gnu/libdbi.so.1(dbi_result_next_row+0x3d) [0x7ffff63f785d]
  DDB <000d> ../../../src/libosmocore/src/backtrace.c:57        /usr/local/bin/osmo-msc(+0x11172) [0x555555565172]
  DDB <000d> ../../../src/libosmocore/src/backtrace.c:57        /usr/local/bin/osmo-msc(+0x1e6bc) [0x5555555726bc]
  DDB <000d> ../../../src/libosmocore/src/backtrace.c:57        /usr/local/bin/osmo-msc(+0x1e7f6) [0x5555555727f6]
  DDB <000d> ../../../src/libosmocore/src/backtrace.c:57        /usr/local/bin/osmo-msc(+0x1f1d2) [0x5555555731d2]
  DDB <000d> ../../../src/libosmocore/src/backtrace.c:57        /usr/local/bin/osmo-msc(+0xbb86) [0x55555555fb86]
  DDB <000d> ../../../src/libosmocore/src/backtrace.c:57        /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf1) [0x7ffff5cfe561]
  DDB <000d> ../../../src/libosmocore/src/backtrace.c:57        /usr/local/bin/osmo-msc(+0xbfba) [0x55555555ffba]

Related: OS#2667
Change-Id: Ib8993c8db171d1e845a6297deef137d18506cda3
2017-12-10 14:45:15 +01:00
..
Makefile.am Add missing CFLAGS 2017-12-05 19:16:32 +00:00
a_iface.c reset: remove name variable from reset context 2017-11-20 09:22:33 +00:00
a_iface_bssap.c Remove rest_octets.h 2017-09-15 11:31:03 +02:00
auth.c rename include/openbsc to include/osmocom/msc 2017-09-06 16:41:25 +02:00
ctrl_commands.c ctrl: remove unimplemented cmds subscriber-{modify,delete} 2017-09-19 00:37:48 +02:00
db.c sms.db: silence libdbi warnings on out-of-range index 2017-12-10 14:45:15 +01:00
gsm_04_08.c fix use after free: missing conn_get on CC paging response 2017-11-27 15:40:01 +01:00
gsm_04_11.c subscr_conn: introduce usage tokens for ref error tracking 2017-11-27 15:40:01 +01:00
gsm_04_14.c rename include/openbsc to include/osmocom/msc 2017-09-06 16:41:25 +02:00
gsm_04_80.c rename include/openbsc to include/osmocom/msc 2017-09-06 16:41:25 +02:00
gsm_subscriber.c rename include/openbsc to include/osmocom/msc 2017-09-06 16:41:25 +02:00
iu_dummy.c rename include/openbsc to include/osmocom/msc 2017-09-06 16:41:25 +02:00
iucs.c rename include/openbsc to include/osmocom/msc 2017-09-06 16:41:25 +02:00
iucs_ranap.c rename include/openbsc to include/osmocom/msc 2017-09-06 16:41:25 +02:00
meas_feed.c rename include/openbsc to include/osmocom/msc 2017-09-06 16:41:25 +02:00
meas_feed.h move openbsc/* to repos root 2017-07-12 23:17:10 +00:00
mncc.c rename include/openbsc to include/osmocom/msc 2017-09-06 16:41:25 +02:00
mncc_builtin.c rename include/openbsc to include/osmocom/msc 2017-09-06 16:41:25 +02:00
mncc_sock.c Remove rest_octets.h 2017-09-15 11:31:03 +02:00
msc_ifaces.c fix build: remove obsolete header legacy_mgcp/mgcp.h 2017-09-24 19:52:25 +02:00
msc_vty.c vty: skip installing cmds now always installed by default 2017-11-01 00:51:21 +01:00
osmo_msc.c cosmetic: log error when using a conn that's in release 2017-11-27 15:40:01 +01:00
rrlp.c rename include/openbsc to include/osmocom/msc 2017-09-06 16:41:25 +02:00
silent_call.c subscr_conn: introduce usage tokens for ref error tracking 2017-11-27 15:40:01 +01:00
smpp_openbsc.c rename include/openbsc to include/osmocom/msc 2017-09-06 16:41:25 +02:00
smpp_smsc.c rename include/openbsc to include/osmocom/msc 2017-09-06 16:41:25 +02:00
smpp_smsc.h libmsc: add support for SMPP delivery receipts 2017-08-27 02:33:49 +02:00
smpp_utils.c rename include/openbsc to include/osmocom/msc 2017-09-06 16:41:25 +02:00
smpp_vty.c vty: skip installing cmds now always installed by default 2017-11-01 00:51:21 +01:00
sms_queue.c rename include/openbsc to include/osmocom/msc 2017-09-06 16:41:25 +02:00
subscr_conn.c subscr_conn: introduce usage tokens for ref error tracking 2017-11-27 15:40:01 +01:00
transaction.c subscr_conn: introduce usage tokens for ref error tracking 2017-11-27 15:40:01 +01:00
ussd.c Remove rest_octets.h 2017-09-15 11:31:03 +02:00
vty_interface_layer3.c libmsc/vty: don't access old bsc rate counters 2017-11-21 17:33:52 +01:00