Web lists-archives.com

Re: Segmentation fault with binutils 2.28.1




n 04/10/2017 03:28, Steven Penny wrote:
On Tue, 3 Oct 2017 14:37:04, Marco Atzeri wrote:
you wrote nothing at all. So it is difficult to understand what is your exact
issue

I wrote it 4 times:

- http://cygwin.com/ml/cygwin/2017-09/msg00229.html
- http://cygwin.com/ml/cygwin/2017-09/msg00289.html
- http://cygwin.com/ml/cygwin/2017-10/msg00021.html
- http://github.com/Martchus/tageditor/issues/23#issuecomment-331757730

Here though, let me write it 5 now:

    $ cat z.cpp
    #include <iostream>
    main() {
      std::cout << "cout test\n";
    }

    $ x86_64-w64-mingw32-g++ -static -o z z.cpp

    $ ./z
    Segmentation fault

as in the past you blamed the compiler.

Yes, I discovered new information, so I modified the email subject to reflect
that. Would you rather me continue to blame the complier, or try to help
diagnose the problem?

Error report should be clear and complete;

Example above is MCVE http://stackoverflow.com/help/mcve

Steve,
This is what I mean:

$ cat z.cpp
   #include <iostream>
   main() {
     std::cout << "cout test\n";
   }

   $ x86_64-w64-mingw32-g++ -static -o z z.cpp

   $ ./z
   Segmentation fault



mingw64-x86_64-binutils                 2.25.0.1.23f238d-1
mingw64-x86_64-gcc-core                 5.4.0-3
mingw64-x86_64-gcc-g++                  5.4.0-3
- Works

mingw64-x86_64-binutils                 2.25.0.1.23f238d-1
mingw64-x86_64-gcc-core                 6.3.0-1
mingw64-x86_64-gcc-g++                  6.3.0-1
- Works

mingw64-x86_64-binutils                 2.28.1.12c1f20d-1
mingw64-x86_64-gcc-core                 6.3.0-1
mingw64-x86_64-gcc-g++                  6.3.0-1
- Segmentation fault

mingw64-x86_64-binutils                 2.29.1-1
mingw64-x86_64-gcc-core                 6.3.0-1
mingw64-x86_64-gcc-g++                  6.3.0-1
- Works


Have you built it ?

No

That is the problem.
It costed me one hour of my time, you could have done by yourself.


Jon,
let me know if you need help on updating binutils.

Regards
Marco


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