delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/06/16/22:42:01

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.6 required=5.0 tests=AWL,BAYES_40,DKIM_SIGNED,DKIM_VALID,RCVD_IN_DNSWL_LOW,TW_CX
X-Spam-Check-By: sourceware.org
Message-ID: <4C198B44.6040803@cwilson.fastmail.fm>
Date: Wed, 16 Jun 2010 22:41:08 -0400
From: Charles Wilson <cygwin AT cwilson DOT fastmail DOT fm>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: C++ app segfaults in libstdc++
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

--------------000308000404010508060407
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

This problem came up on the libtool list, while trying to track down a
regression test failure on with cygwin-libtool-2.2.10.  It's actually
not a "regression" per se, because the same test failed also on
cygwin-libtool-2.2.7a.  However, it really shouldn't fail, AFAICT.

Anyway, the STC is attached, but the backtrace is:

(gdb) run
Starting program: /c/Users/cwilson/lt/main.exe
[New Thread 10492.0x21ec]
[New Thread 10492.0x2504]
exceptions_in_module
caught inside module: exception in module
caught: exception from module

Program received signal SIGSEGV, Segmentation fault.
0x67282348 in ?? ()
(gdb) bt
#0  0x67282348 in ?? ()
#1  0x6c486825 in cygstdc++-6!__cxa_demangle () from
/usr/bin/cygstdc++-6.dll
#2  0x67f0581d in cyggcc_s-1!_Unwind_DeleteException ()
   from /usr/bin/cyggcc_s-1.dll
#3  0x6c4e89d0 in cygstdc++-6!__cxa_end_catch () from
/usr/bin/cygstdc++-6.dll
#4  0x004013b6 in _fu5___ZSt4cerr () at main.cpp:41
#5  0x004013f9 in main () at main.cpp:55


So, something appears to be dying where it shouldn't really, because I
don't think there's anything wrong with this code.

CXX=g++-4
CXXFLAGS="-O0 -g"
LDFLAGS=
$CXX $CXXFLAGS -c main.cpp -o main.o
$CXX $CXXFLAGS -c module.cpp -o module.o
$CXX $CXXFLAGS $LDFLAGS -shared module.o -o module.dll
$CXX $CXXFLAGS $LDFLAGS -o main main.o -Wl,--export-all-symbols

PATH="`pwd`:$PATH"
main

Any ideas?

--
Chuck

--------------000308000404010508060407
Content-Type: application/octet-stream;
 name="libtool-segfault-stc.tar.bz2"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
 filename="libtool-segfault-stc.tar.bz2"

QlpoOTFBWSZTWR+3DOEAA0b/ntyQAgBY9/+fPI2WNP/n3+8AIAAQAAECAAAI
UAPeakqWmgABqRqaGgaGRpoDQDQaaMg0AeSAYgSgQgjImEgekPUwgeoYI9Qw
1D1DTQw4aaZGIwmmAhgE0wjBMTIaZGhoDhppkYjCaYCGATTCMExMhpkaGgCp
IkDUYptT0aGlPSbQmNTRoDJpoaGRmibU9Z+71beOc/B2/yVaoitAkb+jfbZY
XmesOm6zZwGcZ4KSSktKV2O/SuS1qt8L1ffYvZQwzDOaWcZXVXcW9VcWRIRz
gEhVdUpBMmMiYmMif2VIjPETGNzxJ3/2Wj1sP9e5jFINsFJXKT2JG3ylEjVY
TLVrtt+zm4kwFgoQIyGdCpEsUWwxfzKYz8lZkSjYByemmXFhWSLGG5sxB7l+
Nmxuxy41kzqOFTQzNMXk7FLMyj1XN5RzPRaK59Lj0ZJPOpVOh86pUwi8idFJ
GnSLQ0G4eCrQSRGUkLhFIFaezxTkMotrCk3vDMXmNFU0GWdQnden17CYEoo6
/HKOtahrrRkPWGugVBOoHAohx0jU1ddKghrFWJIzrQHdCYO/JZVOtCJO8xgt
RneHCK7zEZ0yNgC5PATfu835uFSqwlqmqmFlr6HlDETrVPH5BitAqu/BzpCQ
CiBFkoL2Bh1oBJAGBhyAPMqVyA41kWJ9LiLp55yvg0OY6j3rPtUYuxTQeJoO
w+KKVMSz3uV0skPImVg9DU2w4cDQ2nAmyVgmsuQIh0E577QsTitaFWaIYy7d
4RnRFHZiamCos1LXV6VT25cxZyQzKTJMDnTMjM+VY1VJwtzW4smG5tNbbWSc
Rr4JfCbU+SZjkcm1U+GuXew3Q1NQ5U5ebuTVM5Vq658Ic6YOSVXDDldLIztO
k1tzapSlScssdvs7e3wmSZ2Yszl4e1jwtnxpN1Tqpvinf5lmW9UtfObXe12F
rrL6rvmll9eCxNRSWlUUlTwonKljP0mSGY8U6DeyymRaHhcmhxbeq1W4Hed2
GRZxGaVpVOBLJy5X/P4vemCamLjRs0TywwibGZgbXjlJrfM/Iw3GxilzSZTW
4tjZHG3rLNLrPqamo09xW2izAvYYKJT62Mmqt0PAZUl3G2otyMpwQxeCRRzT
IjtOdnm2NsPM6XSahNbuODQmxzdJeSl1L3RZS6Sf+LuSKcKEgP24Zwg=


--------------000308000404010508060407
Content-Type: text/plain; charset=us-ascii

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019