<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">Hi Federico,<br>
<br>
Segfaults are 100% not by design. Typically if something seg
faulted, either there is a logic bug or a component mismatch. The
you should definitely be able to use more than one connection (we
use multiple connections with postgres odbc with no issue).<br>
<br>
If Asterisk segfaults when using odbc<br>
Try this:<br>
- use ps and get the pid of Asterisk<br>
- run gdb, attach to the asterisk pid<br>
- do something that would cause the seg fault<br>
- get a backtrace (bt) and show all threads backtrace (thread
apply all bt)<br>
<br>
if Asterisk segfaults when starting up<br>
Run Asterisk straight from gdb<br>
Wait for segfault, get backtrace, and all threads backtrace<br>
<br>
<br>
<br>
<br>
On 8/16/23 18:48, Federico wrote:<br>
</div>
<blockquote type="cite"
cite="mid:003a01d9d093$ba3b2af0$2eb180d0$@digitalipvoice.com">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="Generator"
content="Microsoft Word 15 (filtered medium)">
<style>@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}div.WordSection1
{page:WordSection1;}</style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal">I tested this issue with version 13 and
version 18.<o:p></o:p></p>
<p class="MsoNormal">In res_odbc.conf, if I add a second, new
data source like<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">[asterisk]<o:p></o:p></p>
<p class="MsoNormal">enabled=yes<o:p></o:p></p>
<p class="MsoNormal">dsn=asterisk<o:p></o:p></p>
<p class="MsoNormal">sanitysql => select 1<o:p></o:p></p>
<p class="MsoNormal">isolation => read_committed<o:p></o:p></p>
<p class="MsoNormal">username=root<o:p></o:p></p>
<p class="MsoNormal">;password=<o:p></o:p></p>
<p class="MsoNormal">pre-connect => yes<o:p></o:p></p>
<p class="MsoNormal">forcecommit => yes<o:p></o:p></p>
<p class="MsoNormal">connect_timeout => 10<o:p></o:p></p>
<p class="MsoNormal">negative_connection_cache => 0<o:p></o:p></p>
<p class="MsoNormal">max_connections =>500<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">my odbc.ini<o:p></o:p></p>
<p class="MsoNormal">[cdr]<o:p></o:p></p>
<p class="MsoNormal">Description = MySQL ODBC Driver Testing<o:p></o:p></p>
<p class="MsoNormal">Driver = maria<o:p></o:p></p>
<p class="MsoNormal">Socket = /var/run/mysqld/mysqld.sock<o:p></o:p></p>
<p class="MsoNormal">User = root<o:p></o:p></p>
<p class="MsoNormal">Password =<o:p></o:p></p>
<p class="MsoNormal">Database = public<o:p></o:p></p>
<p class="MsoNormal">Option = 3<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I get, immediately, segmentation fault.<o:p></o:p></p>
<p class="MsoNormal">With only one, it works fine.<o:p></o:p></p>
<p class="MsoNormal">Is this by design?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Philip<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
</blockquote>
<br>
</body>
</html>