X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=GD0M/XIn4SL1UnCF cdiPYb9XJNzVPs14gZZhvmzRlgkGhGf6RpBTKSb0y8H7O4ZbkmqRZRoTarUbJXKU ecngcFvGLsi2fr8bu9LC+ZiHpDGTIGavfNck43aXqj7CgImjz/Zh4cUTiqBmXJl5 bJxL3qELaB+12xtxbACTrZS6Dn4= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=6gOuZe61CydyyrtYGX86h3 dsjXs=; b=o8h4TP/ZJeCd1deq+B0j2pvHjFIl/4rVW4MhGfVpZikTr402P0n3m1 e5rBtOqvZVTls/nB4QgcCXqQ1XfwgkJnI0csX9cA8DVq1pr3JtbyLvf4nBBe81XL k1kOBYuglpMPjIXGhZSsCZ1CJOvPJzNnism6aMfaQZiGm2g83TPfg= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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 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) Subject: Re: fork issue on 32bit To: "cygwin AT cygwin DOT com" References: From: Marco Atzeri Message-ID: <78f5e3bc-ab17-ac19-9916-138e279f414c@gmail.com> Date: Sat, 6 May 2017 11:50:09 +0200 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 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