Displaying 7 results from an estimated 7 matches for "lbry".
Did you mean:
lbr
2016 Feb 21
5
Database left unlocked by Tcl bindings
...a Tcl extension.
What happens is that fcntl with F_SETLK fails to get the lock, but
reports success.
If anyone is using the Tcl bindings you might need to be aware of this.
Has anyone seen this with the Tcl (or any other) bindings? (Or indeed
in any other context?)
Thanks,
Eric
--
ms fnd in a lbry
2016 Feb 24
4
Database left unlocked by Tcl bindings
...bly avoid whatever is
> going on here. But the OFD locks were added in Linux 3.15, so your
> kernel isn't quite new enough.
Yes, I saw that, and it is good, but my chances of moving up soon are
not good. And I would like to get to the bottom of this anyway.
Thanx,
Eric
--
ms fnd in a lbry
2016 Feb 22
3
Database left unlocked by Tcl bindings
...ript, and then added a destroy. No way of
telling if it was first-to-close or last-to-close that was being lost.
> There's some discussion of this in the Tcl bindings docs (section
> "Destructors"):
>
> https://xapian.org/docs/bindings/tcl8/
Thanx,
Eric
--
ms fnd in a lbry
2016 Feb 25
2
Database left unlocked by Tcl bindings
...fail (and does for me) like so:
>
> terminate called after throwing an instance of 'Xapian::DatabaseLockError'
> Aborted
Got exactly that.
Finally, it appears that it does work with Tcl 8.5 (actually a tclkit,
but does not work with an 8.6 tclkit).
Thanx,
Eric
--
ms fnd in a lbry
2016 Feb 27
2
Database left unlocked by Tcl bindings
...nd it too has the problem. However with the
very new Tcl 8.6.5rc2 it works! I still intend to try to find out what
the problem was, but I can use the 8.5 tclkit for what I was doing when
this all started, and then move to 8.6.5 when it becomes a real release.
Thanx very much,
Eric
--
ms fnd in a lbry
2016 Feb 22
0
execl
...nce is definitely:
open
fork
lock
execl
with the file showing up in lsof as 5w after the open, staying through
the fork, changing to 5ww with the lock, and back to 5w with the execl.
Which isn't supposed to happen according to any docs I can find.
Thanx,
Eric
--
ms fnd in a lbry
2016 Mar 01
0
Database left unlocked by Tcl bindings
...ases:
* fork + exec being expected to need to preserve a file lock.
* early creation of a notifier thread expected to be without undesirable
side-effects
Anyway, the answer is to use Tcl versions as above, or to use
Xapian/kernel combinations where OFD locks are available.
Eric
--
ms fnd in a lbry