Web lists-archives.com

Re: g++ std::map initializing raises segmentation fault.




I installed g++ 6.3.0-2 and still can reproduce the segfault :(.

Br,
Ivan

2017-07-07 17:09 GMT+03:00 Masamichi Hosoda <trueroad@xxxxxxxxxxx>:
>> On 07/07/2017 14:51, Marco Atzeri wrote:
>>> On 06/07/2017 14:26, Masamichi Hosoda wrote:
>>>> Hello,
>>>>
>>>> On Cygwin 2.8.1 x86_64, I've found that g++ std:map initializing
>>>> may raise segmentation fault.
>>>> The binary compiled with cygwin-devel-2.8.0-1
>>>> does not raise segmentation fault
>>>> even if on Cygwin 2.8.1 x86_64 environments.
>>>>
>>>
>>> I can not replicate.
>>>
>>
>> Wrong. I can replicate.
>>
>> One solution is to use the gcc-6.3.0-2 compiler in test
>>
>> https://www.cygwin.com/ml/cygwin-announce/2017-06/msg00079.html
>
> Thank you for your information.
>
> If I understand correctly, there is three workaround solutions.
>
> . Use g++ option `-std=gnu++11` instead of `-std=c++11`
>     TANNHAUSER Falk reported in
>     https://cygwin.com/ml/cygwin/2017-07/msg00089.html
>
>     I've tried this. It works fine.
>
> . Downgrade `cygwin-devel` to 2.8.0-1 instead of 2.8.1-1.
>     I reported in
>     https://cygwin.com/ml/cygwin/2017-07/msg00088.html
>
>     Of course, it works fine in my environment.
>
> . Use gcc-6.3.0-2 instead of gcc-5.4.0-1
>     You reported in
>     https://cygwin.com/ml/cygwin/2017-07/msg00109.html
>
>     I'd like to try this.
>
> Thanks
>
> --
> 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
>

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