[distcc] Current distcc immediately crashes
Wayne Davison
wayned at samba.org
Tue Jul 29 03:48:10 GMT 2003
On Tue, Jul 29, 2003 at 04:17:45AM +0200, Frerich Raabe wrote:
> $ export DISTCC_HOSTS="localhost"
> $ echo "int main() { }" > hello.c
> $ distcc cc -o hello.o -c hello.c
> Segmentation fault
Do you also have DISTCC_DIR set? I don't see a failure without that
being specified. Here's a fix for the bug I found in the reading of
this environment value:
--- src/tempfile.c 25 Jul 2003 04:53:56 -0000 1.58
+++ src/tempfile.c 29 Jul 2003 03:45:22 -0000
@@ -126,7 +126,7 @@
}
if ((env = getenv("DISTCC_DIR"))) {
- if ((*path_ret = strdup(env)) == NULL) {
+ if ((cached = strdup(env)) == NULL) {
return EXIT_OUT_OF_MEMORY;
} else {
*path_ret = cached;
..wayne..
More information about the distcc
mailing list