DragonFly BSD
DragonFly bugs List (threaded) for 2012-08
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

[DragonFlyBSD - Bug #2364] panic: lockmgr: locking against myself

From: Alex Hornung via Redmine <bugtracker-admin@xxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 14 Aug 2012 07:47:33 -0700

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

Author: John Marino
Status: New
Priority: High
Assignee: Venkatesh Srinivas
Target version: 

This is an easily repeatable panic.
Edit a file with size > 4096 bytes using /usr/pkg/bin/heme, and save.


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

[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]