site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:from:date:received :message-id:subject:to:content-type; bh=WF2MSKVS7GcKS/lnRLXfUjrUWZsCm/b1z1KGik3+dT0=; b=c1lor6XWTO79XbWMvrUqzaIGVUR7zdYtkPBs+yY3HajEft/1zsjpGa+Ed/80xyDbe9 XN4YloiUlvuRhogyfUNKlSIc7o5m1XjqiM7z8CqG+yxqgpzXTR+vthUEqpCD06t6JzO5 LAeMWUdi6rFnFdyHLWdzpTJdy4/IFaKhEHULY= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=mWMPXNNutz4Pjrfq7+Gu1WdW3ueVwlv6mYwSRsXAuTvxhhHC67SJKNENsPjTZ2aBM+ N4NoVwizK5a9DpWBW8Xw0D828Yq84plmO46UfF0Yn7iEnQWxkz80UwCcLduO4z1OMKVY TBr7DwtBAIQl7/Hz8oJNMHDOF7x7ICrM4DQyw= Hey list, On i386 10.6, waitid() corrupts the stack, resulting in a crash (bug #7871139): ========================= // Compile using: // gcc -arch i386 waitid_crash.c -o waitid_crash #include <stdlib.h> #include <unistd.h> #include <sys/wait.h> void letscrashyay(pid_t pid) { siginfo_t info; waitid(P_PID, pid, &info, (WEXITED | WNOWAIT)); } int main() { pid_t pid = 0; pid = fork(); if (!pid) return execl("/bin/ls", "/bin/ls", NULL); letscrashyay(pid); return 0; } ========================= The program works when compiled for x86_64. Is waitid() safe to use from 64-bit? Perhaps there's a workaround to use it under i386? Thanks, David _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
Dave Keck