From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 38327 invoked by alias); 25 Jan 2019 09:59:39 -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 38034 invoked by uid 89); 25 Jan 2019 09:59:38 -0000 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 Received: from mail-it1-f181.google.com (HELO mail-it1-f181.google.com) (209.85.166.181) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 25 Jan 2019 09:59:37 +0000 Received: by mail-it1-f181.google.com with SMTP id p197so8927656itp.0 for ; Fri, 25 Jan 2019 01:59:37 -0800 (PST) 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: In-Reply-To: From: "E. Madison Bray" Date: Fri, 25 Jan 2019 09:59:00 -0000 Message-ID: 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" Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2019-01/txt/msg00222.txt.bz2 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 relo= ading. The app also works from my windows command line, so that is my tempo= rary fix for now, but I would love to get my precious Cygwin setup up an ru= nning 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