Comments (3)
Hi @gagachang. Have you found how to resolve this? I have the test problem on my mac for part 10. If I insert 14 elements to a table by myself, then the program finishes with a segmentation fault.
from db_tutorial.
Hi @gagachang. Have you found how to resolve this? I have the test problem on my mac for part 10. If I insert 14 elements to a table by myself, then the program finishes with a segmentation fault.
Hi,I also encountered this problem. debugging found that the loop variable was out of bounds.
when you write code like:
for (int32_t i = LEAF_NODE_MAX_CELLS; i >= 0; i--)
due to the intelligent prompt of IDE,it might becomes
for (size_t i = LEAF_NODE_MAX_CELLS; i >= 0; i--)
, size_t is an unsigned type. When it reaches 0, minus one, it is out of bounds and become super big,so the program finishes with a segmentation fault.
from db_tutorial.
i encountered the same problem,after some debugging,i found some problems in my code:
it should be void *destination = leaf_node_cell(destination_node, index_within_node);
rather than void *destination = leaf_node_cell(destination, index_within_node);
from db_tutorial.
Related Issues (20)
- How do you fix errors about the getline function HOT 2
- Part 5: page_num out of bounds HOT 1
- a
- No definition of right child.
- No definition of root.
- Update Leaf node split and insert
- Failure/Error: pipe.puts commands Errno::EPIPE: Broken pipe HOT 1
- is there a rust edition of the database? HOT 3
- pager_open function optimization
- Regarding uint8_t in node header definition HOT 1
- translate to zh HOT 6
- Unreadable website HOT 4
- Part1: compilation error: implicit declaration of function 'getline' HOT 1
- Is there possibility of having overflow ?
- Can i continue this awesome project, dear cstack? HOT 1
- Is it opening the whole file and turning it into a BTree? HOT 1
- 这个是不是没有去实现事物处理等相关功能更? HOT 1
- Bug with internal_node_key()
- Could not get the code compiled... HOT 2
- Will the series continue? HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from db_tutorial.