Bug 45964 - 10_ldap/44replication_binary fails
10_ldap/44replication_binary fails
Status: CLOSED FIXED
Product: UCS Test
Classification: Unclassified
Component: LDAP
unspecified
Other Linux
: P5 normal (vote)
: UCS 4.3
Assigned To: Philipp Hahn
Stefan Gohmann
: interim-2
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2017-12-29 11:47 CET by Florian Best
Modified: 2018-03-14 14:38 CET (History)
1 user (show)

See Also:
What kind of report is it?: Development Internal
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Best univentionstaff 2017-12-29 11:47:56 CET
(2017-12-28 16:24:49.705489) 44replication_binary: Zeile 113: /usr/sbin/udm-test: Die Argumentliste ist zu lang
(2017-12-28 16:24:49.706599) error 2017-12-28 16:24:49	 *** Check failed (1), but this might be caused by the error above ***

# wc -c b64
172301 b64
# /bin/echo "$(cat b64)"
-bash: /bin/echo: Argument list too long
# getconf ARG_MAX
2097152

https://unix.stackexchange.com/questions/120642/what-defines-the-maximum-size-for-a-command-single-argument

What should we do here?
* Workaround the test script and lower the size of the image? But then we don't test what the test case wants to test anymore.
* Add something in UDM that one can pass filenames instead of the content directly?
* Adjust our ARG_MAX limits?
Comment 1 Philipp Hahn univentionstaff 2018-01-12 16:43:39 CET
> And as additional limit since 2.6.23, one argument must not be longer than MAX_ARG_STRLEN (131072)

# grep MAX_ARG_STRLEN /usr/include/linux/binfmts.h 
#define MAX_ARG_STRLEN (PAGE_SIZE * 32)

9a571533ef Bug #45964 test: Fix tests/10_ldap/4{2replication_ldiff,4replication_binary}

Package: ucs-test
Version: 8.0.10-1A~4.3.0.201801121643
Branch: ucs_4.3-0
Comment 2 Florian Best univentionstaff 2018-01-15 13:13:45 CET
http://jenkins.knut.univention.de:8080/job/UCS-4.3/job/UCS-4.3-0/job/AutotestJoin/lastCompletedBuild/SambaVersion=s4,Systemrolle=master/testReport/10_ldap/44replication_binary/test/

(2018-01-14 19:57:26.902171) /tmp/tmp.7Z3aIc0ivN/00000001: Zeile 1: rm -rf '/tmp/tmp.8cY2YiUphg': Datei oder Verzeichnis nicht gefunden

Might be the old ucs-test version.
Comment 3 Stefan Gohmann univentionstaff 2018-02-09 16:10:10 CET
OK, looks good.
Comment 4 Stefan Gohmann univentionstaff 2018-03-14 14:38:09 CET
UCS 4.3 has been released:
 https://docs.software-univention.de/release-notes-4.3-0-en.html
 https://docs.software-univention.de/release-notes-4.3-0-de.html

If this error occurs again, please use "Clone This Bug".