Apache OpenOffice (AOO) Bugzilla – Issue 80012
dmake core dumps while deleting intermediate targets in parallel builds
Last modified: 2013-08-07 15:34:52 UTC
The following makefile makes dmake core dump for parallel builds with -P2. - - - - SHELL*:=/bin/sh SHELLFLAGS*:=-ce .REMOVE :; @-+echo rm -rf $< %.aaa : %.bbb @echo building $@ @echo finished $@ %.bbb : %.ccc @echo building $@ @sleep 2 @echo finished $@ %.ccc : @echo building $@ @echo finished $@ all : aaa.aaa +echo Done - - - - $ ./dmake/dmake.exe -P2 -rf makefile.mk building aaa.ccc finished aaa.ccc building aaa.bbb finished aaa.bbb rm -rf aaa.ccc Aborted (core dumped) (Not a new problem, happens also with older dmakes)
The debug patch from issue 81821 http://www.openoffice.org/nonav/issues/showattachment.cgi/48421/iz81821_dbg_2.diff made it rather easy to locate the bug. Thou shalt not use static variables lightly! The following patch fixes this problem for me. IMHO this should still go into dmake411.
Created attachment 48458 [details] Patch for dmake
Patch committed.
I hope this really was the last issue for dmake411. Maybe I commit a testcase later today. Please verify.
helps a lot. now my cws depends on dmake411...
dmake 4.11 is in use now