From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7150 invoked by alias); 6 May 2017 09:50:23 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 7141 invoked by uid 89); 6 May 2017 09:50:22 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-6.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,GIT_PATCH_2,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=7.10.1-1, 7.10.1, 71011, 7101 X-HELO: mail-wr0-f172.google.com Received: from mail-wr0-f172.google.com (HELO mail-wr0-f172.google.com) (209.85.128.172) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 06 May 2017 09:50:21 +0000 Received: by mail-wr0-f172.google.com with SMTP id l50so14817025wrc.3 for ; Sat, 06 May 2017 02:50:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=DUd6uXnmo6925xpwjQb2UlzellIcgDDzX1v172z3vmY=; b=nJPsXX4p5ek/sWa+w/w/upBigmammdeOGR0mPiE81DVY5nQOonytXWPBCdyTTjAQWj eXGnxydej6KRUhwm/yxraBmiFkTNpzi/nnH9y4zFEqR1j2EKLu23Mik9JWBisb4h8/NP VHZ3fUmXaDF+8Edmwi6ecPyC37h4UhHpWu9ABR0NRZiJ1ZvLUXpUti4doWXyHMoF+cLf 31HwrqaLPfnrLbcUn/3nkJPRJYSg7Ws540W6Nbi7JzL477sm2M5hyOES5KI3zVMWUBjS 1oT0u86P7dFqMS4v1HLPmBJm0FpjSuAF9RHzKKy8SEH6dL+Jlw7c98I4zgNM/ADPNK3j 54uA== X-Gm-Message-State: AN3rC/4aGNlkBJeTIg7U+o9FvHLkYDqWIgAuLc56vqMm8dAPVbcUd2Um Px8pXLgdEiUKVhUI X-Received: by 10.223.164.153 with SMTP id g25mr33293142wrb.103.1494064222072; Sat, 06 May 2017 02:50:22 -0700 (PDT) Received: from ?IPv6:2003:cc:9bc4:8001:213d:a0c2:2c54:4276? (p200300CC9BC48001213DA0C22C544276.dip0.t-ipconnect.de. [2003:cc:9bc4:8001:213d:a0c2:2c54:4276]) by smtp.googlemail.com with ESMTPSA id y63sm6664246wme.31.2017.05.06.02.50.20 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 06 May 2017 02:50:21 -0700 (PDT) Subject: Re: fork issue on 32bit To: "cygwin@cygwin.com" References: From: Marco Atzeri Message-ID: <78f5e3bc-ab17-ac19-9916-138e279f414c@gmail.com> Date: Sat, 06 May 2017 09:50:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2017-05/txt/msg00077.txt.bz2 On 28/04/2017 20:38, Marco Atzeri wrote: > Hi, > > I am rebuilding the pure-ftpd server. > On 64bit I have no issue while testing the 32bit version on > > $ uname -svr > CYGWIN_NT-6.1-WOW 2.8.0(0.309/5/3) 2017-04-01 20:42 > > I hit: > > $ ./pure-ftpd -B > 0 [main] pure-ftpd 7960 E:\cygwin\usr\sbin\pure-ftpd.exe: *** > fatal error in forked process - fork: can't reserve memory for parent > stack 0x3B0000 - 0x5B0000, (child has 0x330000 - 0x530000), Win32 error 487 > 0 [main] pure-ftpd 4752 fork: child -1 - forked process 7960 died > unexpectedly, retry 0, exit code 0xC0000005, errno 11 > Unable to start a standalone server - fork: Resource temporarily > unavailable > > I excluded AV interference as it happens also on Safe Mode. > for the archive, the issue is caused by linking with "-Wl,--dynamicbase" removing the flag this problem go away. It was also the reason of the puzzling debug issue that was present on both 32bit and 64bit builds: ---------------- broken -------------- $ gdb ./pure-ftpd.exe GNU gdb (GDB) (Cygwin 7.10.1-1) 7.10.1 [cut] Reading symbols from ./pure-ftpd.exe...done. (gdb) break main Breakpoint 1 at 0x417e7e: file main.c, line 6. (gdb) run Starting program: /cygdrive/e/cyg_pub/devel/pure-ftpd/prova_1036/pure-ftpd-1.0.36-2.i686/build/src/pure-ftpd.exe [New Thread 1932.0xd2c] Warning: Cannot insert breakpoint 1. Cannot access memory at address 0x417e70 ------------ good ------------------- $ gdb ./pure-ftpd.exe GNU gdb (GDB) (Cygwin 7.10.1-1) 7.10.1 [cut] Reading symbols from ./pure-ftpd.exe...done. (gdb) break main Breakpoint 1 at 0x417e7e: file main.c, line 6. (gdb) run Starting program: /cygdrive/e/cyg_pub/devel/pure-ftpd/prova_1036/pure-ftpd-1.0.36-3.i686/build/src/pure-ftpd.exe [New Thread 768.0xb44] [New Thread 768.0x234] [New Thread 768.0xe24] [New Thread 768.0x27c] Breakpoint 1, main (argc=1, argv=0x28cc3c) at main.c:6 6 return pureftpd_start(argc, argv, NULL); Regards Marco -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple