Issue 8770 - dsaschema seg faults
Summary: dsaschema seg faults
Status: VERIFIED FIXED
Alias: None
Product: OpenLDAP
Classification: Unclassified
Component: contrib (show other issues)
Version: unspecified
Hardware: All All
: --- normal
Target Milestone: 2.5.4
Assignee: Ondřej Kuzník
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-06 16:38 UTC by Michael Ströder
Modified: 2021-05-10 15:36 UTC (History)
0 users

See Also:


Attachments
OpenLDAP test config (3.35 KB, application/octet-stream)
2020-03-23 17:28 UTC, Michael Ströder
Details

Note You need to log in before you can comment on or make changes to this issue.
Description Michael Ströder 2017-11-06 16:38:51 UTC
Full_Name: 
Version: RE24
OS: 
URL: 
Submission from: (NULL) (213.240.182.108)


This leads to a seg fault:

moduleload dsaschema.so
  /home/michael/Proj/oath-ldap/oath-ldap-dsa.schema

More information to come...
Comment 1 Michael Ströder 2017-11-06 17:15:59 UTC
Canned config available:
https://stroeder.com/temp/openldap-testbed-its8770.tar.gz

Seg faults with 2.4.45 and current RE24 branch:

$ cd openldap-testbed-its8770
$ ./start-slapd.sh
[..]
5a009864 slapd.conf: line 19 (moduleload	back_mdb)
5a009864 loaded module back_mdb
5a009864 mdb_back_initialize: initialize MDB backend
5a009864 mdb_back_initialize: LMDB 0.9.21: (June 1, 2017)
5a009864 module back_mdb: null module registered
5a009864 slapd.conf: line 22 (moduleload dsaschema.so
schema/oath-ldap-dsa.schema)
5a009864 loaded module dsaschema.so
./start-slapd.sh: line 11: 29304 Segmentation fault      (core dumped)
${OPENLDAP_PREFIX}/lib64/slapd -d
config,stats,stats2,acl,args,trace,sync -h "ldap://0.0.0.0:2071
ldapi://slapd1-socket" -n slapd-its8770 -f slapd.conf


Comment 2 Quanah Gibson-Mount 2020-03-23 17:22:09 UTC
Example configuration no longer available, was not uploaded to FTP server as per documented procedures for that time period.

Report for contrib overlay.
Comment 3 Ryan Tandy 2020-03-23 17:25:42 UTC
From my notes when I was reviewing contrib modules some years ago:

- builds but doesn't work, copied internal prototypes are wrong
Comment 4 Michael Ströder 2020-03-23 17:28:08 UTC
Created attachment 674 [details]
OpenLDAP test config
Comment 5 Michael Ströder 2020-03-23 17:30:33 UTC
I've added openldap-testbed-its8770.tar.gz formerly provided as linkt to my own web server (see comment 4).
Comment 7 Quanah Gibson-Mount 2021-04-09 22:25:16 UTC
Commits: 
  • aba73bdb 
by Ondřej Kuzník at 2021-04-09T21:02:08+00:00 
ITS#8770 Update dsaschema for current slapd


  • 08861212 
by Ondřej Kuzník at 2021-04-09T21:02:08+00:00 
ITS#8770 Fix dsaschema memory leaks