<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
{mso-style-priority:99;
mso-style-link:"\0422\0435\043A\0441\0442 \0417\043D\0430\043A";
margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
span.EmailStyle17
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.a
{mso-style-name:"\0422\0435\043A\0441\0442 \0417\043D\0430\043A";
mso-style-priority:99;
mso-style-link:\0422\0435\043A\0441\0442;
font-family:"Calibri","sans-serif";}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";}
@page WordSection1
{size:612.0pt 792.0pt;
margin:2.0cm 42.5pt 2.0cm 3.0cm;}
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]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoPlainText">I use Erlang OTP r16b02 with odbc-2.10.17, unixODBC 2.3.1, Oracle Client 11.2.3 on the Red Hat Enterprise Linux Server 6.3 x86_64.<o:p></o:p></p>
<p class="MsoPlainText">And I get some glibc error messages:<o:p></o:p></p>
<p class="MsoPlainText">*** glibc detected *** /home/user/app1/lib/odbc-2.10.17/priv/bin/odbcserver: free(): invalid next size (fast): 0x0000000002192490 ***<o:p></o:p></p>
<p class="MsoPlainText">*** glibc detected *** /home/user/app1/lib/odbc-2.10.17/priv/bin/odbcserver: corrupted double-linked list: 0x00000000013d7110 ***<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">Often odbcserver crashes…<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">Stacktrace 1:<o:p></o:p></p>
<p class="MsoPlainText">Core was generated by `/home/user/app1/lib/odbc-2.10.1'.<o:p></o:p></p>
<p class="MsoPlainText">Program terminated with signal SIGABRT, Aborted.<o:p></o:p></p>
<p class="MsoPlainText">(gdb) bt<o:p></o:p></p>
<p class="MsoPlainText">#0 0x0000003c4160f3cb in raise () from /lib64/libpthread.so.0<o:p></o:p></p>
<p class="MsoPlainText">#1 0x00007f9d98336442 in skgesigOSCrash () from /u01/app/oracle/product/11.2.0/cl11203/lib/libclntsh.so.11.1<o:p></o:p></p>
<p class="MsoPlainText">#2 0x00007f9d985d8cbd in kpeDbgSignalHandler () from /u01/app/oracle/product/11.2.0/cl11203/lib/libclntsh.so.11.1<o:p></o:p></p>
<p class="MsoPlainText">#3 0x00007f9d98336652 in skgesig_sigactionHandler () from /u01/app/oracle/product/11.2.0/cl11203/lib/libclntsh.so.11.1<o:p></o:p></p>
<p class="MsoPlainText">#4 <signal handler called><o:p></o:p></p>
<p class="MsoPlainText">#5 0x0000003c412328a5 in raise () from /lib64/libc.so.6<o:p></o:p></p>
<p class="MsoPlainText">#6 0x0000003c41234085 in abort () from /lib64/libc.so.6<o:p></o:p></p>
<p class="MsoPlainText">#7 0x0000003c4126fa37 in __libc_message () from /lib64/libc.so.6<o:p></o:p></p>
<p class="MsoPlainText">#8 0x0000003c41275366 in malloc_printerr () from /lib64/libc.so.6<o:p></o:p></p>
<p class="MsoPlainText">#9 0x0000003c41275770 in malloc_consolidate () from /lib64/libc.so.6<o:p></o:p></p>
<p class="MsoPlainText">#10 0x0000003c41278605 in _int_malloc () from /lib64/libc.so.6<o:p></o:p></p>
<p class="MsoPlainText">#11 0x0000003c41279826 in calloc () from /lib64/libc.so.6<o:p></o:p></p>
<p class="MsoPlainText">#12 0x00007f9d9a08115c in __alloc_stmt () at __handles.c:771<o:p></o:p></p>
<p class="MsoPlainText">#13 0x00007f9d9a04d1b5 in __SQLAllocHandle (handle_type=<optimized out>, input_handle=0x12e4970, output_handle=0x7fff8b2ca130, requested_version=0) at SQLAllocHandle.c:580<o:p></o:p></p>
<p class="MsoPlainText">#14 0x0000000000403bac in init_param_statement (status=<optimized out>, state=<optimized out>, num_param_values=<optimized out>, cols=<optimized out>) at odbcserver.c:2372<o:p></o:p></p>
<p class="MsoPlainText">#15 db_param_query (buffer=0x13d7281 "\203h\003k", state=0x7fff8b2ca120) at odbcserver.c:859<o:p></o:p></p>
<p class="MsoPlainText">#16 0x0000000000405332 in handle_db_request (state=<optimized out>, reqstring=<optimized out>) at odbcserver.c:424<o:p></o:p></p>
<p class="MsoPlainText">#17 database_handler (port=<optimized out>) at odbcserver.c:371<o:p></o:p></p>
<p class="MsoPlainText">#18 0x00000000004059ce in main () at odbcserver.c:296<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">Stacktrace2:<o:p></o:p></p>
<p class="MsoPlainText">Core was generated by `/home/user/app1/lib/odbc-2.10.1'.<o:p></o:p></p>
<p class="MsoPlainText">Program terminated with signal SIGABRT, Aborted.<o:p></o:p></p>
<p class="MsoPlainText">(gdb) bt<o:p></o:p></p>
<p class="MsoPlainText">#0 0x0000003c4160f3cb in raise () from /lib64/libpthread.so.0<o:p></o:p></p>
<p class="MsoPlainText">#1 0x00007f3472c1e442 in skgesigOSCrash () from /u01/app/oracle/product/11.2.0/cl11203/lib/libclntsh.so.11.1<o:p></o:p></p>
<p class="MsoPlainText">#2 0x00007f3472ec0cbd in kpeDbgSignalHandler () from /u01/app/oracle/product/11.2.0/cl11203/lib/libclntsh.so.11.1<o:p></o:p></p>
<p class="MsoPlainText">#3 0x00007f3472c1e652 in skgesig_sigactionHandler () from /u01/app/oracle/product/11.2.0/cl11203/lib/libclntsh.so.11.1<o:p></o:p></p>
<p class="MsoPlainText">#4 <signal handler called><o:p></o:p></p>
<p class="MsoPlainText">#5 0x0000003c412328a5 in raise () from /lib64/libc.so.6<o:p></o:p></p>
<p class="MsoPlainText">#6 0x0000003c41234085 in abort () from /lib64/libc.so.6<o:p></o:p></p>
<p class="MsoPlainText">#7 0x0000003c4126fa37 in __libc_message () from /lib64/libc.so.6<o:p></o:p></p>
<p class="MsoPlainText">#8 0x0000003c41275366 in malloc_printerr () from /lib64/libc.so.6<o:p></o:p></p>
<p class="MsoPlainText">#9 0x0000003c41277e93 in _int_free () from /lib64/libc.so.6<o:p></o:p></p>
<p class="MsoPlainText">#10 0x00007f3473b8c37a in MEMFree () from /u01/app/oracle/product/11.2.0/cl11203/lib/libsqora.so.11.1<o:p></o:p></p>
<p class="MsoPlainText">#11 0x00007f3473b83908 in bcoResetParam () from /u01/app/oracle/product/11.2.0/cl11203/lib/libsqora.so.11.1<o:p></o:p></p>
<p class="MsoPlainText">#12 0x00007f3473b83b00 in bcoResetParams () from /u01/app/oracle/product/11.2.0/cl11203/lib/libsqora.so.11.1<o:p></o:p></p>
<p class="MsoPlainText">#13 0x00007f3473b3a759 in bcoSQLFreeStmt () from /u01/app/oracle/product/11.2.0/cl11203/lib/libsqora.so.11.1<o:p></o:p></p>
<p class="MsoPlainText">#14 0x00007f3473b90a90 in bccSQLFreeStmtLckd () from /u01/app/oracle/product/11.2.0/cl11203/lib/libsqora.so.11.1<o:p></o:p></p>
<p class="MsoPlainText">#15 0x00007f3473b90864 in bccSQLFreeStmt () from /u01/app/oracle/product/11.2.0/cl11203/lib/libsqora.so.11.1<o:p></o:p></p>
<p class="MsoPlainText">#16 0x00007f3473b9157e in SQLFreeStmt () from /u01/app/oracle/product/11.2.0/cl11203/lib/libsqora.so.11.1<o:p></o:p></p>
<p class="MsoPlainText">#17 0x00007f34749462f8 in SQLFreeStmt (statement_handle=0x2195480, option=3) at SQLFreeStmt.c:247<o:p></o:p></p>
<p class="MsoPlainText">#18 0x0000000000403f62 in db_param_query (buffer=<optimized out>, state=0x7fff2dda97d0) at odbcserver.c:911<o:p></o:p></p>
<p class="MsoPlainText">#19 0x0000000000405332 in handle_db_request (state=<optimized out>, reqstring=<optimized out>) at odbcserver.c:424<o:p></o:p></p>
<p class="MsoPlainText">#20 database_handler (port=<optimized out>) at odbcserver.c:371<o:p></o:p></p>
<p class="MsoPlainText">#21 0x00000000004059ce in main () at odbcserver.c:296<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">Is it known bug?<o:p></o:p></p>
<p class="MsoPlainText">It’s looks like odbcserver has invalid memory usage code and r17.3 has no significant changes in the odbc.<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
</div>
</body>
</html>