X-Recipient: archive-cygwin@delorie.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:mime-version:references:in-reply-to:from:date
	:message-id:subject:to:content-type:content-transfer-encoding;
	 q=dns; s=default; b=CZLNCdhpdHN7MoM3O2nY5RS3E3guSHc5ybCB+U8NvLf
	8GdZdVxg+TCEfluWUXY//bLp+S6HQw7M5nr3RYKaxpNyHMMPgz6DyaTHvRG3LwmB
	XsOhdSZ8V4dwgMh54NEHRh67GM+uVoJdKhfgwwUSHRn0NveArdbjHb6YYNGAhWWo
	=
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:mime-version:references:in-reply-to:from:date
	:message-id:subject:to:content-type:content-transfer-encoding;
	 s=default; bh=cKsAE5EhMqwEMT6Q8Fe26cIdB6c=; b=W7Ov9I0m0LVJsnYFC
	jryumL4ZjtdLoKFgZUt+U3dlWvO+oWPdYVMyvDqHjeE1Jw4z6R/Tr2ESk0xRG1yG
	oLmwb7AgzGmONyNDVOM7qoElFzufuCM3r+dWT79hgcuRWWc+JfW0rxrNuRhSmx4G
	YWYvFob6QIjn8dnhYRqqZZozpM=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=precious, flask, kupfer, Kupfer
X-HELO: mail-it1-f181.google.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;        d=gmail.com; s=20161025;        h=mime-version:references:in-reply-to:from:date:message-id:subject:to         :content-transfer-encoding;        bh=PJtwljO0yqtBgAeg+qHPUa0jl1O78DOj4tFwklqQk/E=;        b=QbN0q6Jdxjz1/OPVj+2kSG8BOKu4vIk3MuBhlKwQhQ97mBo+OKU5biy0YtuWGZv42h         78j2yhqzBhElaq10t0B+pld0SLiK1RJ8I43U/N9nzeYv3hGc3p1OIVdU0IuNBBIQC3KM         O8j49UyN/LXhtMVoJhjQ83n3QFKpBIgji15h+dzJ5fv2qWTFY+Bw5I+AfH3B5ESNaXEp         c4axO5eh721eqtoZiKby4AlHnB+2LH+aVu7jtFTUOzXi8G3MER1bbTKv+WMmsbZS2Wjq         t4rfb73OdhyRfKUFIGuyXSGOd3ka2JaFxwzbMUiu7/mZeeXctCRZ6tVGka2Z2NH1zusv         MhsA==
MIME-Version: 1.0
References: <BYAPR07MB4632F57C3599D28D92711057DB9A0@BYAPR07MB4632.namprd07.prod.outlook.com>
In-Reply-To: <BYAPR07MB4632F57C3599D28D92711057DB9A0@BYAPR07MB4632.namprd07.prod.outlook.com>
From: "E. Madison Bray" <erik.m.bray@gmail.com>
Date: Fri, 25 Jan 2019 10:59:26 +0100
Message-ID: <CAOTD34YJ=GxtL=Mqj_Ws=1x+FzNA2pctAmhKJUs8ZcFHHTLLKg@mail.gmail.com>
Subject: Re: Flask app no longer working from cygwin when set to developer mode
To: cygwin@cygwin.com
Content-Type: text/plain; charset="UTF-8"
X-IsSubscribed: yes
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id x0P9xnef019834

On Thu, Jan 24, 2019 at 9:45 PM Maxim Kupfer wrote:
>
> This problem occurred immediately after attempting to run my python flask app in the backround (i.e $python app.py &)
>
> It gave me the following error:
> 2 [main] python3.6m 11340 child_info_fork::abort: unable to remap _lbfgsb.cpython-36m-x86_64-cygwin.dll to same address as parent (0x4930000) - try running rebaseall
>
> I've tried rebasing and restarting, but both didn't fix anything. The app works fine when it is not in developer mode, but then I don't get hot reloading. The app also works from my windows command line, so that is my temporary fix for now, but I would love to get my precious Cygwin setup up an running again.
>
> Thanks for the help!

Are you by any chance using a virtualenv or something like that?  It
looks like your app is using some compiled extension modules. I'm not
sure exactly where _lbfgsb.*.dll comes from--possibly Numpy or Scipy?
It's never been entirely clear to me exactly how rebase searches for
files, but I think by default it might only take into account DLLs
installed by Cygwin packages.  So if you have some DLLs in a
virtualenv, for example, you have to manually include them.  I'll
typically do something like:

    $ find path/to/virtualenv -type f -name '*.dll' -print > dlls-to-rebase.txt
    $ rebase -O -T dlls-to-rebase.txt

--
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


