RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1448547 - Instance creation fails with 389-ds-base-1.3.6.1-10.el7.x86_64
Summary: Instance creation fails with 389-ds-base-1.3.6.1-10.el7.x86_64
Keywords:
Status: CLOSED DUPLICATE of bug 1444938
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: 389-ds-base
Version: 7.4
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: rc
: ---
Assignee: mreynolds
QA Contact: Viktor Ashirov
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-05-05 17:32 UTC by Viktor Ashirov
Modified: 2017-05-05 20:01 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-05-05 20:01:21 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Viktor Ashirov 2017-05-05 17:32:07 UTC
Description of problem:
setup-ds.pl fails to create new instance

Version-Release number of selected component (if applicable):
389-ds-base-1.3.6.1-10.el7.x86_64

How reproducible:
always

Steps to Reproduce:
1. setup-ds.pl
2.
3.

Actual results:
[...]

Directory Manager DN [cn=Directory Manager]: 
Password: 
Password (confirm): 
Process returned 256


Expected results:
New instance should be created.

Additional info:

Comment 2 Viktor Ashirov 2017-05-05 17:48:52 UTC
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff76d8fa8 in strcmpi_fast (src=0x5555555a62b7 "dataVersion", dst=0x1 <Address 0x1 out of bounds>) at ldap/servers/slapd/intrinsics.h:29
29			if ( ((f = (unsigned char)(*(dst++))) >= 'A') && (f <= 'Z') )
(gdb) l
24	
25	INLINE_DIRECTIVE static int strcmpi_fast(const char * dst, const char * src)
26	{
27		int f,l;
28		do {
29			if ( ((f = (unsigned char)(*(dst++))) >= 'A') && (f <= 'Z') )
30				f -= ('A' - 'a');
31			if ( ((l = (unsigned char)(*(src++))) >= 'A') && (l <= 'Z') )
32				l -= ('A' - 'a');
33		} while ( f && (f == l) );
(gdb) bt
#0  0x00007ffff76d8fa8 in strcmpi_fast (src=0x5555555a62b7 "dataVersion", dst=0x1 <Address 0x1 out of bounds>) at ldap/servers/slapd/intrinsics.h:29
#1  attrlist_find_or_create_locking_optional (alist=alist@entry=0x5555562e0478, type=type@entry=0x5555555a62b7 "dataVersion", a=a@entry=0x7fffffff7fa8, use_lock=use_lock@entry=1) at ldap/servers/slapd/attrlist.c:47
#2  0x00007ffff76d905a in attrlist_find_or_create (alist=alist@entry=0x5555562e0478, type=type@entry=0x5555555a62b7 "dataVersion", a=a@entry=0x7fffffff7fa8) at ldap/servers/slapd/attrlist.c:37
#3  0x00007ffff76d94f4 in attrlist_replace (alist=alist@entry=0x5555562e0478, type=0x5555555a62b7 "dataVersion", vals=vals@entry=0x7fffffff8050) at ldap/servers/slapd/attrlist.c:279
#4  0x000055555557da0d in read_root_dse (pb=0x5555560e7e00, e=0x5555562e0400, entryAfter=<optimized out>, returncode=0x7fffffff816c, returntext=<optimized out>, arg=<optimized out>) at ldap/servers/slapd/rootdse.c:248
#5  0x00007ffff76e9369 in dse_call_callback (pb=pb@entry=0x5555560e7e00, operation=operation@entry=4, flags=flags@entry=1, entryBefore=entryBefore@entry=0x5555562e0400, entryAfter=entryAfter@entry=0x0, returncode=returncode@entry=0x7fffffff816c, 
    returntext=returntext@entry=0x7fffffff81f0 "", pdse=<optimized out>) at ldap/servers/slapd/dse.c:2637
#6  0x00007ffff76eaf47 in dse_search (pb=0x5555560e7e00) at ldap/servers/slapd/dse.c:1739
#7  0x00007ffff772460e in op_shared_search (pb=pb@entry=0x5555560e7e00, send_result=send_result@entry=1) at ldap/servers/slapd/opshared.c:807
#8  0x00007ffff7734b6e in search_internal_callback_pb (pb=pb@entry=0x5555560e7e00, callback_data=callback_data@entry=0x7fffffffcd50, prc=prc@entry=0x7ffff7733c80 <internal_plugin_result_callback>, psec=psec@entry=0x7ffff7733cd0 <internal_plugin_search_entry_callback>, 
    prec=prec@entry=0x7ffff7733c90 <internal_plugin_search_referral_callback>) at ldap/servers/slapd/plugin_internal_op.c:781
#9  0x00007ffff7734e08 in search_internal_pb (pb=pb@entry=0x5555560e7e00) at ldap/servers/slapd/plugin_internal_op.c:634
#10 0x00007ffff773501d in slapi_search_internal (base=base@entry=0x7fffe98a6174 "", scope=scope@entry=0, filter=filter@entry=0x7fffe98a623c "(objectclass=*)", controls=controls@entry=0x0, attrs=attrs@entry=0x7fffffffcea0, attrsonly=attrsonly@entry=0)
    at ldap/servers/slapd/plugin_internal_op.c:478
