By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,226 Members | 1,027 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,226 IT Pros & Developers. It's quick & easy.

crash when trying to get snapshot size

P: n/a
Hi all
I have a multi-threaded application running on AIX 5.3 and DB2 8.2 that
takes snapshots from different threads. Each thread that takes snapshot
allocates an application context (using sqleBeginCtx), and frees it
when the thread goes down (using sqleEndCtx).
The application runs well for a while and after a couple of hours it
crashes when it tries to get the snapshot size. After the application
crashes at the first time, it keeps crashing until I restart the
database instance.

I attached at the end a code snippet and the core dump; I'll
appreciate any help with solving this issue.
TIA
YaronG

May 7 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
the code snippet :
RefPtr<SqlmaWrapper> sqlma = new SqlmaWrapper();
sqlma->setSnapshotType(snapshotType);
sqlma->setSnapshotParam(snapshotParam);
memset(&getSnapshotSizeParam,0,sizeof(getSnapshotS izeParam));
getSnapshotSizeParam.piSqlmaData = sqlma->getSqlma();
getSnapshotSizeParam.iVersion = SQLM_CURRENT_VERSION;
getSnapshotSizeParam.iNodeNumber = SQLM_ALL_NODES;
getSnapshotSizeParam.iSnapshotClass = SQLM_CLASS_DEFAULT;
getSnapshotSizeParam.poBufferSize = &buffer_sz;
db2GetSnapshotSize(db2Version820, &getSnapshotSizeParam, &sqlca);

May 7 '06 #2

P: n/a
the core dump:
sqlowque(??, ??, ??) at 0xdba71b3c
sqlccipcconnr__FP13sqlcc_connectP15sqlcc_comhandle P10sqlcc_cond(??, ??,
??) at 0xdbab938c
sqlccconnr__FP13sqlcc_connectP15sqlcc_comhandleP10 sqlcc_cond(??, ??,
??) at 0xdbab3ec4
sqljrInternalConnect__FP11UCconHandleP13sqlcc_conn ectP10sqlcc_condPb(??,
??, ??, ??) at 0xdbb9e9f4
sqljrConnectCCLayer__FP11UCconHandle(??) at 0xdbb9e8fc
sqljrPreConnect__FP7UCintfcPP13sqljrDrdaArCb(??, ??) at 0xdbba06d8
sqljrDrdaArAuthenticate__FP7UCintfclPUl(??, ??, ??) at 0xdb9c5470
sqlexAppAuthenticate__FP7UCintfc__fdpr_1(??) at 0xdb9bfc48
sqljrDrdaArAttach__FP7UCintfc(??) at 0xdbaca860
sqleUCdrdaARinit__FP11UCconHandle(??) at 0xdb9fc2e4
sqleUCappAttach(??, ??, ??, ??, ??) at 0xdbaf2bb8
sqleatin__FPcN41sP5sqlca(??, ??, ??, ??, ??, ??, ??) at 0xdb9edaac
sqleimat__FPcT1iP5sqlca(??, ??, ??, ??) at 0xdb9ee084
sqleriar__FP10sqle_db2ra(??) at 0xdb9ef560
sqlm_send_est_buf_size_db2ra__FUlPUlP5sqlmasT1P5sq lca(0x7, 0x0,
0x20386190, 0xfffefffe, 0x0, 0x2) at 0xdbcec458
db2GetSnapshotSize(??, ??, ??) at 0xdbcebfe4

May 7 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.