From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 76786 invoked by alias); 27 Sep 2017 23:16:47 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 76769 invoked by uid 89); 27 Sep 2017 23:16:47 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=H*r:2001, sk:mingw64, z.cpp, H*M:75ae X-HELO: mail-pf0-f181.google.com Received: from mail-pf0-f181.google.com (HELO mail-pf0-f181.google.com) (209.85.192.181) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 27 Sep 2017 23:16:46 +0000 Received: by mail-pf0-f181.google.com with SMTP id r71so8002083pfe.12 for ; Wed, 27 Sep 2017 16:16:45 -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; bh=0nwzicjm5Ve/1UBdKeMp0W18IBUnEHVxHTXX2SCW/UE=; b=SdLPq2VLn7aGnZBrLV3sd2vf6eDsJAVEzDiyQZM7b5pD+oz0xs1Z9JAbFBhUwjg2z4 RZHrJwejHKW7ZWuu9vLD0d5ZO23MQhteYRIpWRJDCV3GdPLuWs+1mI1Ch5/NDK1zNeKX 0hfpIoFb1zgGb63VkPN5EsuOMrrKse47/fP9Of4N239ssu/xtDnPzWDDKhKcjU3FAuqD K8himZM+WWhJoCa+V4KHrzKeoYXcokw62wfo2+xpkaNgoDMOKC4q3dU1wjnOtUeYpWEM 0iF1w9XGFpUi3zH5XqNc9O4ITa8UswpU5Nlb5ssRryd6yHReY41ik9dnAKP4B8TYlBTq v4rA== X-Gm-Message-State: AHPjjUhW3MhnaNXQK7M7s9Hbi6hljw6HlunoGJP2f/Mg7VNb5vd7/tRs DillWIkqUbij9K2FeH7xfFQAbg== X-Google-Smtp-Source: AOwi7QCv48cfHyVooamHIcCvXg77LJAiTZu8NZXE3KttbjJ+11RYJaDbpEvwCgfAPkdIgoHV+q4YKg== X-Received: by 10.99.100.131 with SMTP id y125mr2567960pgb.161.1506554203834; Wed, 27 Sep 2017 16:16:43 -0700 (PDT) Received: from ?IPv6:2001:e68:4074:dc52:f64d:30ff:fe63:5a5a? ([2001:e68:4074:dc52:f64d:30ff:fe63:5a5a]) by smtp.gmail.com with ESMTPSA id h10sm79501pgn.73.2017.09.27.16.16.41 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 27 Sep 2017 16:16:42 -0700 (PDT) Subject: Re: [ANNOUNCEMENT] [Updated] mingw64-{i686,x86_64} binutils, gcc (Test) To: cygwin@cygwin.com References: <59c94bf0.b5329d0a.b3138.234e@mx.google.com> From: JonY <10walls@gmail.com> Message-ID: Date: Wed, 27 Sep 2017 23:43:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <59c94bf0.b5329d0a.b3138.234e@mx.google.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="inx0e0s5DhqKG3onPUn5n7AKx8qpdf4Mm" X-IsSubscribed: yes X-SW-Source: 2017-09/txt/msg00291.txt.bz2 --inx0e0s5DhqKG3onPUn5n7AKx8qpdf4Mm Content-Type: multipart/mixed; boundary="b5IiwrUwmlS7QK8DWOtBm6vMRkabLUDH6"; protected-headers="v1" From: JonY <10walls@gmail.com> To: cygwin@cygwin.com Message-ID: Subject: Re: [ANNOUNCEMENT] [Updated] mingw64-{i686,x86_64} binutils, gcc (Test) References: <59c94bf0.b5329d0a.b3138.234e@mx.google.com> In-Reply-To: <59c94bf0.b5329d0a.b3138.234e@mx.google.com> --b5IiwrUwmlS7QK8DWOtBm6vMRkabLUDH6 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable Content-length: 2057 On 09/25/2017 06:33 PM, Steven Penny wrote: > On Mon, 25 Sep 2017 14:17:28, JonY wrote: >> You can actually use Cygwin gdb to debug and see what went wrong, >> assuming the debug symbols are around. >> >> Sorry if I'm not much help, kind of busy these days. >=20 > New command: >=20 > x86_64-w64-mingw32-g++ -g -static -o z z.cpp >=20 > Output: >=20 > (gdb) run > Starting program: /tmp/z [New Thread 5956.0xfe4] > Program received signal SIGSEGV, Segmentation fault. > std::ostream::sentry::sentry (this=3Dthis@entry=3D0x22fd90, __os=3D...) > =C2=A0at /cygdrive/i/szsz/tmpp/cygwin64/mingw64-x86_64/ > =C2=A0mingw64-x86_64-gcc-6.3.0-1.x86_64/src/gcc-6.3.0/libstdc++-v3/includ= e/bits/ > =C2=A0ostream.tcc:51 > 51 /cygdrive/i/szsz/tmpp/cygwin64/mingw64-x86_64/ > =C2=A0mingw64-x86_64-gcc-6.3.0-1.x86_64/src/gcc-6.3.0/libstdc++-v3/includ= e/bits/ > =C2=A0ostream.tcc: No such file or directory. > (gdb) backtrace > #0=C2=A0 std::ostream::sentry::sentry (this=3Dthis@entry=3D0x22fd90, __os= =3D...) > =C2=A0=C2=A0 at /cygdrive/i/szsz/tmpp/cygwin64/mingw64-x86_64/ > =C2=A0=C2=A0 > mingw64-x86_64-gcc-6.3.0-1.x86_64/src/gcc-6.3.0/libstdc++-v3/include/bits/ > =C2=A0=C2=A0 ostream.tcc:51 > #1=C2=A0 0x000000000049ece9 in std::__ostream_insert std::char_traits > > =C2=A0(__out=3D..., =C2=A0__s=3D__s@entry=3D0x4ab031 "cout > test\n", __n=3D10) > =C2=A0at /cygdrive/i/szsz/tmpp/cygwin64/mingw64-x86_64/ > =C2=A0mingw64-x86_64-gcc-6.3.0-1.x86_64/src/gcc-6.3.0/libstdc++-v3/includ= e/bits/ > =C2=A0ostream_insert.h:82 > #2=C2=A0 0x00000000004a3547 in std::operator<< > ( > =C2=A0__out=3D..., __s=3D0x4ab031 "cout test= \n") > =C2=A0at /cygdrive/i/szsz/tmpp/cygwin64/mingw64-x86_64/ > =C2=A0mingw64-x86_64-gcc-6.3.0-1.x86_64/src/gcc-6.3.0/libstdc++-v3/includ= e/std/ > =C2=A0ostream:561 > #3=C2=A0 0x00000000004015e0 in main () at z.cpp:3 >=20 Looks like the ostream is not properly initialized, all the C++ constructors involved makes it even more messy to debug. --b5IiwrUwmlS7QK8DWOtBm6vMRkabLUDH6-- --inx0e0s5DhqKG3onPUn5n7AKx8qpdf4Mm Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" Content-length: 858 -----BEGIN PGP SIGNATURE----- iQJGBAEBCAAwFiEE5QrdnbBX9Ppk4bbPcTtf4pwUXUUFAlnMMSMSHDEwd2FsbHNA Z21haWwuY29tAAoJEHE7X+KcFF1Fn8QP/3ZYlCAxGdvVcyOsuGMeBzNRt02iLxVE gASFBIQYSWwqVU6sZfHZuoVcrU7fsEbD47FBtHaVpDg0pTmZp4uQCkA9ItcTEYBb b2/yu56SsRDBokt8M51SZuSdDsDSpaSuSP1/opWxC/bH9GqlJ2qkZGikUjuVrtyc KQgsuXjjamDn7lVgoawNC5NODbBZUVJSyXVU5BCuU7UU0GcACWjl4WbbxVK75mEE mB7mcfnM9eumRtatFFmGIxAGjY4hovf2cnWkkAGjEjI+9z7bdh6+A8KtWgWig75C 0iSJhItWDu6V5PohxwlsbCyi/3r/X/igi9b8CCQ5Mif33bAN6/pEAMD5Frk05zcu i5C4gSb7wJynoIO/EGlpKXJ0yA/uo5kjexjvPQDmMmW0hA0/VGgfIaH4PkklIrVu N4qWrGIVY8QaEKr117v5ISTnI52HX/BT6r+/d5Z6sMthi8Oxo63YTtqiyVrOv7Xc mPcQe4jBi435/I8+nnss7UiMnBrAzyDMmnxfE9u4pbX1NXWU2+yVE/ZTWRm2t0n0 0QVYkgXlLNwSFZvTk7k1afTp973HKnmbaJZYa1iyKxXT1eHsrl9MvFmar4XS0iZZ oL4YBrpfeQkbaUlE1Mn/IJcuzQp+sJAMvY8to+VqFcCdH5wtcZBzUWDIXdDr++fP ZHarN29fERte =weDk -----END PGP SIGNATURE----- --inx0e0s5DhqKG3onPUn5n7AKx8qpdf4Mm--