#11 0x00007fffe98a54ca in views_cache_build_view_list (pViews=0x7fffe9aa8300 <theCache>) at ldap/servers/plugins/views/views.c:1154
#12 views_cache_create () at ldap/servers/plugins/views/views.c:448
#13 0x00007fffe98a5922 in views_start (pb=<optimized out>) at ldap/servers/plugins/views/views.c:217
#14 0x00007ffff772fbbb in plugin_call_func (list=0x5555562a62c0, operation=operation@entry=212, pb=0x555556096750, call_one=call_one@entry=1) at ldap/servers/slapd/plugin.c:2072
#15 0x00007ffff773026c in plugin_call_one (pb=<optimized out>, operation=212, list=<optimized out>) at ldap/servers/slapd/plugin.c:2020
#16 plugin_dependency_startall (argc=argc@entry=5, argv=argv@entry=0x7fffffffe348, plugin_list=plugin_list@entry=0x0, errmsg=<optimized out>, operation=212) at ldap/servers/slapd/plugin.c:1791
#17 0x00007ffff7730803 in plugin_startall (argc=argc@entry=5, argv=argv@entry=0x7fffffffe348, plugin_list=plugin_list@entry=0x0) at ldap/servers/slapd/plugin.c:1992
#18 0x00005555555668a8 in main (argc=5, argv=0x7fffffffe348) at ldap/servers/slapd/main.c:1089

Comment 3 Viktor Ashirov 2017-05-05 18:48:50 UTC
DS rebuilt with -O0 produces different backtrace on startup:

Program received signal SIGSEGV, Segmentation fault.
__strlen_sse42 () at ../sysdeps/x86_64/multiarch/strlen-sse4.S:31
31		pcmpeqb	(%rdi), %xmm1
(gdb) bt
#0  __strlen_sse42 () at ../sysdeps/x86_64/multiarch/strlen-sse4.S:31
#1  0x0000555555582241 in read_root_dse (pb=0x5555560fbe00, e=0x555556342880, entryAfter=0x0, returncode=0x7fffffff915c, 
    returntext=0x7fffffff8f50 "", arg=0x0) at ldap/servers/slapd/rootdse.c:211
#2  0x00007ffff76d3197 in dse_call_callback (pdse=0x555555fd10e0, pb=0x5555560fbe00, operation=4, flags=1, entryBefore=0x555556342880, 
    entryAfter=0x0, returncode=0x7fffffff915c, returntext=0x7fffffff8f50 "") at ldap/servers/slapd/dse.c:2637
#3  0x00007ffff76d1296 in dse_search (pb=0x5555560fbe00) at ldap/servers/slapd/dse.c:1739
#4  0x00007ffff7714610 in op_shared_search (pb=0x5555560fbe00, send_result=1) at ldap/servers/slapd/opshared.c:807
#5  0x00007ffff7729bd5 in search_internal_callback_pb (pb=0x5555560fbe00, callback_data=0x7fffffffd900, 
    prc=0x7ffff772966f <internal_plugin_result_callback>, psec=0x7ffff7729588 <internal_plugin_search_entry_callback>, 
    prec=0x7ffff7729605 <internal_plugin_search_referral_callback>) at ldap/servers/slapd/plugin_internal_op.c:781
#6  0x00007ffff7729731 in search_internal_pb (pb=0x5555560fbe00) at ldap/servers/slapd/plugin_internal_op.c:634
#7  0x00007ffff7729394 in slapi_search_internal (base=0x7fffe983e82c "", scope=0, filter=0x7fffe983e81c "(objectclass=*)", 
    controls=0x0, attrs=0x7fffffffd9e0, attrsonly=0) at ldap/servers/slapd/plugin_internal_op.c:478
#8  0x00007fffe983d45d in views_cache_build_view_list (pViews=0x7fffe9a402a0 <theCache>) at ldap/servers/plugins/views/views.c:1154
#9  0x00007fffe983c7a5 in views_cache_create () at ldap/servers/plugins/views/views.c:448
#10 0x00007fffe983c20e in views_start (pb=0x555556381c90) at ldap/servers/plugins/views/views.c:217
#11 0x00007ffff77233c6 in plugin_call_func (list=0x5555563102c0, operation=212, pb=0x555556381c90, call_one=1)
    at ldap/servers/slapd/plugin.c:2072
#12 0x00007ffff772325c in plugin_call_one (list=0x5555563102c0, operation=212, pb=0x555556381c90) at ldap/servers/slapd/plugin.c:2020
#13 0x00007ffff7722a2f in plugin_dependency_startall (argc=5, argv=0x7fffffffe368, errmsg=0x7ffff77876e7 "plugin startup failed\n", 
    operation=212, plugin_list=0x0) at ldap/servers/slapd/plugin.c:1791
#14 0x00007ffff77231ed in plugin_startall (argc=5, argv=0x7fffffffe368, plugin_list=0x0) at ldap/servers/slapd/plugin.c:1992
#15 0x0000555555579e2d in main (argc=5, argv=0x7fffffffe368) at ldap/servers/slapd/main.c:1089

Comment 4 Viktor Ashirov 2017-05-05 20:01:21 UTC
Was caused by incomplete cherry-pick for bz1444938.

*** This bug has been marked as a duplicate of bug 1444938 ***


Note You need to log in before you can comment on or make changes to this bug.