| Summary: | dev-db/oracle-instantclient-basic-10.2.0.3-r1: linking with libocci, a program crashes when releasing memory in std::vector functions | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | kunitoki (Lucio Asnaghi) <kunitoki> |
| Component: | New packages | Assignee: | Tobias Scherbaum (RETIRED) <dertobi123> |
| Status: | RESOLVED TEST-REQUEST | ||
| Severity: | normal | ||
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
|
Description
kunitoki (Lucio Asnaghi)
2009-02-02 21:12:24 UTC
Testing program:
int test(int argc, char **argv)
{
const string userName = ".........";
const string password = "....";
const string connectString = "..";
Environment *env = Environment::createEnvironment();
{
Connection *conn = env->createConnection(userName, password, connectString);
Statement *stmt = conn->createStatement("SELECT * FROM TEST_TABLE");
ResultSet *rs = stmt->executeQuery();
vector<MetaData> md = rs->getColumnListMetaData();
for (int i = 0; i < md.size(); i++)
cout << "Column name: " << md[i].getString(MetaData::ATTR_NAME) << endl;
stmt->closeResultSet(rs);
conn->terminateStatement(stmt);
env->terminateConnection(conn);
}
Environment::terminateEnvironment(env);
return 0;
}
this produce:
Column name: ID
*** glibc detected *** double free or corruption (!prev): 0x08c52568 ***
Aborted
applying OCCI libraries compiled with gcc 3.4.5 (from the link) this runs as expected.
Please try again w/ 11.2*. Please re-open if this still an issue then. |