-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
high cpu 99% issue #1962
Comments
please make this a SSCCE |
hi, aleks-f: When in continue card read, 3 threads will access sqlite databases.
cmdParserThread or mDNSprocessThread will cause cpu 99% issue after 1 or 2 hours continue card read. We use code like following to access sqlite dababase. Poco::Data::SQLite::Connector::registerConnector(); |
attach another thread's backtrace FYI. (gdb) bt warning: (Internal error: pc 0x803d15a5 in read in psymtab, but not in symtab.) #3 0x803d15a6 in Poco::Data::StatementImpl::StatementImpl (this=warning: (Internal error: pc 0x803d15a5 in read in psymtab, but not in symtab.) warning: (Internal error: pc 0x803d1530 in read in psymtab, but not in symtab.) warning: (Internal error: pc 0x803d15a5 in read in psymtab, but not in symtab.) 0x80b168d8, rSession=warning: (Internal error: pc 0x803d15a5 in read in psymtab, but not in symtab.) @0x80ab3d38) at src/StatementImpl.cpp:56 |
That's all nice and well, but we have no time to rewrite your logic in order to reproduce the problem - the burden is on you to provide (as link nicely summarizes):
Attaching more gdb backtraces likely won't improve chances for a solution. A SSCCE, as described above, may - while producing it, you may find problem in your code, or better understand where the problem in the library is. |
It's also possible that, given that SQLite and Poco::Data have been used quite widely and no such issue has come up yet, that this is an issue with your system or application. Maybe your SD card driver. Maybe your hardware is simply not powerful enough. Hard to tell. |
Expected behavior
no high cpu for run for 5 days
Actual behavior
high cpu run for 2 hours
Steps to reproduce the problem
(please make this a SSCCE, if applicable and reasonable)
POCO version
poco-1.4.3
Compiler and version
m68k-linux-gnu-g++ cross compiler (gcc-4.3.43)
Operating system and version
linux 2.6.25 on m68k(mcf54450vm240)
Other relevant inofrmation
sqlite-3.11.01
high cpu 99% backtrace by gdb:
#0 0x8055c772 in _gnu_cxx::_atomic_add(int volatile*, int) ()
#1 0x8051be9c in std::locale::locale() ()
#2 0x8053e7d4 in std::basic_ostringstream<char, std::char_traits, std::allocator >::basic_ostringstream(std::_Ios_Openmode) ()
warning: (Internal error: pc 0x803d158d in read in psymtab, but not in symtab.)
warning: (Internal error: pc 0x803d158d in read in psymtab, but not in symtab.)
#3 0x803d158e in Poco::Data::StatementImpl::StatementImpl (this=warning: (Internal error: pc 0x803d158d in read in psymtab, but not in symtab.)
warning: (Internal error: pc 0x803d1518 in read in psymtab, but not in symtab.)
warning: (Internal error: pc 0x803d158d in read in psymtab, but not in symtab.)
0x80b0b280, rSession=warning: (Internal error: pc 0x803d158d in read in psymtab, but not in symtab.)
@0x80803de0) at src/StatementImpl.cpp:56
#4 0x802a8e90 in Poco::Data::SQLite::SQLiteStatementImpl::SQLiteStatementImpl (this=0x80b0b280, rSession=@0x80803de0, pDB=0x80804ac0)
at src/SQLiteStatementImpl.cpp:47
#5 0x802a02aa in Poco::Data::SQLite::SessionImpl::createStatementImpl (this=0x80803de0) at src/SessionImpl.cpp:83
#6 0x8008cd86 in Poco::Data::StatementCreator::operator<< <char [48]> (this=0x80803d8c, t=@0x805ede26)
at ../common/poco/Data/include/Poco/Data/StatementCreator.h:62
#7 0x8008ce92 in Poco::Data::Session::operator<< <char [48]> (this=0x80803d88, t=@0x805ede26)
at ../common/poco/Data/include/Poco/Data/Session.h:193
#8 0x800bdda4 in ConfigDB::RowCountSQL (this=0x807fe668, tableID=29, panelid=1) at database/obj/../ConfigDB.cpp:3279
#9 0x800be68a in ConfigDB::GetTableInfo (this=0x807fe668, TableID=29, pConfigInfo=0xbcfff54a) at database/obj/../ConfigDB.cpp:3550
#10 0x80039896 in handleGatewayRecord (record=0xbcfff89f "��\226�c\237") at util/obj/../accessdb.c:243
#11 0x8003a038 in handleBonjourRecord (record=0xbcfff89f "��\226�c\237", flag=1) at util/obj/../accessdb.c:177
#12 0x8007a3a0 in taskMdnsProcess (data=0x0) at mDNSClient/obj/../mDNSClient.c:896
#13 0x8046938a in pthread_start_thread (arg=0xbcfffbe0) at manager.c:310
#14 0x805b6b32 in clone ()
The text was updated successfully, but these errors were encountered: