public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Peter Seiderer <seiderer123@ciselant.de>
To: linux-kernel@vger.kernel.org
Subject: [Bug][2.6.5] SEGV while video memory mmaped, computer hangs
Date: Tue, 13 Apr 2004 17:50:22 +0200	[thread overview]
Message-ID: <20040413155022.GA1711@zodiak> (raw)

[-- 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

                 reply	other threads:[~2004-04-13 15:52 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040413155022.GA1711@zodiak \
    --to=seiderer123@ciselant.de \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox