From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) by sourceware.org (Postfix) with ESMTPS id 4D8063857C4D for ; Thu, 23 Jul 2020 04:48:25 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 4D8063857C4D Received: by mail-ej1-x634.google.com with SMTP id rk21so4963236ejb.2 for ; Wed, 22 Jul 2020 21:48:25 -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-language :content-transfer-encoding; bh=JGA1dMnk/yihoetzb57kZq1xvSYNB/Ajkl8L8hH3okc=; b=LZyS51/wBETa8k7MuLrryNepabjKkqEhvBiFLX/88z+9qtb17nXfWh/I3FAirHqX70 PGgZO89Poiofbv8T/rxzzKoSMendp8gB6/B3PZDg7TPwWfQdS8JJ39QxMox9ZCISITP8 IHQAmLWclD5uidEm/hi39nTlI1RfYs81llzkAAiccVT4dDUTwAKobaZPfYquFPed+qj1 yFXz1InKZh/8gwb0dyTBDPNlkeGeOenv3WhBMvjLxLxaJj/6vOLLCTm8XjBTGx0lo6Eb r7kQjrWo9PKc4MfHlejk+K6bbzpTMabge6D9GnHC280a3BQsU6mdHvxZ7j28no4VbjBh Eg3A== X-Gm-Message-State: AOAM5327ogmCJQlseZO13NcWQjIamhuNUXgFnL+77c8dyUa4VcZQfSwQ TMoJf6ThC6XgEXr2QxunUGTUdTIIc4o= X-Google-Smtp-Source: ABdhPJwbDJOJRe6CrIKXvMn8O/td+TCc0a2QJpszyfii/wPkLF65Y9UOBkQ0inHazzIdDumw0ZXmrA== X-Received: by 2002:a17:906:7709:: with SMTP id q9mr2618136ejm.123.1595479704063; Wed, 22 Jul 2020 21:48:24 -0700 (PDT) Received: from ?IPv6:2003:cc:9f05:858:15c:8687:f066:8493? (p200300cc9f050858015c8687f0668493.dip0.t-ipconnect.de. [2003:cc:9f05:858:15c:8687:f066:8493]) by smtp.gmail.com with ESMTPSA id x9sm1205199ejw.28.2020.07.22.21.48.23 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 22 Jul 2020 21:48:23 -0700 (PDT) Subject: Re: graph (plotutils) seg-faulting To: cygwin@cygwin.com References: <20200718141223.0736bb2c@quarternote> <20200719085555.334eca63@quarternote> <41425d86-4980-699c-fbce-17d10355f8ff@gmail.com> <20200719112321.4d66f748@quarternote> <20200720201247.31248857@quarternote> <45531187-c62c-f08b-a3a5-c6b8f0b7a78c@SystematicSw.ab.ca> <3e1ba674-65b0-7efa-88a2-c256f6d819fb@gmail.com> From: Marco Atzeri Message-ID: <45480e91-cbce-cc9f-dd55-4cd2c932b839@gmail.com> Date: Thu, 23 Jul 2020 06:48:21 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: it Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.2 required=5.0 tests=BAYES_00, BODY_8BITS, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: cygwin@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Jul 2020 04:48:27 -0000 On 23.07.2020 00:12, Ken Brown via Cygwin wrote: > On 7/22/2020 6:07 PM, Tony Richardson via Cygwin wrote: >> On Wed, Jul 22, 2020 at 3:48 PM Marco Atzeri via Cygwin >> >> wrote: >> >>> On 22.07.2020 14:06, Ken Brown via Cygwin wrote: >>>> On 7/22/2020 1:36 AM, Marco Atzeri via Cygwin wrote: >>>>> On 22.07.2020 02:10, Tony Richardson via Cygwin wrote: >>>>>> I have attached both the cygcheck and strace output. >>>>>> >>>>>> Tony Richardson >>>>>> >>>>> >>>>> something is clearly interfering with your Cygwin installation >>>>> >>>>> --- Process 11136 loaded C:\Applications\cygwin64\bin\cygwin1.dll at >>>>> 0000000000c80000 >>>>> --- Process 11136 unloaded DLL at 0000000000c80000 >>>> >>>> I can reproduce the problem on my system: >>>> >>>> $ strace graph >>> ... >>> >>>> Segmentation fault >>>> >>>> >>>> I thought that simply rebuilding plotutils might fix the problem, but >>>> there were a lot of compilation warnings, and the build failed. >>>> Some of >>>> the warnings look serious to me, but I have no idea if they could cause >>>> Windows to try to load DLLs at strange addresses. >>>> >>>> Ken >>>> -- >>> >>> Hi Ken, >>> I rebuilt and uploaded a test version 2.6-6 only for 64bit >>> try to see if something change >>> >>> Regards >>> Marco >>> >> >> I tried the test version, unfortunately it still segfaults for me. no surprise. It was unlikely to work > > Same for me.  I'm also getting strange output from ldd, but maybe that's > just another manifestation of the same problem: > > $ ldd /usr/bin/graph >         ntdll.dll => /c/WINDOWS/SYSTEM32/ntdll.dll (0x7ff82a4c0000) >         KERNEL32.DLL => /c/WINDOWS/System32/KERNEL32.DLL (0x7ff8289c0000) >         KERNELBASE.dll => /c/WINDOWS/System32/KERNELBASE.dll > (0x7ff8280c0000) >         cygplot-2.dll => /usr/bin/cygplot-2.dll (0x9f0000) >         cygplot-2.dll => /usr/bin/cygplot-2.dll (0xbf0000) >         cygplot-2.dll => /usr/bin/cygplot-2.dll (0xbf0000) >         cygwin1.dll => /usr/bin/cygwin1.dll (0xd20000) > [...] >         cygintl-8.dll => /usr/bin/cygintl-8.dll (0x1760000) >         cygintl-8.dll => /usr/bin/cygintl-8.dll (0x1760000) >         cygiconv-2.dll => /usr/bin/cygiconv-2.dll (0x1780000) >         cygiconv-2.dll => /usr/bin/cygiconv-2.dll (0x1780000) > > Ken > -- can you check with cat /proc/self/maps Usually I see locale.nls loaded verylow 00010000-00020000 rw-s 00000000 0000:0000 0 [win heap 1 default shared] 00030000-0004D000 r--s 00000000 0000:0000 0 00050000-00054000 r--s 00000000 0000:0000 0 00060000-00061000 r--s 00000000 0000:0000 0 00070000-00072000 rw-p 00000000 0000:0000 0 00080000-00149000 r--s 00000000 98EE:C713 281474977436242 /cygdrive/c/Windows/System32/locale.nls 00150000-00152000 rw-p 00000000 0000:0000 0 [win heap 0 default grow] 00152000-00182000 ===p 00002000 0000:0000 0 [win heap 0 default grow] the program itself 100400000-100401000 r--p 00000000 D603:FB6E 281474976713960 /usr/bin/cat.exe 100401000-100406000 r-xp 00001000 D603:FB6E 281474976713960 /usr/bin/cat.exe 100406000-100407000 rw-p 00006000 D603:FB6E 281474976713960 /usr/bin/cat.exe 100407000-10040C000 r--p 00007000 D603:FB6E 281474976713960 /usr/bin/cat.exe 10040C000-10040F000 rw-p 0000C000 D603:FB6E 281474976713960 /usr/bin/cat.exe 10040F000-100410000 r--p 0000F000 D603:FB6E 281474976713960 /usr/bin/cat.exe 180010000-180020000 rw-s 00000000 0000:0000 0 [procinfo] 180020000-180029000 rw-s 00000000 0000:0000 0 [cygwin-user-shared] 180030000-18003C000 rw-s 00000000 0000:0000 0 [cygwin-shared] loading area for cygwin DLLs 180040000-180041000 r--p 00000000 D603:FB6E 1688849860266440 /usr/bin/cygwin1.dll 180041000-180229000 r-xp 00001000 D603:FB6E 1688849860266440 /usr/bin/cygwin1.dll 180229000-18022D000 rwxp 001E9000 D603:FB6E 1688849860266440 /usr/bin/cygwin1.dll 18022D000-180266000 rw-p 001ED000 D603:FB6E 1688849860266440 /usr/bin/cygwin1.dll 180266000-1802EA000 r--p 00226000 D603:FB6E 1688849860266440 /usr/bin/cygwin1.dll 1802EA000-180322000 rw-p 002AA000 D603:FB6E 1688849860266440 /usr/bin/cygwin1.dll 180322000-180331000 r--p 002E2000 D603:FB6E 1688849860266440 /usr/bin/cygwin1.dll 180331000-180342000 rw-p 002F1000 D603:FB6E 1688849860266440 /usr/bin/cygwin1.dll 180342000-180343000 r--p 00302000 D603:FB6E 1688849860266440 /usr/bin/cygwin1.dll 180343000-180650000 rw-p 00303000 D603:FB6E 1688849860266440 /usr/bin/cygwin1.dll 3CC3A0000-3CC3A1000 r--p 00000000 D603:FB6E 281474976713233 /usr/bin/cygintl-8.dll 3CC3A1000-3CC3A8000 r-xp 00001000 D603:FB6E 281474976713233 /usr/bin/cygintl-8.dll 3CC3A8000-3CC3A9000 rw-p 00008000 D603:FB6E 281474976713233 /usr/bin/cygintl-8.dll 3CC3A9000-3CC3AE000 r--p 00009000 D603:FB6E 281474976713233 /usr/bin/cygintl-8.dll 3CC3AE000-3CC3AF000 rw-p 0000E000 D603:FB6E 281474976713233 /usr/bin/cygintl-8.dll 3CC3AF000-3CC3B0000 r--p 0000F000 D603:FB6E 281474976713233 /usr/bin/cygintl-8.dll 3CC3B0000-3CC3B2000 rw-p 00010000 D603:FB6E 281474976713233 /usr/bin/cygintl-8.dll 3CC3B2000-3CC3B4000 r--p 00012000 D603:FB6E 281474976713233 /usr/bin/cygintl-8.dll 3D9690000-3D9691000 r--p 00000000 D603:FB6E 281474976713163 /usr/bin/cygiconv-2.dll 3D9691000-3D96A9000 r-xp 00001000 D603:FB6E 281474976713163 /usr/bin/cygiconv-2.dll 3D96A9000-3D96AA000 rw-p 00019000 D603:FB6E 281474976713163 /usr/bin/cygiconv-2.dll 3D96AA000-3D978F000 r--p 0001A000 D603:FB6E 281474976713163 /usr/bin/cygiconv-2.dll 3D978F000-3D9790000 rw-p 000FF000 D603:FB6E 281474976713163 /usr/bin/cygiconv-2.dll 3D9790000-3D9791000 r--p 00100000 D603:FB6E 281474976713163 /usr/bin/cygiconv-2.dll 3D9791000-3D9793000 rw-p 00101000 D603:FB6E 281474976713163 /usr/bin/cygiconv-2.dll 3D9793000-3D9795000 r--p 00103000 D603:FB6E 281474976713163 /usr/bin/cygiconv-2.dll 800000000-800080000 rw-p 00000000 0000:0000 0 [heap] 800080000-820000000 ===p 00080000 0000:0000 0 [heap] and over the Windows DLL 7FF9C0880000-7FF9C0881000 r--p 00000000 98EE:C713 281474977436944 /cygdrive/c/Windows/System32/cryptbase.dll 7FF9C0881000-7FF9C0884000 r-xp 00001000 98EE:C713 281474977436944 /cygdrive/c/Windows/System32/cryptbase.dll 7FF9C0884000-7FF9C0887000 r--p 00004000 98EE:C713 281474977436944 /cygdrive/c/Windows/System32/cryptbase.dll 7FF9C0887000-7FF9C0888000 rw-p 00007000 98EE:C713 281474977436944 /cygdrive/c/Windows/System32/cryptbase.dll Also check that /etc/rebase.db.x86_64 esists FYI, all my dlls are loaded between $ rebase -si | awk '{print $3, $1}'| sort | head 0x000394760000 /usr/lib/qt4/plugins/designer/cygqdeclarativeview.dll 0x000394780000 /usr/lib/qt4/plugins/codecs/cygqtwcodecs.dll 0x000396730000 /usr/lib/python3.6/site-packages/dbus/mainloop/pyqt5.dll 0x000398df0000 /usr/lib/python3.6/site-packages/PIL/_webp.cpython-36m-x86_64-cygwin.dll 0x000399a60000 /usr/libexec/coreutils/libstdbuf.so 0x000399a70000 /usr/lib/zsh/5.8/zsh/zutil.dll 0x000399a80000 /usr/lib/zsh/5.8/zsh/zselect.dll 0x000399a90000 /usr/lib/zsh/5.8/zsh/zpty.dll 0x000399aa0000 /usr/lib/zsh/5.8/zsh/zprof.dll 0x000399ab0000 /usr/lib/zsh/5.8/zsh/zleparameter.dll $ rebase -si | awk '{print $3, $1}'| sort | tail 0x0003ffd50000 /usr/bin/cygFS-6.dll 0x0003ffd70000 /usr/bin/cygFLAC-8.dll 0x0003ffdf0000 /usr/bin/cygFLAC++-6.dll 0x0003ffe10000 /usr/bin/cygEMF-1.dll 0x0003ffe40000 /usr/bin/cygEGL-1.dll 0x0003ffe70000 /usr/bin/cyg4ti2util-0.dll 0x0003ffe90000 /usr/bin/cyg4ti2int64-0.dll 0x0003fff00000 /usr/bin/cyg4ti2int32-0.dll 0x0003fff70000 /usr/bin/cyg4ti2gmp-0.dll 0x0003ffff0000 /usr/bin/cyg4ti2common-0.dll with the obvious exception of cygwin1.dll at 180040000