Giter VIP home page Giter VIP logo

Comments (19)

georgehazan avatar georgehazan commented on September 15, 2024

PS: there's no such a key in a database

from upscaledb.

cruppstahl avatar cruppstahl commented on September 15, 2024

Thanks for reporting. I reviewed the code and managed to create two test
cases which are problematic, but only when doing a LEQ search
and they do not cause endless loops.

Can you share some code which reproduces the problem?

2015-04-01 18:59 GMT+02:00 George Hazan [email protected]:

PS: there's no such a key in a database


Reply to this email directly or view it on GitHub
https://github.com/cruppstahl/hamsterdb/issues/50#issuecomment-88542876.

from upscaledb.

georgehazan avatar georgehazan commented on September 15, 2024

thanks for the quick answer.
it's a part of quite a complex database, I'll try to make a simple snippet that illustrates that problem

from upscaledb.

georgehazan avatar georgehazan commented on September 15, 2024

sigh I have to confess that this problem is not reproducible at all in the static environment. it occurs only when the massive array of transactions is being fed to hamsterdb in the same time with reading. I can reproduce this problem easily, but it requires a working program. feel free to ask me if I could provide the interesting information.

from upscaledb.

cruppstahl avatar cruppstahl commented on September 15, 2024

I am not surprised... Approx. matching is covered with many tests, but it
has some complexities. I will try to come up with a fix based on the
callstack, maybe you could then help testing it. Are you building from
source, or do you require prebuilt windows libraries? DLL or static,
msvc2010 or -13, 32bit or 64bit?

Thanks
Christoph

2015-04-02 13:55 GMT+02:00 George Hazan [email protected]:

sigh I have to confess that this problem is not reproducible at all in
the static environment. it occurs only when the massive array of
transactions is being fed to hamsterdb in the same time with reading. I can
reproduce this problem easily, but it requires a working program. feel free
to ask me if I could provide the interesting information.


Reply to this email directly or view it on GitHub
https://github.com/cruppstahl/hamsterdb/issues/50#issuecomment-88877067.

from upscaledb.

georgehazan avatar georgehazan commented on September 15, 2024

I'm building hamsterdb from sources, yes, embedding it into the Miranda
database driver

On Thu, Apr 2, 2015 at 3:53 PM, Christoph Rupp [email protected]
wrote:

I am not surprised... Approx. matching is covered with many tests, but it
has some complexities. I will try to come up with a fix based on the
callstack, maybe you could then help testing it. Are you building from
source, or do you require prebuilt windows libraries? DLL or static,
msvc2010 or -13, 32bit or 64bit?

Thanks
Christoph

2015-04-02 13:55 GMT+02:00 George Hazan [email protected]:

sigh I have to confess that this problem is not reproducible at all in
the static environment. it occurs only when the massive array of
transactions is being fed to hamsterdb in the same time with reading. I
can
reproduce this problem easily, but it requires a working program. feel
free
to ask me if I could provide the interesting information.


Reply to this email directly or view it on GitHub
<https://github.com/cruppstahl/hamsterdb/issues/50#issuecomment-88877067
.


Reply to this email directly or view it on GitHub
https://github.com/cruppstahl/hamsterdb/issues/50#issuecomment-88887000.

WMBR, George Hazan

from upscaledb.

cruppstahl avatar cruppstahl commented on September 15, 2024

Can you please try the newest commit? It's on the "v2" branch, not on "master".

from upscaledb.

georgehazan avatar georgehazan commented on September 15, 2024

sure

from upscaledb.

georgehazan avatar georgehazan commented on September 15, 2024
msvcr120d.dll!_wassert�()   Unknown

