There are old library code paths that reset the SIGCLD handler and don't correctly restore it - smbrun and friends are the worst culprets here. As smbd and winbindd both install a custom tevent-based SIGCLD signal handler, we need to ensure this is restored.
Created attachment 10328 [details] git-am fix for 4.1.next, 4.0.next. Fix that went into master, applies cleanly to 4.1.next, 4.0.next.
Re-assigning to Karolin for inclusion in 4.1.next, 4.0.next.
Pushed to autobuild-v4-[0|1]-test.
The 4.0 patch seems to break the build: lib/smbrun.c: In function 'smbrun_internal': lib/smbrun.c:94: error: void value not ignored as it ought to be lib/smbrun.c: In function 'smbrunsecret': lib/smbrun.c:258: error: void value not ignored as it ought to be The following command failed: gcc -g -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DDEBUG_PASSWORD -DDEVELOPER -g -Wall -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Wdeclaration-after-statement -Werror-implicit-function-declaration -I. -I/memdisk/kseeger/a40/b577505/samba3/source3 -I/memdisk/kseeger/a40/b577505/samba3/source3/../lib/iniparser/src -Iinclude/autoconf -Iautoconf -Iautoconf/source3 -Iinclude -I./include -I. -I. -I./../lib/replace -I../lib/ccan/.. -I./librpc -I./.. -I./../lib/tdb_compat -I./../lib/tevent -I../lib/tdb/include -I../lib/ntdb -DHAVE_CONFIG_H -D_GNU_SOURCE -Iinclude/autoconf -Iautoconf -Iautoconf/source3 -Iinclude -I./include -I. -I. -I./../lib/replace -I../lib/ccan/.. -I./librpc -I./.. -I./../lib/tdb_compat -I./../lib/popt -DLDAP_DEPRECATED -I/memdisk/kseeger/a40/b577505/samba3/source3/lib -I.. -I./../lib/ldb/include -D_SAMBA_BUILD_=3 -D_SAMBA_BUILD_=3 -fPIC -c lib/smbrun.c -o lib/smbrun.o make: *** [lib/smbrun.o] Error 1 Jeremy, could you investigate, please? Thanks!
Same for 4.1: [1881/4128] Compiling source3/lib/smbrun.c ../source3/lib/smbrun.c: In function 'smbrun_internal': ../source3/lib/smbrun.c:98: error: void value not ignored as it ought to be ../source3/lib/smbrun.c: In function 'smbrunsecret': ../source3/lib/smbrun.c:262: error: void value not ignored as it ought to be
Created attachment 10336 [details] New git-am fix for 4.1.next, 4.0.next. Sorry Karolin, I missed the previous patch that was needed to change the header definitions. These 2 patches should apply cleanly to 4.1.next, 4.0.next and build ok here. Jeremy.
Pushed to autobuild-v4-[0|1]-test. Thanks!
Pushed to both branches. Closing out bug report. Thanks!