Date: Thu, 6 Apr 2006 11:40:36 GMT From: Jonas Bülow <jonas.bulow@servicefactory.se> To: freebsd-gnats-submit@FreeBSD.org Subject: bin/95405: libkvm does not support /dev/fwmem0.0 in FreeBSD 6 and later. Message-ID: <200604061140.k36Beagg019544@www.freebsd.org> Resent-Message-ID: <200604061150.k36BoGkp009053@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 95405 >Category: bin >Synopsis: libkvm does not support /dev/fwmem0.0 in FreeBSD 6 and later. >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Apr 06 11:50:16 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Jonas Bülow >Release: FreeBSD 6.0-p6 >Organization: ServiceFactory >Environment: uname -a FreeBSD h177.servicefactory.se 6.0-RELEASE-p6 FreeBSD 6.0-RELEASE-p6 #3: Thu Apr 6 08:14:28 CEST 2006 root@h177.servicefactory.se:/usr/obj/usr/src/sys/DEBUGHOST i386 >Description: Programs using libkvm fails with: <progname>: cannot mmap corefile Since rev 1.16 of kvm_i386.c libkvm no longer supports /dev/fwmem0.0. The reason seems to be the change to use mmap for i386. The failing call in libkvm is: kvm_i386.c:105 vm->mmapbase = mmap(NULL, sz, PROT_READ, MAP_PRIVATE, kd->pmfd, 0); A comment at line 1113 in vm_mmap.c says: /* * cdevs does not provide private mappings of any kind. */ >How-To-Repeat: dmesg -M /dev/fwmem0.0 -N kernel dmesg: cannot mmap corefile # kgdb kernel.debug /dev/fwmem0.0 kgdb: cannot mmap corefile >Fix: >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200604061140.k36Beagg019544>