Dbx_kv.dll!hamsterdb::rbt_next(hamsterdb::TransactionIndex * rbtree=0x000000000029df70, hamsterdb::TransactionNode * node=0x000000000486e940) Line 62 C++
Dbx_kv.dll!hamsterdb::TransactionIndex::remove(hamsterdb::TransactionNode * node=0x00000000048471b0) Line 218 C++
Dbx_kv.dll!hamsterdb::TransactionOperation::destroy() Line 108 C++
Dbx_kv.dll!hamsterdb::TransactionFactory::destroy_operation(hamsterdb::TransactionOperation * op=0x0000000004847250) Line 58 C++
Dbx_kv.dll!hamsterdb::LocalTransaction::free_operations() Line 302 C++
Dbx_kv.dll!hamsterdb::LocalTransaction::~LocalTransaction() Line 260 C++
Dbx_kv.dll!hamsterdb::LocalTransaction::`scalar deleting destructor'(unsigned int) C++
Dbx_kv.dll!hamsterdb::LocalTransactionManager::flush_committed_txns_impl(hamsterdb::Context * context=0x000000000012ef48) Line 621 C++
Dbx_kv.dll!hamsterdb::LocalTransactionManager::maybe_flush_committed_txns(hamsterdb::Context * context=0x000000000012ef48) Line 567 C++
Dbx_kv.dll!hamsterdb::LocalTransactionManager::commit(hamsterdb::Transaction * htxn=0x000000000486e7b0, unsigned int flags=0) Line 521 C++
Dbx_kv.dll!hamsterdb::LocalDatabase::finalize(hamsterdb::Context * context=0x000000000012f088, int status=0, hamsterdb::Transaction * local_txn=0x000000000486e7b0) Line 1831 C++
Dbx_kv.dll!hamsterdb::LocalDatabase::insert(hamsterdb::Cursor * cursor=0x0000000000000000, hamsterdb::Transaction * txn=0x0000000000000000, ham_key_t * key=0x000000000012f478, ham_record_t * record=0x000000000012f4a8, unsigned int flags=1) Line 1124 C++
Dbx_kv.dll!ham_db_insert(ham_db_t * hdb=0x000000000029dc80, ham_txn_t * htxn=0x0000000000000000, ham_key_t * key=0x000000000012f478, ham_record_t * record=0x000000000012f4a8, unsigned int flags=1) Line 984 C++
Dbx_kv.dll!CDbxKV::WriteContactSetting(unsigned int contactID=0, DBCONTACTWRITESETTING * dbcws=0x000000000012f5d8) Line 511 C++
mir_core.dll!db_set_dw(unsigned int hContact=0, const char * szModule=0x00000000055508e8, const char * szSetting=0x00000000055508d8, unsigned long val=10) Line 204 C++

from upscaledb.

georgehazan avatar georgehazan commented on September 15, 2024

stopped on ASSERT

from upscaledb.

cruppstahl avatar cruppstahl commented on September 15, 2024

Can you tell me which assert exactly? the one in db_local.cc:478?

2015-04-06 13:45 GMT+02:00 George Hazan [email protected]:

stopped on ASSERT


Reply to this email directly or view it on GitHub
https://github.com/cruppstahl/hamsterdb/issues/50#issuecomment-90026769.

from upscaledb.

georgehazan avatar georgehazan commented on September 15, 2024

2015-04-06 15_21_59-microsoft visual c runtime library

from upscaledb.

cruppstahl avatar cruppstahl commented on September 15, 2024

If you could also send a callstack, that would be extremely helpful. Sorry for the efforts.

from upscaledb.

georgehazan avatar georgehazan commented on September 15, 2024

yes, the call stack is pasted above, 43 minutes ago

from upscaledb.

cruppstahl avatar cruppstahl commented on September 15, 2024

I have pushed another commit to the v2 branch. It removes the code which triggered the assert. I think the assert was problematic. However, if this still does not work then i'll start refactoring larger parts of the code base and clean up some things which led to this bug.

from upscaledb.

georgehazan avatar georgehazan commented on September 15, 2024

okay

from upscaledb.

georgehazan avatar georgehazan commented on September 15, 2024

2015-04-06 16_12_40-microsoft visual studio express 2013 for windows desktop

Dbx_kv.dll!hamsterdb::rbt_remove(hamsterdb::TransactionIndex * rbtree=0x00000000002baa90, hamsterdb::TransactionNode * node=0x00000000047a36f0) Line 62 C++
Dbx_kv.dll!hamsterdb::TransactionIndex::remove(hamsterdb::TransactionNode * node=0x00000000047a36f0) Line 211 C++
Dbx_kv.dll!hamsterdb::TransactionOperation::destroy() Line 108 C++
Dbx_kv.dll!hamsterdb::TransactionFactory::destroy_operation(hamsterdb::TransactionOperation * op=0x00000000047ba1f0) Line 58 C++
Dbx_kv.dll!hamsterdb::LocalTransaction::free_operations() Line 289 C++
Dbx_kv.dll!hamsterdb::LocalTransaction::~LocalTransaction() Line 247 C++
Dbx_kv.dll!hamsterdb::LocalTransaction::`scalar deleting destructor'(unsigned int) C++
Dbx_kv.dll!hamsterdb::LocalTransactionManager::flush_committed_txns_impl(hamsterdb::Context * context=0x000000000012ef48) Line 608 C++
Dbx_kv.dll!hamsterdb::LocalTransactionManager::maybe_flush_committed_txns(hamsterdb::Context * context=0x000000000012ef48) Line 554 C++
Dbx_kv.dll!hamsterdb::LocalTransactionManager::commit(hamsterdb::Transaction * htxn=0x00000000047bd900, unsigned int flags=0) Line 508 C++
Dbx_kv.dll!hamsterdb::LocalDatabase::finalize(hamsterdb::Context * context=0x000000000012f088, int status=0, hamsterdb::Transaction * local_txn=0x00000000047bd900) Line 1834 C++
Dbx_kv.dll!hamsterdb::LocalDatabase::insert(hamsterdb::Cursor * cursor=0x0000000000000000, hamsterdb::Transaction * txn=0x0000000000000000, ham_key_t * key=0x000000000012f478, ham_record_t * record=0x000000000012f4a8, unsigned int flags=1) Line 1127 C++
Dbx_kv.dll!ham_db_insert(ham_db_t * hdb=0x00000000002ba7a0, ham_txn_t * htxn=0x0000000000000000, ham_key_t * key=0x000000000012f478, ham_record_t * record=0x000000000012f4a8, unsigned int flags=1) Line 984 C++
Dbx_kv.dll!CDbxKV::WriteContactSetting(unsigned int contactID=0, DBCONTACTWRITESETTING * dbcws=0x000000000012f5d8) Line 511 C++
mir_core.dll!db_set_dw(unsigned int hContact=0, const char * szModule=0x00000000055408e8, const char * szSetting=0x00000000055408d8, unsigned long val=10) Line 204 C++

from upscaledb.

cruppstahl avatar cruppstahl commented on September 15, 2024

OK thanks. I'll get back at you when a newer version is in a sufficiently good state - 1 or 2 weeks at least.

from upscaledb.

georgehazan avatar georgehazan commented on September 15, 2024

sure. feel free for pinging me

from upscaledb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.