-
Notifications
You must be signed in to change notification settings - Fork 2
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
the Btree insert core dump #1
Comments
I don't understand, how did you run the tester? what test file (.r) did you run with the tester and what input file (.i) did you use? |
just run the tester with the rule file,.like, tester ../examples/app_a.r, i don't input the object file(app_a.i), then progrom coredump.in the function::InsertList(), numkeys is 0, and Root's null, "(*RootNodePos)->PushDown" will coredump. |
I've seen a poor control on the input file format in the tester application that produces coredumps and it is been already fixed. But, what is important is that Engine Fatal error you get that I cannot reproduce. Did you get that output when using ../examples/app_a.r as it is in the repo? Can you send me the output of ./tester -p ../examples/app_a.r? |
I didn't notice whether the latest version was used,but ,the rule file of app_a.r is the same as the repo。 load rule file from:../examples/app_a.r Because the function of InsertListbtree will cause a fragment,i have no idea. so, i add some initialization codes at the begining of 'InsertListbtree '. |
It is not clear your fix is needed:
so in insertList a new root node will be created:
|
Engine Fatal Error : load_code: Unknown code (0x408) is generated in load.cpp when loading engine bytecode, what substitutes function codes by pointers to the functions that implement them. According to hdrs/codes.h 0x408 corresponds to POPS (load the value of an object attribute into another object/attribute):
In load.cpp:
The byte code POPS appears with a TYPE modifier that indicates the type of the attribute. In engine.h the basic types are defined:
As TYPE_STR is 0 POPS | TYPE_STR is 0x408, so it had to enter in the case at line 577!!. I don't understand how a valid code is not recognized in the load.cpp switch and goes to the default entry generating that error. This seems that the compiling of the code on your side was not correct, or some code has been modified. Please review everything and try to find something that might explain this or try a git pull again |
thinks a lot, i'll try it. i need time to read all the code, it's wonderfull project. |
Thanks for your opinion. |
hi,there some strange errors confused me, 715 if (this == NULL) // stopping case in my env, in my first run, the value of ptr 'this' is 0.but, "this==NULL" is not true! i don't understand why? |
the example tester, run with coredump,btree.cpp:79 (*RootNodePos)->PushDown,RootNodePos's null
The text was updated successfully, but these errors were encountered: