Opened 18 years ago
Closed 17 years ago
#1003 closed bug (fixed)
KDL while expanding a file
Reported by: | jackburton | Owned by: | axeld |
---|---|---|---|
Priority: | blocker | Milestone: | R1 |
Component: | System/Kernel | Version: | R1/pre-alpha1 |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | All |
Description
- Created a 200MB haiku image
- added this file to the image: http://www.bebits.com/bob/19550/BeOS5-DevTools.zip
- used dd to copy it to a partition
- ran unzip to expand the file.
After some time, I was thrown into KDL. Screenshots follow.
After the KDL, I can't create files any more onto that partition.
Attachments (5)
Change History (24)
comment:1 by , 18 years ago
comment:3 by , 18 years ago
Since it happens only on real hardware here, I'll share the configuration: it's a laptop, AMD Sempron 2600+, 512 Mb Ram (64 taken by the onboard graphic adapter, an unsupported sis chipset).
comment:4 by , 18 years ago
Axel, I see that in bfs_free_cookie() we ReadLock() the inode, but since we mess with the index, shouldn't we WriteLock() instead ?
follow-up: 8 comment:7 by , 18 years ago
I've fixed the locking issue in hrev20079, thanks for the note. However, I don't think this can really prevent the bug from happening; at least it doesn't look like the source of the problem. The index inode is of course write locked when updating it, so it should never crash in BPlusTree::SplitNode(). What do you think? How often did you try again?
comment:8 by , 18 years ago
Replying to axeld:
However, I don't think this can really prevent the bug from happening; at least it doesn't look like the source of the problem. The index inode is of course write locked when updating it, so it should never crash in BPlusTree::SplitNode(). What do you think? How often did you try again?
I tried twice, once on real hardware and once on qemu. I can try again later, but before it was happening 100% of the times, on real hardware.
comment:9 by , 18 years ago
Ok, I just could reproduce it again. It crashed again in the same function, but the backtrace looks different.
follow-up: 11 comment:10 by , 18 years ago
Apparently this was fixed with Ingo's 20402. I'll leave this open still for a while, though.
comment:11 by , 18 years ago
Replying to jackburton:
Apparently this was fixed with Ingo's 20402. I'll leave this open still for a while, though.
Unfortunately it still applies. Although now the system hang completely instead of dieing in KDL.
comment:12 by , 18 years ago
I also get dropped into KDL when I try to unzip BeOS5-DevTools.zip in VMWare. It doesn't always happen but it seems to more then not.
by , 18 years ago
Attachment: | unzip-kdl-sc1.jpg added |
---|
comment:13 by , 18 years ago
I was dropped into KDL while unzipping BeShare.zip that I had just downloaded from BeBits. I am running build 20883 and have attached a picture of the stack crawl after the crash (unzip-kdl-sc1.jpg).
follow-ups: 15 16 comment:14 by , 18 years ago
Axel, with the patch I've sent you (BPlusTree::_SplitNode()), the behaviour of this bug has changed a bit (for the better ?): Now I can unzip almost all the zip file, although near the end it KDLs again with a different backtrace. Note that, near the point where it KDLd before, the system stalls for ~20 seconds with the cpu at 100%.
comment:15 by , 18 years ago
Replying to jackburton:
Axel, with the patch I've sent you (BPlusTree::_SplitNode()), the behaviour of this bug has changed a bit (for the better ?): Now I can unzip almost all the zip file, although near the end it KDLs again with a different backtrace. Note that, near the point where it KDLd before, the system stalls for ~20 seconds with the cpu at 100%.
The above applies on vmware player (virtual machine with 128 MB RAM). On real hardware (512 MB RAM) I am able to unzip the file correctly.
follow-up: 17 comment:16 by , 18 years ago
Replying to jackburton:
Axel, with the patch I've sent you (BPlusTree::_SplitNode()), the behaviour of this bug has changed a bit (for the better ?)
How often did you try after the patch? It sounds a bit strange that a fixed memory leak could prevent the invalid memory access. But then, given the state of our current VM, maybe that indeed has the power to do it. Now it just looks like any other "out of memory" problem indeed.
comment:17 by , 18 years ago
Replying to axeld:
How often did you try after the patch?
I tried at least six or seven times.
It sounds a bit strange that a fixed memory leak could prevent the invalid memory >access. But then, given the state of our current VM, maybe that indeed has the power >to do it.
Yeah, seemed strange to me too.
comment:18 by , 17 years ago
I just tried it again after reading the above comments but I notice no change in the status of this bug. I still get an unhandled page fault when trying to unzip the beos devtools.
comment:19 by , 17 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Interestingly, I can't seem to be able to reproduce it inside qemu, so you'll have to wait a bit for the screenshot. Maybe it's related to our IDE driver ?