From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 19 18:41:59 2013 Received: (at submit) by debbugs.gnu.org; 19 Feb 2013 23:41:59 +0000 Received: from localhost ([127.0.0.1]:37562 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U7wox-0002UV-CT for submit@debbugs.gnu.org; Tue, 19 Feb 2013 18:41:59 -0500 Received: from eggs.gnu.org ([208.118.235.92]:36430) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U7wmd-0002R1-SI for submit@debbugs.gnu.org; Tue, 19 Feb 2013 18:39:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U7wlW-00070J-0e for submit@debbugs.gnu.org; Tue, 19 Feb 2013 18:38:28 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:48793) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U7wlV-00070F-TQ for submit@debbugs.gnu.org; Tue, 19 Feb 2013 18:38:25 -0500 Received: from eggs.gnu.org ([208.118.235.92]:47769) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U7wlT-00027q-Ea for bug-guile@gnu.org; Tue, 19 Feb 2013 18:38:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U7wlQ-0006zD-Ke for bug-guile@gnu.org; Tue, 19 Feb 2013 18:38:23 -0500 Received: from mout.web.de ([212.227.15.4]:56476) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U7wlQ-0006yx-Ap for bug-guile@gnu.org; Tue, 19 Feb 2013 18:38:20 -0500 Received: from [192.168.0.27] ([85.177.94.120]) by smtp.web.de (mrweb103) with ESMTPSA (Nemesis) id 0MHp4r-1U9JH24A4D-003R15 for ; Wed, 20 Feb 2013 00:38:18 +0100 Message-ID: <51240CE7.8030802@email.de> Date: Wed, 20 Feb 2013 00:38:15 +0100 From: Jan Schukat User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130106 Thunderbird/17.0.2 MIME-Version: 1.0 To: bug-guile@gnu.org Subject: --without-posix code uses scm_getpid() in libguile-2.0.2 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:1IRsW5eownVdd5VHZnACb08yB7XcA1S127B1MntPFDM MlM1dTlBOfMxfYm+cvtTGkdQsQqN+PnHXKdgYycVw1m3f5pV+P sF2yntZR7XX9pfnMVBh5HeIP0zryFWc2KbX6C0weVADPmsP8ag 7Olr0CPzS06N7nrpp/x3T7aFn0jZgm+qOVhFVKzpKNCAicKdqH K6xF1KGYbKcvwbYtz4qOg== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 208.118.235.17 X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Tue, 19 Feb 2013 18:41:58 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.0 (-----) I'm experimenting a little with statically linking a minimal build of libguile. So while no one really would want to build it it with --without-posix (except when you want the same functionality on all platforms including windows in your program), and this is a low priority bug and I can easily fix it myself for my purposes, it is still a bug. What happens is, in random.c in random_state_of_last_resort on line 668 scm_getpid is used to seed the random generator. So either a preprocessor switch or a hand constructed scm like in scm_getpid (scm_from_ulong(getpid())) should be used there. Regards From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 24 14:23:40 2013 Received: (at 13768-done) by debbugs.gnu.org; 24 Feb 2013 19:23:41 +0000 Received: from localhost ([127.0.0.1]:47920 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U9hAi-0004NR-Bm for submit@debbugs.gnu.org; Sun, 24 Feb 2013 14:23:40 -0500 Received: from a-pb-sasl-quonix.pobox.com ([208.72.237.25]:50747 helo=sasl.smtp.pobox.com) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U9hAg-0004NI-VO for 13768-done@debbugs.gnu.org; Sun, 24 Feb 2013 14:23:39 -0500 Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id B0370B141; Sun, 24 Feb 2013 14:22:03 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=sasl; bh=232a/bveuWAG7EVVcRE4L13LHvo=; b=uDlZxQ 7smhBefa8tkg4u5ckg8XZz24xYPiFooCpDnz0egTa+BPmeB13UAo8VIrisrghgX/ La/ralvpwvmftmYT6d/I8Qj8LM/ECFSfYrdytUwBdx+Sai1kBQBZ5JZ3SMa4/pPM Dj++VpRahadUwgUUBgu5x2pwRMI7XSo44500U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; q=dns; s=sasl; b=AkuBfOFJExMUQTsNLhZJl+ZN9ByswR4R 3Ia5PlvpHO5Mt+HjlNPQeuqAOAjZ+qmIWOLrsGWHl8qPl6tgW0mvqOqyTGPE4m4+ o8nAG217c6vCNRps6fRLepxkndtxxP6ir3w9F5722piximi/cqlOccuHXbFeTGt7 yUMlf55bGIM= Received: from a-pb-sasl-quonix.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id A34DDB140; Sun, 24 Feb 2013 14:22:03 -0500 (EST) Received: from badger (unknown [88.160.190.192]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTPSA id 2A776B13F; Sun, 24 Feb 2013 14:22:02 -0500 (EST) From: Andy Wingo To: Jan Schukat Subject: Re: bug#13768: --without-posix code uses scm_getpid() in libguile-2.0.2 References: <51240CE7.8030802@email.de> Date: Sun, 24 Feb 2013 20:21:54 +0100 In-Reply-To: <51240CE7.8030802@email.de> (Jan Schukat's message of "Wed, 20 Feb 2013 00:38:15 +0100") Message-ID: <87ip5hcyb1.fsf@pobox.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Pobox-Relay-ID: 781124B0-7EB7-11E2-B548-1C2F0E5B5709-02397024!a-pb-sasl-quonix.pobox.com X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 13768-done Cc: 13768-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) On Wed 20 Feb 2013 00:38, Jan Schukat writes: > What happens is, in random.c in random_state_of_last_resort on line 668 > scm_getpid is used to seed the random generator. So either a > preprocessor switch or a hand constructed scm like in scm_getpid > (scm_from_ulong(getpid())) should be used there. Fixed, thanks for the report. Andy -- http://wingolog.org/ From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 24 20:20:02 2013 Received: (at 13768) by debbugs.gnu.org; 25 Feb 2013 01:20:02 +0000 Received: from localhost ([127.0.0.1]:48391 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U9mja-0005Qj-1L for submit@debbugs.gnu.org; Sun, 24 Feb 2013 20:20:02 -0500 Received: from world.peace.net ([96.39.62.75]:57396) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U9mjE-0005Pt-Si for 13768@debbugs.gnu.org; Sun, 24 Feb 2013 20:20:00 -0500 Received: from 209-6-91-212.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com ([209.6.91.212] helo=tines.lan) by world.peace.net with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1U9mhY-0006AS-S8; Sun, 24 Feb 2013 20:17:57 -0500 From: Mark H Weaver To: 13768@debbugs.gnu.org Subject: Re: bug#13768: --without-posix code uses scm_getpid() in libguile-2.0.2 References: <51240CE7.8030802@email.de> <87ip5hcyb1.fsf@pobox.com> Date: Sun, 24 Feb 2013 20:17:47 -0500 In-Reply-To: <87ip5hcyb1.fsf@pobox.com> (Andy Wingo's message of "Sun, 24 Feb 2013 20:21:54 +0100") Message-ID: <87sj4l5gzo.fsf@tines.lan> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.8 (/) X-Debbugs-Envelope-To: 13768 Cc: wingo@pobox.com, shookie@email.de X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) reopen 13768 thanks Andy Wingo writes: > On Wed 20 Feb 2013 00:38, Jan Schukat writes: > >> What happens is, in random.c in random_state_of_last_resort on line 668 >> scm_getpid is used to seed the random generator. So either a >> preprocessor switch or a hand constructed scm like in scm_getpid >> (scm_from_ulong(getpid())) should be used there. > > Fixed, thanks for the report. This has potential security implications. If the same program is run multiple times in the same second, then without something like a PID, there's a significant danger that two runs of the program will use the same random seed. Therefore, I think we ought to try hard to ensure that something like a PID will always be included in this seed. Perhaps 'scm_getpid' should be included even when building --without-posix. At the very least, the documentation (which currently claims that the PID is included in the random-state-of-last-resort) should be adjusted to reflect the new reality. I just took care of that. Thanks, Mark From unknown Mon Jun 23 02:25:19 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: Did not alter fixed versions and reopened. Date: Mon, 25 Feb 2013 01:32:01 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # Did not alter fixed versions and reopened. thanks # This fakemail brought to you by your local debbugs # administrator From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 25 04:08:23 2013 Received: (at 13768) by debbugs.gnu.org; 25 Feb 2013 09:08:23 +0000 Received: from localhost ([127.0.0.1]:48904 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U9u2o-0001Sz-Dv for submit@debbugs.gnu.org; Mon, 25 Feb 2013 04:08:23 -0500 Received: from a-pb-sasl-quonix.pobox.com ([208.72.237.25]:39269 helo=sasl.smtp.pobox.com) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U9u2m-0001St-BC for 13768@debbugs.gnu.org; Mon, 25 Feb 2013 04:08:21 -0500 Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id E86CFA5D6; Mon, 25 Feb 2013 04:06:41 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=sasl; bh=xtwygTJenEEpSIpQt02yiHEIG+k=; b=QmMfkT ryN5Y5xpvy5t+gfTkBNLOrw7BD+pbJlErJqvLJNJRx9qXcVXCbVTtV5APrI3CPmD zAj64pu7aETFb9fecD3Qo+6O6mN3E0uXUporDuWdH6UqAV1YhhKsoqtwYMMqt5q2 XLGDiD3nyZYzJUa4xvamNOZvURGY/FqIdgcAc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; q=dns; s=sasl; b=SbixgGAAoWaYSKulEj2Ll0T+wEIssqM5 MGhuYz3vskihy0Wl1LlAt2kPtNwUtY+FZSAQD1gn1ZouM+xoyE/zrDPRlQsGMMSq fXS3BDBpeXwrB5c15jPr7ttfUXqa9lhsjj/GKZoKaOpln44lkNarCtxcOX20jT0q iFdly4y+jP8= Received: from a-pb-sasl-quonix.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id D3690A5D5; Mon, 25 Feb 2013 04:06:41 -0500 (EST) Received: from badger (unknown [88.160.190.192]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTPSA id 2BC97A5D4; Mon, 25 Feb 2013 04:06:41 -0500 (EST) From: Andy Wingo To: Mark H Weaver Subject: Re: bug#13768: --without-posix code uses scm_getpid() in libguile-2.0.2 References: <51240CE7.8030802@email.de> <87ip5hcyb1.fsf@pobox.com> <87sj4l5gzo.fsf@tines.lan> Date: Mon, 25 Feb 2013 10:06:38 +0100 In-Reply-To: <87sj4l5gzo.fsf@tines.lan> (Mark H. Weaver's message of "Sun, 24 Feb 2013 20:17:47 -0500") Message-ID: <87621g92zl.fsf@pobox.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Pobox-Relay-ID: AB4161B0-7F2A-11E2-9B00-1C2F0E5B5709-02397024!a-pb-sasl-quonix.pobox.com X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 13768 Cc: 13768@debbugs.gnu.org, shookie@email.de X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) On Mon 25 Feb 2013 02:17, Mark H Weaver writes: > Andy Wingo writes: > >> On Wed 20 Feb 2013 00:38, Jan Schukat writes: >> >>> What happens is, in random.c in random_state_of_last_resort on line 668 >>> scm_getpid is used to seed the random generator. So either a >>> preprocessor switch or a hand constructed scm like in scm_getpid >>> (scm_from_ulong(getpid())) should be used there. >> >> Fixed, thanks for the report. > > This has potential security implications. If the same program is run > multiple times in the same second, then without something like a PID, > there's a significant danger that two runs of the program will use the > same random seed. Our PRNG is not secure. We should not be making arguments from the perspective of security. (I think including the PID is a good thing, but not because of security.) > Therefore, I think we ought to try hard to ensure that something like a > PID will always be included in this seed. Perhaps 'scm_getpid' should > be included even when building --without-posix. Why don't we just add the result of getpid() without relying on the scm_getpid() binding. All platforms have it. > At the very least, the documentation (which currently claims that the > PID is included in the random-state-of-last-resort) should be adjusted > to reflect the new reality. I just took care of that. Thanks for following up. TBH though I would prefer that if you already know the solution, to go ahead and fix it instead of writing a mail and fixing the docs. Much easier on users (and developers :) if Guile just does the right thing. Andy -- http://wingolog.org/ From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 25 14:00:35 2013 Received: (at 13768-done) by debbugs.gnu.org; 25 Feb 2013 19:00:35 +0000 Received: from localhost ([127.0.0.1]:49900 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UA3Hv-0000VF-B4 for submit@debbugs.gnu.org; Mon, 25 Feb 2013 14:00:35 -0500 Received: from world.peace.net ([96.39.62.75]:58424) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UA3Hr-0000V6-RN for 13768-done@debbugs.gnu.org; Mon, 25 Feb 2013 14:00:33 -0500 Received: from 209-6-91-212.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com ([209.6.91.212] helo=tines.lan) by world.peace.net with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1UA3G5-0000HB-S0; Mon, 25 Feb 2013 13:58:42 -0500 From: Mark H Weaver To: Andy Wingo Subject: Re: bug#13768: --without-posix code uses scm_getpid() in libguile-2.0.2 References: <51240CE7.8030802@email.de> <87ip5hcyb1.fsf@pobox.com> <87sj4l5gzo.fsf@tines.lan> <87621g92zl.fsf@pobox.com> Date: Mon, 25 Feb 2013 13:58:27 -0500 In-Reply-To: <87621g92zl.fsf@pobox.com> (Andy Wingo's message of "Mon, 25 Feb 2013 10:06:38 +0100") Message-ID: <87bob85igc.fsf@tines.lan> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.8 (/) X-Debbugs-Envelope-To: 13768-done Cc: 13768-done@debbugs.gnu.org, shookie@email.de X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) Hi Andy, Andy Wingo writes: > Our PRNG is not secure. We should not be making arguments from the > perspective of security. (I think including the PID is a good thing, > but not because of security.) Indeed, point well taken. > Why don't we just add the result of getpid() without relying on the > scm_getpid() binding. All platforms have it. Ah, good! I didn't know that getpid() was available on MinGW. > Thanks for following up. TBH though I would prefer that if you already > know the solution, to go ahead and fix it instead of writing a mail and > fixing the docs. Agreed. I didn't know the solution until just now. I have done as you suggested above, and am now closing this bug. Thanks, Mark From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 25 15:41:33 2013 Received: (at 13768-done) by debbugs.gnu.org; 25 Feb 2013 20:41:33 +0000 Received: from localhost ([127.0.0.1]:50043 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UA4rc-0002uJ-PJ for submit@debbugs.gnu.org; Mon, 25 Feb 2013 15:41:33 -0500 Received: from a-pb-sasl-quonix.pobox.com ([208.72.237.25]:46271 helo=sasl.smtp.pobox.com) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UA4ra-0002uC-I0 for 13768-done@debbugs.gnu.org; Mon, 25 Feb 2013 15:41:31 -0500 Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 14557BE79; Mon, 25 Feb 2013 15:39:49 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=sasl; bh=vUsIDzbVJI3MQd1BhakVRUuh7gs=; b=haN2C/ 7NvAAUrDOj7AbVnCIXVrTd/eYf8nrrPS2Q6IN3Cn6NXhylyy6QoVOmZCqplFjIkM f0Pap6pt2Gg5FdoK0a58/Cir81f5ToBIb2IvbMfcZ/NILnUZYlfKrO3H8W4lcfH4 nYP9KgvKLvZTasc8NoqtL722V66U1UYjWBztE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; q=dns; s=sasl; b=HT+d7eSLRXdZBJWj8mfWcqlsMZlfhFX5 OYBB7LyraFXstQ4tUXYE26Ranui6HcPom+yGSRBqk+5UCQSE7ArjAou9HYdry8HK g9hLUzbUEuRgfYcVYaTbZxtkx5R2jQgw1uU6ccWYMl0j7eNgVSbJnB3sjaXRPVi5 87RXINYEFNQ= Received: from a-pb-sasl-quonix.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 0AC6DBE78; Mon, 25 Feb 2013 15:39:49 -0500 (EST) Received: from badger (unknown [88.160.190.192]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTPSA id 856C1BE76; Mon, 25 Feb 2013 15:39:48 -0500 (EST) From: Andy Wingo To: Mark H Weaver Subject: Re: bug#13768: --without-posix code uses scm_getpid() in libguile-2.0.2 References: <51240CE7.8030802@email.de> <87ip5hcyb1.fsf@pobox.com> <87sj4l5gzo.fsf@tines.lan> <87621g92zl.fsf@pobox.com> <87bob85igc.fsf@tines.lan> Date: Mon, 25 Feb 2013 21:39:42 +0100 In-Reply-To: <87bob85igc.fsf@tines.lan> (Mark H. Weaver's message of "Mon, 25 Feb 2013 13:58:27 -0500") Message-ID: <87sj4k2kmp.fsf@pobox.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Pobox-Relay-ID: 7F427C00-7F8B-11E2-AE6A-79910E5B5709-02397024!a-pb-sasl-quonix.pobox.com X-Spam-Score: 0.1 (/) X-Debbugs-Envelope-To: 13768-done Cc: 13768-done@debbugs.gnu.org, shookie@email.de X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) On Mon 25 Feb 2013 19:58, Mark H Weaver writes: >> Why don't we just add the result of getpid() without relying on the >> scm_getpid() binding. All platforms have it. > > Ah, good! I didn't know that getpid() was available on MinGW. > >> Thanks for following up. TBH though I would prefer that if you already >> know the solution, to go ahead and fix it instead of writing a mail and >> fixing the docs. > > Agreed. I didn't know the solution until just now. I have done as you > suggested above, and am now closing this bug. Super, thank you! FWIW, --disable-posix has two uses. One is to work around compilation failures, and the other is to decrease the "interface size" of Guile. But sometimes they are a bit entangled, which is the case for scm_getpid that might get removed when you're just looking to get around some compilation failure. Cheers, Andy -- http://wingolog.org/ From unknown Mon Jun 23 02:25:19 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 26 Mar 2013 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator