[DragonFlyBSD - Bug #2364] panic: lockmgr: locking against myself
Alex Hornung via Redmine
bugtracker-admin at leaf.dragonflybsd.org
Tue Aug 14 07:47:33 PDT 2012
Issue #2364 has been updated by Alex Hornung.
Link to the gist seems to be gone. I found the content in google's webcache:
/* dd if=/dev/zero of=test bs=1 count=7168 */
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/mman.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
main(argc, argv)
int argc;
char *argv[];
{
int fd;
int backup_fd;
char *mmap_region;
struct stat sb;
char buf[8192];
int i0, i;
fd = open(argv[1], O_RDWR);
fstat(fd, &sb);
mmap_region = mmap(NULL, 4096 * 2, PROT_READ|PROT_WRITE,MAP_PRIVATE,
fd, 0);
mmap_region[4] = 'b';
lseek(fd, 0, SEEK_SET);
write(fd, mmap_region, sb.st_size);
munmap(mmap_region, 8192);
}
----------------------------------------
Bug #2364: panic: lockmgr: locking against myself
http://bugs.dragonflybsd.org/issues/2364
Author: John Marino
Status: New
Priority: High
Assignee: Venkatesh Srinivas
Category:
Target version:
This is an easily repeatable panic.
Edit a file with size > 4096 bytes using /usr/pkg/bin/heme, and save.
*boom*
http://leaf.dragonflybsd.org/~marino/core/core.locking_against_myself.txt
Seen on i386 on Virtualbox but already reproduced independently by vrinivas.
DragonFly a4d7a8c-DEVELOPMENT #4: Mon May 7 18:55:28 CEST 2012 root@:/usr/obj/usr/src/sys/GENERIC
core dump located in leaf ~marino/crash
--
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://bugs.dragonflybsd.org/my/account
More information about the Bugs
mailing list