Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 465824 - net-fs/samba-4.0.x USE=cluster should enable/use ntdb
Summary: net-fs/samba-4.0.x USE=cluster should enable/use ntdb
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's SAMBA Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-13 20:52 UTC by Denis Kaganovich
Modified: 2016-02-01 00:48 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Denis Kaganovich 2013-04-13 20:52:46 UTC
Trying to migrate to samba 4.0 + ctdb cluster, I got samba panic on smbd startup. You can ask me for info, backtraces, etc ;), but it easy solved by changing:
                --disable-ntdb \
                --bundled-libraries=NONE \
to
                --bundled-libraries=ntdb \
or variations with --builtin-libraries, --private-libraries - related to future plans to add external ntdb library into portage and reuse it.
Also, in samba-4.1 (AKA -9999) "--disable-ntdb" is removed, so ntdb required in future.


PS Log:

[2013/04/13 21:04:04.896814,  0] ../source3/lib/util.c:810(smb_panic_s3)
  PANIC (pid 2315): internal error
[2013/04/13 21:04:04.897878,  0] ../source3/lib/util.c:921(log_stack_trace)
  BACKTRACE: 18 stack frames:
   #0 /usr/lib64/libsmbconf.so.0(log_stack_trace+0x1a) [0x7f73a88f289a]
   #1 /usr/lib64/libsmbconf.so.0(smb_panic_s3+0x22) [0x7f73a88f2972]
   #2 /usr/lib64/libsamba-util.so.0(smb_panic+0x1c) [0x7f73a9e8759c]
   #3 /usr/lib64/libsamba-util.so.0(+0x1e7b8) [0x7f73a9e877b8]
   #4 /lib64/libpthread.so.0(+0x10bc0) [0x7f73aa0bdbc0]
   #5 /usr/lib64/samba/libdbwrap.so(dbwrap_record_delete+0xe) [0x7f73a4cbf18e]
   #6 /usr/lib64/samba/libsmbregistry.so(+0xbcab) [0x7f73a681ecab]
   #7 /usr/lib64/libsmbconf.so.0(+0x3d48f) [0x7f73a890a48f]
   #8 /usr/lib64/libtdb.so.1(+0x5a7c) [0x7f73a1ea8a7c]
   #9 /usr/lib64/libtdb.so.1(tdb_traverse+0x6b) [0x7f73a1ea8c7b]
   #10 /usr/lib64/libsmbconf.so.0(+0x3a930) [0x7f73a8907930]
   #11 /usr/lib64/samba/libdbwrap.so(dbwrap_traverse+0xa) [0x7f73a4cbf6ca]
   #12 /usr/lib64/samba/libsmbregistry.so(regdb_init+0x257) [0x7f73a6821f57]
   #13 /usr/lib64/samba/libsmbregistry.so(registry_init_common+0x13) [0x7f73a6824563]
   #14 /usr/lib64/samba/libsmbd_base.so(registry_init_full+0x6) [0x7f73a9ad5bb6]
   #15 /usr/sbin/smbd(main+0x871) [0x405dd1]
   #16 /lib64/libc.so.6(__libc_start_main+0xed) [0x7f73a6e5f8cd]
   #17 /usr/sbin/smbd() [0x406cc5]

Reproducible: Always
Comment 1 Patrick Lauer gentoo-dev 2013-08-05 04:43:04 UTC
This is mostly fixed in 4.1.0_rc1. Not sure if backporting to 4.0 is worth the effort.
Comment 2 Víctor Ostorga (RETIRED) gentoo-dev 2016-02-01 00:48:56 UTC
sys-libs/ntdb is now a dependency of samba

Thanks for the bug report.