[asterisk-bugs] [JIRA] (ASTERISK-30502) asterisk crashes when loading res_odbc

Philip de Orleans (JIRA) noreply at issues.asterisk.org
Mon Apr 24 15:22:03 CDT 2023


    [ https://issues.asterisk.org/jira/browse/ASTERISK-30502?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=261825#comment-261825 ] 

Philip de Orleans edited comment on ASTERISK-30502 at 4/24/23 3:21 PM:
-----------------------------------------------------------------------



[cdr]
Description = MySQL ODBC Driver Testing
Driver = maria
Socket = /var/lib/mysql/mysql.sock
User = root
Database = asterisk
Option = 3

[local]
Description = MySQL ODBC Driver Testing
Driver = maria
Socket = /var/lib/mysql/mysql.sock
User = root
Password = 
Database = asterisk
Option = 3

cat /etc/odbcinst.ini
[ODBC]
Trace=no
Trace File=/tmp/sql.log
Pooling=yes

[maria]
Description=ODBC for MySQL
Driver=/usr/lib64/mariadb/libmaodbc.so
FileUsage=1
threading=0



as I said
isql cdr and isql local do work fine.

The only strange thing is the kernel, this is uname -r
6.1.0-0.deb11.5-amd64
cat /proc/cpuinfo | grep sse2
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts mmx fxsr sse sse2 ss syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts nopl xtopology tsc_reliable nonstop_tsc cpuid tsc_known_freq pni pclmulqdq ssse3 cx16 pcid

This a a vmware ESXI box, debian 11 with a Centos 8 container.
The weird thing is that Asterisk works fine, except for res_odbc.so
It just crashes if load it, always.

I am using gdb, but I can use valgrind if you send me precise instructions.




was (Author: falves111):



[cdr]
Description = MySQL ODBC Driver Testing
Driver = maria
Socket = /var/lib/mysql/mysql.sock
User = root
Database = asterisk
Option = 3

[local]
Description = MySQL ODBC Driver Testing
Driver = maria
Socket = /var/lib/mysql/mysql.sock
User = root
Password = 
Database = asterisk
Option = 3

cat /etc/odbcinst.ini
[ODBC]
Trace=no
Trace File=/tmp/sql.log
Pooling=yes

[maria]
Description=ODBC for MySQL
Driver=/usr/lib64/mariadb/libmaodbc.so
FileUsage=1
threading=0



as I said
isql cdr and isql local do work fine.

The only strange thing is the kernel, this is uname -r
6.1.0-0.deb11.5-amd64
cat /proc/cpuinfo | grep sse2
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts mmx fxsr sse sse2 ss syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts nopl xtopology tsc_reliable nonstop_tsc cpuid tsc_known_freq pni pclmulqdq ssse3 cx16 pcid

This a a vmware ESXI box, debian 11 with a Centos 8 container.
The weird thing is that Asterisk works fine, except for res_odbc.so
It just crashes if load it, always.





> asterisk crashes when loading res_odbc
> --------------------------------------
>
>                 Key: ASTERISK-30502
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-30502
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Resources/res_odbc
>    Affects Versions: 18.11.2
>         Environment: Linux Centos 7 and 8
>            Reporter: Philip de Orleans
>         Attachments: asterisk-crash.txt
>
>
> I use mariadb and the odbc connector. The command Isql works fine. when I try to load res_odbc, it crashes in both operating systems and with two versions of the driver. I have a trace, will upload it next



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list