Bug 10661 - ldbsearch core dump
Summary: ldbsearch core dump
Status: NEW
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: AD: LDB/DSDB/SAMDB (show other bugs)
Version: 4.1.8
Hardware: x64 Linux
: P5 normal (vote)
Target Milestone: ---
Assignee: Andrew Bartlett
QA Contact: Samba QA Contact
Depends on:
Reported: 2014-06-17 17:13 UTC by matt
Modified: 2018-08-28 06:37 UTC (History)
1 user (show)

See Also:

strace (109.54 KB, application/octet-stream)
2014-06-17 17:14 UTC, matt
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description matt 2014-06-17 17:13:38 UTC
I am using Arch Linux current with their Samba 4.1.8, ldb 1.1.16, and tdb 1.2.12. Whenever I use ldbsearch it core dumps. I have opened an Arch Linux bug, but they said it should be reported upstream.

# ldbsearch --modules-path=/usr/lib/samba/ldb/ -H /var/lib/samba/private/sam.ldb '(invocationid=*)' --cross-ncs objectguid
Aborted (core dumped)

In an off chance, I manually compiled current versions of ldb (1.1.17) and cdb (1.3.0), then manually recompiled samba 4.1.8 via the package manager and the problem persists.

Strace is attached. Is there anything else I can provide?
Comment 1 matt 2014-06-17 17:14:07 UTC
Created attachment 10038 [details]
Comment 2 matt 2014-07-02 14:58:51 UTC
Upgraded to Samba 4.1.9, same result.
Comment 3 Amit Kumar 2018-08-28 06:37:14 UTC
# ldbsearch --modules-path=/usr/lib64/samba/ldb/  -H /var/lib/samba/private/sam.ldb -a
# returned 0 records
# 0 entries
# 0 referrals
# ldbsearch --modules-path=/usr/lib64/samba/ldb/  -H /var/lib/samba/private/sam.ldb '(invocationid=*)'
# returned 0 records
# 0 entries
# 0 referrals 

Does it crash on empty database and all option as well