Bug 14291 - OmniOS runtime TDB locking failure ("
Summary: OmniOS runtime TDB locking failure ("
Status: NEW
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Other (show other bugs)
Version: 4.12.0rc3
Hardware: All Other
: P5 normal (vote)
Target Milestone: ---
Assignee: Andrew Bartlett
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-21 22:03 UTC by Peter Eriksson
Modified: 2020-02-21 22:03 UTC (History)
0 users

See Also:


Attachments
OmniOS Robust Mutex attr initialization patch (1.91 KB, text/plain)
2020-02-21 22:03 UTC, Peter Eriksson
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Eriksson 2020-02-21 22:03:21 UTC
Created attachment 15815 [details]
OmniOS Robust Mutex attr initialization patch

Samba using robust mutexes get a runtime error "Device busy" unless we initialize the mutexattr variables before using them.

tdb(/var/samba/lock/gencache.tdb): tdb_open_ex: tdb_mutex_init failed for /var/samba/lock/gencache.tdb: Device busy
tdb(/var/samba/lock/gencache.tdb): tdb_open_ex: tdb_mutex_init failed for /var/samba/lock/gencache.tdb: Device busy
tdb(/var/samba/lock/gencache.tdb): tdb_open_ex: tdb_mutex_init failed for /var/samba/lock/gencache.tdb: Device busy

This is probably an OmniOS bug since there is a known Illumos bug about this (and fixed there) but it's an easy fix so...

The attached patch fixes this problem.