[Xapian-discuss] Flint Database 'Can't acquire write lock'?
Josef Novak
josef.robert.novak at gmail.com
Tue Apr 24 04:58:47 BST 2007
Hi,
I incorporated the patch you mentioned,
http://oligarchy.co.uk/xapian/patches/flint-lock-reason-0.9.10.patch
rebuilt and ran the included example program simpleindex, after first
setting XAPIAN_PREFER_FLINT=1
$ cat test.txt | ./simpleindex testdb
Exception: Unable to acquire database write lock on testdb: locking
probably not supported by this FS
I suppose this is not an incrediblyl helpful message, so I also ran
strace (by the way, thank you for introducing me to this incredibly
useful program!):
execve("/bin/cat", ["cat", "test.txt"], [/* 57 vars */]) = 0
uname({sys="Linux", node="lkr250006", ...}) = 0
brk(0) = 0x401049f0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x2a95568000
open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/home/lkr187/64bit_libs/lib/x86_64/libc.so.6", O_RDONLY) = -1
ENOENT (No such file or directory)
stat("/home/lkr187/64bit_libs/lib/x86_64", 0x7fbfffe410) = -1 ENOENT
(No such file or directory)
open("/home/lkr187/64bit_libs/lib/libc.so.6", O_RDONLY) = -1 ENOENT
(No such file or directory)
stat("/home/lkr187/64bit_libs/lib", {st_mode=S_IFDIR|0755,
st_size=584, ...}) = 0
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=89614, ...}) = 0
mmap(NULL, 89614, PROT_READ, MAP_PRIVATE, 3, 0) = 0x2a95569000
close(3) = 0
open("/lib64/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\3400\2\0"...,
1024) = 1024
fstat(3, {st_mode=S_IFREG|0755, st_size=1393014, ...}) = 0
mmap(NULL, 2277032, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) =
0x2a9566a000
mprotect(0x2a95772000, 1195688, PROT_NONE) = 0
mmap(0x2a9586a000, 155648, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED, 3, 0x100000) = 0x2a9586a000
mmap(0x2a95890000, 24232, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x2a95890000
close(3) = 0
munmap(0x2a95569000, 89614) = 0
brk(0) = 0x401049f0
brk(0x40104a30) = 0x40104a30
brk(0x40105000) = 0x40105000
open("/usr/share/locale/locale.alias", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=2601, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x2a95569000
read(3, "# Locale name alias data base.\n#"..., 4096) = 2601
brk(0x40106000) = 0x40106000
read(3, "", 4096) = 0
close(3) = 0
munmap(0x2a95569000, 4096) = 0
open("/usr/lib/locale/ja_JP.eucJP/LC_IDENTIFICATION", O_RDONLY) = -1
ENOENT (No such file or directory)
open("/usr/lib/locale/ja_JP.eucjp/LC_IDENTIFICATION", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=334, ...}) = 0
mmap(NULL, 334, PROT_READ, MAP_PRIVATE, 3, 0) = 0x2a95569000
close(3) = 0
open("/usr/lib64/gconv/gconv-modules.cache", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=20340, ...}) = 0
mmap(NULL, 20340, PROT_READ, MAP_SHARED, 3, 0) = 0x2a9556a000
close(3) = 0
brk(0x40107000) = 0x40107000
open("/usr/lib/locale/ja_JP.eucJP/LC_MEASUREMENT", O_RDONLY) = -1
ENOENT (No such file or directory)
open("/usr/lib/locale/ja_JP.eucjp/LC_MEASUREMENT", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=24, ...}) = 0
mmap(NULL, 24, PROT_READ, MAP_PRIVATE, 3, 0) = 0x2a9556f000
close(3) = 0
open("/usr/lib/locale/ja_JP.eucJP/LC_TELEPHONE", O_RDONLY) = -1 ENOENT
(No such file or directory)
open("/usr/lib/locale/ja_JP.eucjp/LC_TELEPHONE", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=52, ...}) = 0
mmap(NULL, 52, PROT_READ, MAP_PRIVATE, 3, 0) = 0x2a95570000
close(3) = 0
open("/usr/lib/locale/ja_JP.eucJP/LC_ADDRESS", O_RDONLY) = -1 ENOENT
(No such file or directory)
open("/usr/lib/locale/ja_JP.eucjp/LC_ADDRESS", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=104, ...}) = 0
mmap(NULL, 104, PROT_READ, MAP_PRIVATE, 3, 0) = 0x2a95571000
close(3) = 0
open("/usr/lib/locale/ja_JP.eucJP/LC_NAME", O_RDONLY) = -1 ENOENT (No
such file or directory)
open("/usr/lib/locale/ja_JP.eucjp/LC_NAME", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=76, ...}) = 0
mmap(NULL, 76, PROT_READ, MAP_PRIVATE, 3, 0) = 0x2a95572000
close(3) = 0
brk(0x40108000) = 0x40108000
open("/usr/lib/locale/ja_JP.eucJP/LC_PAPER", O_RDONLY) = -1 ENOENT (No
such file or directory)
open("/usr/lib/locale/ja_JP.eucjp/LC_PAPER", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=35, ...}) = 0
mmap(NULL, 35, PROT_READ, MAP_PRIVATE, 3, 0) = 0x2a95573000
close(3) = 0
open("/usr/lib/locale/ja_JP.eucJP/LC_MESSAGES", O_RDONLY) = -1 ENOENT
(No such file or directory)
open("/usr/lib/locale/ja_JP.eucjp/LC_MESSAGES", O_RDONLY) = 3
fstat(3, {st_mode=S_IFDIR|0755, st_size=80, ...}) = 0
close(3) = 0
open("/usr/lib/locale/ja_JP.eucjp/LC_MESSAGES/SYS_LC_MESSAGES",
O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=95, ...}) = 0
mmap(NULL, 95, PROT_READ, MAP_PRIVATE, 3, 0) = 0x2a95574000
close(3) = 0
open("/usr/lib/locale/ja_JP.eucJP/LC_MONETARY", O_RDONLY) = -1 ENOENT
(No such file or directory)
open("/usr/lib/locale/ja_JP.eucjp/LC_MONETARY", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=291, ...}) = 0
mmap(NULL, 291, PROT_READ, MAP_PRIVATE, 3, 0) = 0x2a95575000
close(3) = 0
open("/usr/lib/locale/ja_JP.eucJP/LC_TIME", O_RDONLY) = -1 ENOENT (No
such file or directory)
open("/usr/lib/locale/ja_JP.eucjp/LC_TIME", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=5000, ...}) = 0
mmap(NULL, 5000, PROT_READ, MAP_PRIVATE, 3, 0) = 0x2a95576000
brk(0x40109000) = 0x40109000
close(3) = 0
open("/usr/lib/locale/ja_JP.eucJP/LC_NUMERIC", O_RDONLY) = -1 ENOENT
(No such file or directory)
open("/usr/lib/locale/ja_JP.eucjp/LC_NUMERIC", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=55, ...}) = 0
mmap(NULL, 55, PROT_READ, MAP_PRIVATE, 3, 0) = 0x2a95578000
close(3) = 0
open("/usr/lib/locale/ja_JP.eucJP/LC_CTYPE", O_RDONLY) = -1 ENOENT (No
such file or directory)
open("/usr/lib/locale/ja_JP.eucjp/LC_CTYPE", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=474552, ...}) = 0
mmap(NULL, 474552, PROT_READ, MAP_PRIVATE, 3, 0) = 0x2a95579000
close(3) = 0
fstat(1, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
open("test.txt", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=69, ...}) = 0
brk(0x4010b000) = 0x4010b000
read(3, "this is a test\n\nthis is another "..., 4096) = 69
write(1, "this is a test\n\nthis is another "..., 69) = -1 EPIPE
(Broken pipe)
--- SIGPIPE (Broken pipe) ---
+++ killed by SIGPIPE +++
More information about the Xapian-discuss
mailing list