public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [Bug][2.6.5] SEGV while video memory mmaped, computer hangs
@ 2004-04-13 15:50 Peter Seiderer
  0 siblings, 0 replies; only message in thread
From: Peter Seiderer @ 2004-04-13 15:50 UTC (permalink / raw)
  To: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 1038 bytes --]

Hello,
the following short programm stops (no more input, no telnet login, etc...)
my linux system (kernel 2.6.5) immediately (this is the short version of what
xfree does on XF86DGADirectVideo(), mmap the video memory).

SysRq-t tells that bash hangs with the following call trace:

handle_mm_fault
do_page_fault
sys_wait4
sigprocmask
default_wake_function
sys_rt_sigprocmask
default_ware_function
syscall_call

Thanks in advance for your help,
Peter

#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/mman.h>
#include <assert.h>

int main(int argc, char *argv[]) {
        int fd;
        assert((fd = open("/dev/mem", O_RDWR)) != (-1));

        size_t s = 67108864;
        void *m;
        assert((m = mmap(NULL, s, PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0xd0000000)) != NULL);

        char *c = 0;
        char a = *c;
        return 0;
}

-- 
------------------------------------------------------------------------
Peter Seiderer                     E-Mail:  seiderer123@ciselant.de

[-- Attachment #2: iomem.txt --]
[-- Type: text/plain, Size: 967 bytes --]

00000000-0009fbff : System RAM
0009fc00-0009ffff : reserved
000a0000-000bffff : Video RAM area
000cd000-000ce7ff : Extension ROM
000d0000-000d8007 : reserved
000f0000-000fffff : System ROM
00100000-1ffeffff : System RAM
  00100000-0033660e : Kernel code
  0033660f-003d72ff : Kernel data
1fff0000-1fff7fff : ACPI Tables
1fff8000-1fffffff : ACPI Non-volatile Storage
20000000-200003ff : 0000:00:1f.1
cb400000-db5fffff : PCI Bus #01
  d0000000-d7ffffff : 0000:01:00.0
db800000-db9fffff : PCI Bus #01
  db9f0000-db9fffff : 0000:01:00.0
dc000000-ddffffff : 0000:03:02.0
dfc00000-dfdfffff : 0000:03:02.0
dfec0000-dfedffff : 0000:03:04.0
  dfec0000-dfedffff : e100
dfefe000-dfefefff : 0000:03:04.0
  dfefe000-dfefefff : e100
dffff900-dffff9ff : 0000:00:1f.5
dffffa00-dffffbff : 0000:00:1f.5
dffffc00-dfffffff : 0000:00:1d.7
e0000000-e3ffffff : 0000:00:00.0
fec00000-fec00fff : reserved
fee00000-fee00fff : reserved
ffb00000-ffbfffff : reserved
fff00000-ffffffff : reserved

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-04-13 15:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-13 15:50 [Bug][2.6.5] SEGV while video memory mmaped, computer hangs Peter Seiderer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox