Subject: port-arm32/7978: mmap problems on arm32
To: None <gnats-bugs@gnats.netbsd.org>
From: Matthias Pfaller <leo@dachau.marco.de>
List: netbsd-bugs
Date: 07/13/1999 06:32:55
>Number:         7978
>Category:       port-arm32
>Synopsis:       mmap problems on arm32
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    port-arm32-maintainer (NetBSD/arm32 Portmaster)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jul 13 06:05:01 1999
>Last-Modified:
>Originator:     Matthias Pfaller
>Organization:
Matthias Pfaller                            Software Entwicklung
marco Systemanalyse und Entwicklung GmbH    Tel   +49 8131 5161-41
Hans-Böckler-Str. 2, D 85221 Dachau         Fax   +49 8131 5161-66
http://www.marco.de/                        Email leo@dachau.marco.de
>Release:        19990713
>Environment:
	
System: NetBSD lethe 1.4F NetBSD 1.4F (LETHE) #110: Tue Jul 13 14:09:13 CEST 1999 leo@lethe:/usr/src/sys/arch/arm32/compile/LETHE arm32


>Description:
        I have an texteditor that writes out its files by using mmap. After
        upgrading my kernel from one compiled on June, 25th, all files saved
        with this editor contain only zeros.

   665 me       CALL  open(0x3546c,0x602,0x1b6)
   665 me       NAMI  "xxx"
   665 me       RET   open 3
   665 me       CALL  lseek(0x3,0,0x7,0,0)
   665 me       RET   lseek 7
   665 me       CALL  write(0x3,0x12ce0,0x1)
   665 me       GIO   fd 3 wrote 1 bytes
       "\0"
   665 me       RET   write 1
   665 me       CALL  mmap(0,0x8,0x3,0x1,0x3,0,0,0)
   665 me       RET   mmap 537137152/0x20041000
   665 me       CALL  write(0x1,0x302e8,0x16)
   665 me       GIO   fd 1 wrote 22 bytes
       "\^[[39;1H[Writing...]\^[[K"
   665 me       RET   write 22/0x16
   665 me       CALL  __msync13(0x20041000,0x8,0x1)
   665 me       RET   __msync13 0
   665 me       CALL  munmap(0x20041000,0x8)
   665 me       RET   munmap 0
   665 me       CALL  close(0x3)
   665 me       RET   close 0
>How-To-Repeat:
>Fix:
>Audit-Trail:
>Unformatted: