Re: seg.fault in pthread library
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:received:received:cc:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=CQLldd3JQAsEZqnY8W9xmC0fAHD8QY/22dnePvZHXh4=; b=utG+oQ8KWgedp09z9jE7SniBrgUeAaX9B9/bzPv21nWS7KELo3ysV1rer0CDB5oCJE qRC8xEY1ASlQkS0EFeskzIaI+Apzrmt64D2sfj7KiI5NVujDeiU1/tsAhF7Ju7Xyy77k tV33N9Xi9pjm3xlJ+3eWLeKj7q/73/KUZHCzI= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=cc:message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=X+lTIVNz52D6AWOmqiYww/skh04uA7IRFManbZ81FPvhBlJoKa7wyUg0X3t7PJ82H2 RWHshnbH7hwoM/vp4bV684QcqPoZxM15w1gWE9YA29rx2uEkKLZyxznKBi93R/ziaODu h7soR9pohH666ceby68AyjhWubawMStNQY+o8= man pthread_testcancel see Cancellation Points :-) On Mar 26, 2009, at 18:24 , Stefan Solbrig wrote: best regards, Stefan _______________________________________________ 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/jason.coco%40gmail.com _______________________________________________ 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... Hi, thanks for the help! So I have to be more careful with pthread_cancel(). But this brings me to another question: is there a list which functions are cancellation points? It is not legal POSIX to cancel a thread which has already been joined, since its local state information has potentially been destroyed and/or freed back to the system. It's morally equivalent to freeing memory and then dereferencing the pointer that used to point to it and hoping it still lives in your address space. This email sent to jason.coco@gmail.com This email sent to site_archiver@lists.apple.com
participants (1)
-
Jason Coco