<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.16.3">
</HEAD>
<BODY>
Hi List,<BR>
<BR>
I wanted to test some things using the db_http driver and using avp_db_query to perform db queries. This happens on 1.6.1 and 1.6.2 both no-tls on 32bit BSD.<BR>
<BR>
When we load db_http and assign the db_url for avpops to it we get a core dump on startup, ive tried this:<BR>
<BR>
modparam("avpops","db_url","<A HREF="http://user:pass@localhost/db_http">http://user:pass@localhost/db_http</A>")<BR>
modparam("avpops","db_url","<A HREF="http://user:pass@localhost">http://user:pass@localhost</A>")<BR>
<BR>
If we change the db_url to say mysql we have no issues and all works well.<BR>
<BR>
Backtrace shows:<BR>
<BR>
<BR>
#0 0x00000000 in ?? ()<BR>
#1 0x285b8070 in db_query_avp (url=0x81bf244, msg=0xbfbfe84c, query=0x8221768 "SELECT foo FROM bar WHERE foo = bar", dest=0x8229b8c) at avpops_db.c:417<BR>
#2 0x285bacb6 in ops_dbquery_avps (msg=0xbfbfe84c, query=0x8229b40, url=0x81bf244, dest=0x8229b8c) at avpops_impl.c:755<BR>
#3 0x285b2f81 in w_dbquery_avps (msg=0xbfbfe84c, query=0x8229b40 "�%\034\b#", dest=0x8229b8c "\004", url=0x0) at avpops.c:1130<BR>
#4 0x08053f56 in do_action (a=0x81c2760, msg=0xbfbfe84c) at action.c:967<BR>
#5 0x08052920 in run_action_list (a=0x81c2760, msg=0xbfbfe84c) at action.c:139<BR>
#6 0x08057485 in run_top_route (a=0x81c2760, msg=0xbfbfe84c) at action.c:119<BR>
#7 0x080a31e2 in run_startup_route () at route.c:1867<BR>
#8 0x0806f7c2 in main (argc=3, argv=0xbfbfec5c) at main.c:811<BR>
<BR>
<BR>
I have also moved it out of the startup_route into a route block and the switch then crashes as soon as a call is sent to that particular route block.<BR>
<BR>
<BR>
Am I just trying to use db_http wrong and my configuration is not correct?<BR>
<BR>
Thanks for any help
</BODY>
</HTML>