Azure: we're seeing bus errors and segfaults in scope app.
Difficult to repro.  Try checking uname results?
@@ -161,8 +161,12 @@ check_kernel_version(void)
if (uname(&buffer)) {
return 0;
}
+ printf("uname release = %s\n", buffer.release);
+
token = strtok(buffer.release, separator);
val = atoi(token);
+ printf("major version = %d\n", val);
+
if (val < 3) {
return 0;
} else if (val > 3){
@@ -170,7 +174,9 @@ check_kernel_version(void)
}
token = strtok(NULL, separator);
- return atoi(token) < 17 ? 0 : 1;
+ val = atoi(token);
+ printf("minor version = %d\n", val);
+ return (val < 17) ? 0 : 1;
}
static void
@@ -289,7 +295,7 @@ main(int argc, char **argv, char **env)
} else if (pid > 0) {
int status;
waitpid(pid, &status, 0);
- //release_libscope(&info);
+ release_libscope(&info);
exit(status);
} else {
execve(argv[1], &argv[1], environ);
@@ -306,12 +312,12 @@ main(int argc, char **argv, char **env)
fprintf(stderr, "%s\n", dlerror());
goto err;
}
- //release_libscope(&info);
+ release_libscope(&info);
sys_exec(buf, argv[1], argc, argv, env);
return 0;
err:
- //release_libscope(&info);
+ release_libscope(&info);
exit(EXIT_FAILURE);
}
