Web lists-archives.com

Re: [Mingw-users] Pending new mingwrt and w32api releases




-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 07/03/17 09:22, Keith Marshall wrote:
> DTRT, but *with* libmingwex.dll.a (and/or libmingwex-0.dll) installed:
> 
>   ...
> 
>   $ mingw32-ldd crashdemo.exe
>   crashdemo.exe
>    +- ADVAPI32.DLL
>    +- KERNEL32.dll
>    +- libmingwex-0.dll
>    +- msvcrt.dll
>    +- msvcrt.dll
>    +- SHELL32.DLL
> 
>   $ ln ../mingwrt/libmingwex-0.dll .

After the latter command, if I rerun the former I see:

  $ mingw32-ldd crashdemo.exe 
  crashdemo.exe
   +- ADVAPI32.DLL
   +- KERNEL32.dll
   +- libmingwex-0.dll
   |   +- msvcrt.dll
   |   +- msvcrt.dll
   |   +- ADVAPI32.DLL
   |   +- KERNEL32.dll
   |   +- libgcc_s_dw2-1.dll
   +- msvcrt.dll
   +- msvcrt.dll
   +- SHELL32.DLL

Note the (likely unnecessary) dependency on libgcc_s_dw2-1.dll, which 
we already know to be critically bug ridden w.r.t. termination; cf. 
https://sourceforge.net/p/mingw/mailman/mingw-users/thread/514C8040.7000207%40gmail.com/#msg30633081

If I rebuild libmingwex-0.dll, adding -static-libgcc to eliminate the 
dependency on the libgcc_s_dw2-1.dll turd, and then rebuild your test 
case, its dependencies become:

  $ $ mingw32-ldd crashdemo.exe 
  crashdemo.exe
   +- ADVAPI32.DLL
   +- KERNEL32.dll
   +- libmingwex-0.dll
   |   +- msvcrt.dll
   |   +- msvcrt.dll
   |   +- ADVAPI32.DLL
   |   +- KERNEL32.dll
   +- msvcrt.dll
   +- msvcrt.dll
   +- SHELL32.DLL

Then, when I rebuild and rerun your test case, instead of:

>   $ ./crashdemo.exe
>   abnormal program termination

I now see normal behaviour restored:

  $ ./crashdemo.exe
  raised CRASHDEMO.ERR : crashdemo.adb:4

- -- 
Regards,
Keith.

Public key available from keys.gnupg.net
Key fingerprint: C19E C018 1547 DE50 E1D4 8F53 C0AD 36C6 347E 5A3F
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.20 (GNU/Linux)

iQIcBAEBAgAGBQJYvr3zAAoJEMCtNsY0flo/v5oQALw/rh/qycSHf+7jcU4BXxWW
7wfI709IMtegm//dOx+lyKl2xQ6wNlG4GG5rqUFZtc0EDRIeowYE4B9Cp5ET7RO3
4EQbLlNl262Y3k3ljUiY4kGpK6GJi6YfUXvlecLT6iYz/iY20fgjUGzrvQv7fX6C
tBIs88TAfrxvBROvcnepDbTiVlhmhJh2uu4y8VZIvuK87ryPkvUlHaHeJGnKJy9X
FdNBBQGHOt6pkneSz2/l+whgoPRSbSMN4q2kP+RkPKK/3otCWnQq66zwL81jsDsg
WN8xYArBh2OIYbzJa1oVtb2OJw5MFwi/ZBUdARP3+ewidvoRyg0H1rToLVEMn2Dd
q/e86JCr6NCPxzZr+6t/YNTjLZqPqQ0YDpu5iH0dgKJ7RZZ2emtmIiNlLrtw8dfg
WDoxszAudXr7b117mj2XgIvdb4IMwLwXUMFhkkBktGpBUnaYcW81FeBkKNAA9vQO
eW93MKnD3xDHXbJBzX4RgEvzM3FA0QsQvFvm8GVFIdm7j9FN64gn5q3BmP3CX21P
72c/I53AgPOKOUONddpm8wSawtPUYhSgb80GAczXVVXVtQh1xfnKlQAax1T4hywl
6e43DryG+8zUpdslvjbVB7++h1/AWTISs1x3fWQk2tgr9aBMbuTdKdgkrHW0QDuT
08k9DqdmRp9GsTmD5k7x
=2iPY
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
Announcing the Oxford Dictionaries API! The API offers world-renowned
dictionary content that is easy and intuitive to access. Sign up for an
account today to start using our lexical data to power your apps and
projects. Get started today and enter our developer competition.
http://sdm.link/oxford
_______________________________________________
MinGW-users mailing list
MinGW-users@xxxxxxxxxxxxxxxxxxxxx

This list observes the Etiquette found at 
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-request@xxxxxxxxxxxxxxxxxxxxx?subject=unsubscribe