Opened 15 years ago

Closed 15 years ago

#5710 closed bug (fixed)

Strange VM behaviour

Reported by: kaliber Owned by: bonefish
Priority: normal Milestone: R1
Component: System/Kernel Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

GCC4, KDEBUG_LEVEL 0

It is similar to #5473, but I'm not sure it's a duplicate.

KERN: heap_add_area: area 6239 added to medium heap 0x87ac7000 - usable range 0x98401000 - 0x98800000
KERN: slab memory manager: created area 0x98800000 (8640)
KERN: slab memory manager: created area 0x99000000 (9721)
KERN: slab memory manager: created area 0x99800000 (9938)
KERN: heap_add_area: area 9939 added to small heap 0x83000000 - usable range 0x9a007000 - 0x9a400000
KERN: slab memory manager: created area 0x9a800000 (15232)
KERN: bfs: bfs_create_symlink:963: File or Directory already exists
KERN: Last message repeated 2 times.
KERN: heap_add_area: area 30530 added to medium heap 0x862c7000 - usable range 0x9a401000 - 0x9a800000
KERN: heap_add_area: area 46026 added to small heap 0x83000000 - usable range 0x9b007000 - 0x9b400000
KERN: bfs: bfs_create_symlink:963: File or Directory already exists
KERN: Last message repeated 2 times.
KERN: slab memory manager: created area 0x9b800000 (50365)
KERN: bfs: bfs_create_symlink:963: File or Directory already exists
KERN: Last message repeated 2 times.
KERN: Last message repeated 3 times.
KERN: Last message repeated 9 times.
KERN: Last message repeated 3 times.
Last message repeated 1 time
KERN: slab memory manager: created area 0x9c000000 (138530)
KERN: bfs: bfs_create_symlink:963: File or Directory already exists
KERN: Last message repeated 2 times.
KERN: Last message repeated 3 times.
KERN: Last message repeated 6 times.
Last message repeated 1 time
KERN: Last message repeated 3 times.
Last message repeated 2 times
KERN: slab memory manager: created area 0x9c800000 (188146)
KERN: heap_add_area: area 188147 added to small heap 0x83000000 - usable range 0x9b407000 - 0x9b800000
KERN: slab memory manager: created area 0x9d000000 (188148)
KERN: heap_add_area: area 188149 added to small heap 0x83000000 - usable range 0x9d807000 - 0x9dc00000
KERN: slab memory manager: created area 0x9e000000 (188150)
KERN: slab memory manager: created area 0x9e800000 (192952)
KERN: heap_add_area: area 215816 added to medium heap 0x83800000 - usable range 0x9f001000 - 0x9f400000
KERN: heap_add_area: area 287102 added to medium heap 0x87ac7000 - usable range 0x9f401000 - 0x9f800000
KERN: heap_remove_area: area 6239 with range 0x98401000 - 0x98800000 removed from medium heap 0x87ac7000
KERN: heap_add_area: area 334285 added to small heap 0x83000000 - usable range 0x98407000 - 0x98800000
KERN: slab memory manager: created area 0x9f800000 (334341)
KERN: heap_add_area: area 401242 added to medium heap 0x87ac7000 - usable range 0xa0001000 - 0xa0400000
KERN: heap_remove_area: area 287102 with range 0x9f401000 - 0x9f800000 removed from medium heap 0x87ac7000
KERN: heap_add_area: area 483683 added to medium heap 0x87ac7000 - usable range 0x9f401000 - 0x9f800000
KERN: vm_page_fault: vm_soft_fault returned error 'Out of memory' on fault at 0x7ffeed3c, ip 0xffff0114, write 0, user 1, thread 0x2d31
KERN: vm_page_fault: thread "find" (11569) in team "find" (11569) tried to read address 0x7ffeed3c, ip 0xffff0114 ("???" +0xffff0114)
KERN: vm_page_fault: vm_soft_fault returned error 'Out of memory' on fault at 0x7003d700, ip 0x26d657, write 1, user 1, thread 0x4a
KERN: vm_page_fault: thread "kernel listener" (74) in team "debug_server" (68) tried to write address 0x7003d700, ip 0x26d657 ("libroot.so_seg0ro" +0x64657)
KERN: heap_remove_area: area 483683 with range 0x9f401000 - 0x9f800000 removed from medium heap 0x87ac7000
KERN: slab memory manager: deleting area 0x98800000 (8640)
KERN: PageWriteWrapper: Failed to write page 0x841cce60: General system error
KERN: PageWriteWrapper: Failed to write page 0x841cf020: General system error
KERN: PageWriteWrapper: Failed to write page 0x841ce5d0: General system error
KERN: slab memory manager: deleting area 0x9e000000 (188150)
KERN: PageWriteWrapper: Failed to write page 0x84b956e0: General system error
KERN: PageWriteWrapper: Failed to write page 0x84b95708: General system error
KERN: PageWriteWrapper: Failed to write page 0x84b95730: General system error
KERN: slab memory manager: deleting area 0x99000000 (9721)
KERN: PageWriteWrapper: Failed to write page 0x841f21b0: General system error
KERN: PageWriteWrapper: Failed to write page 0x841f4af0: General system error
KERN: PageWriteWrapper: Failed to write page 0x841f4410: General system error

Change History (3)

comment:1 by kaliber, 15 years ago

I found a test case! It looks like the bug is related to mmap(). Here is a test case.

  1. Get "file" command. Build from sources ftp://ftp.astron.com/pub/file/file-5.04.tar.gz or download binary from HaikuPorts - mirror http://files.tiltos.com/tmp/file-5.04-x86-gcc2-2010-04-02.zip
  1. Run: while true; do file /etc/passwd; done
  1. Wait a few second and see syslog

comment:2 by anevilyak, 15 years ago

Owner: changed from axeld to bonefish
Status: newassigned

comment:3 by bonefish, 15 years ago

Resolution: fixed
Status: assignedclosed

Fixed in hrev36237.

Note: See TracTickets for help on using tickets.