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 <cygwin@cygwin.com>
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
--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

Reply via email to