#34 mmap and file locking over NFS don't mix on Solaris

closed-fixed
nobody
None
5
2003-03-11
2003-02-10
No

On Solaris, mmapping a file over NFS and then
attempting a file lock on it doesn't work. bogofilter
gets stuck in a loop trying fcntl(), getting EAGAIN,
sleeping, etc.

See for instance the thread at
http://makeashorterlink.com/?W1B123963

One solution is to add DB_NOMMAP to the flags in the
DB_OPEN macro in datastore_db.c.

Discussion

  • David Relson

    David Relson - 2003-02-10

    Logged In: YES
    user_id=30510

    Tor,

    A lot of work has recently been done on NFS locking for
    Solaris. The latest fixes are in CVS. Are you using that
    or the older, released version of bogofilter? I suggest
    that you get the latest CVS source and see if that fixes it
    for you.

    David

     
  • Anonymous - 2003-02-10

    Logged In: YES
    user_id=126952

    OK, I didn't realize that the latest released "stable" version
    was already that old.. I'll check out the latest CVS source.

     
  • Matthias Andree

    Matthias Andree - 2003-02-24
    • status: open --> pending-fixed
     
  • Matthias Andree

    Matthias Andree - 2003-02-24

    Logged In: YES
    user_id=2788

    As it works for me on Solaris 8, I'm putting this to
    "pending" state, from where it will move to "deleted" unless
    a response is received within a fortnight.

    Oh, and please paste your original links, not
    makeashorterlink.com, if you can.

     
  • Matthias Andree

    Matthias Andree - 2003-03-07
    • status: pending-fixed --> open-fixed
     
  • Matthias Andree

    Matthias Andree - 2003-03-07

    Logged In: YES
    user_id=2788

    You can also try bogofilter-0.11.1.1 if CVS is too much a
    hassle for you.

     
  • Matthias Andree

    Matthias Andree - 2003-03-07
    • status: open-fixed --> pending-fixed
     
  • Anonymous - 2003-03-08
    • status: pending-fixed --> open-fixed
     
  • Anonymous - 2003-03-08

    Logged In: YES
    user_id=126952

    I had some problems building the CVS version on Solaris last
    time I tried (some weeks ago). Now that I think of it, those
    new dependencies probably only affected the man page
    construction (the xmlto stuff), if I recall correctly, i.e. not
    essential for building the bogofilter binary. (xmlto required one
    thing, which required another, which required something else,
    etc.)

    I'll check again when I have time. (In the meantime I'm using
    my patched version, plus one fix I gleaned from the CVS
    version, for the off-by-one MAXTOKLEN or somesuch internal
    error, can't check the deails now, don't have bogofilter
    sources here at home.)

    I.e. I guess this bug can be marked as fixed. If you have done
    work on NFS locking on Solaris lately, you probably have
    fixed it.

    The original link is http://groups.google.com/groups?
    hl=en&lr=&ie=UTF-8&threadm=3e462de4%240%2449107%
    24e4fe514c%40news.xs4all.nl

     
  • Matthias Andree

    Matthias Andree - 2003-03-11

    Logged In: YES
    user_id=2788

    Closed at originator's request. Reopen if necessary.

     
  • Matthias Andree

    Matthias Andree - 2003-03-11
    • status: open-fixed --> closed-fixed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks