I'm developing an application which connects with an external ODBC database.
When I run it on Qt, everything works fine, but when I try to opened standalone it always crash on m\_db->open().

When app crashes it throughs this error:

```
Segmentation fault (core dumped)

```

Here is the code:

```
m_db = new QSqlDatabase(QSqlDatabase::addDatabase("QODBC","edb"));
m_db->setDatabaseName(m_line);
m_db->open(); // <-// app crash here!

```

Where:

```
m_line = "Driver=/opt/sqlanywhere12/lib64/libdbodbc12.so;CommLinks=tcpip(Host=ip;port=port);ServerName=db;DatabaseName=db;Uid=uid;Pwd=psswd;"

```

Anyone has some clue?

I'm running Ubuntu 14.04 64bits.
Thanks,

**EDIT**

Well, after some more testing, it seems it stops crashing if I remove the driver configuration from the m\_line variable, but obviously, it stop working...

**EDIT2**

After configure a custom run from Qt creator, it says the breaking point is 0x7ffff6a777b9 on disassembler. What does it mean?