[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lmi] wx_test: output strings truncated to one character
From: |
Greg Chicares |
Subject: |
Re: [lmi] wx_test: output strings truncated to one character |
Date: |
Wed, 10 Feb 2016 13:48:07 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.5.0 |
On 02/10/2016 01:08 PM, Vadim Zeitlin wrote:
> On Wed, 10 Feb 2016 12:57:05 +0000 Greg Chicares <address@hidden> wrote:
>
> GC> On 02/10/2016 12:09 PM, Greg Chicares wrote:
> GC> > On 02/10/2016 12:51 AM, Vadim Zeitlin wrote:
> GC> > [...]
> GC> >> If this happens during the application shutdown, it could well be the
> same
> GC> >> bug with using the already destroyed global objects that I've just
> fixed.
> GC> >> Otherwise I really have no idea :-( Could you please rebuild wxWidgets
> with
> GC> >> --enable-debug and just drop the debug DLL in place of the one
> currently
> GC> >> being used (and not containing the debug symbols)?
> GC>
> GC> [...failed with PCH...]
>
> I won't even try to look into this right now because I have too many other
> more urgent issues to address, but I'd just like to mention that I haven't
> seen neither 0 size PCH creation nor silent (could adding "-###" to gcc
> command line show more?) failure to build before.
Here's a problem that seems somewhat similar:
http://stackoverflow.com/questions/21008274/precompiled-headers-not-working-in-debug-build-with-qt-creator-qmake-mingw
| using PRECOMPILED HEADERS ... impossible to compile a single file of the
| project in Debug
...
| Using a PCH that is greater than 128 MB aborts the compilation without any
| message and returns code 1 (instead of 0 for succesful compilation).
Anyway, I had already tried '-v', which should be even better than '-###':
/opt/lmi/wx-scratch/wxWidgets-0b821adf903872b6d8b56630d2191c5b9c3362e5/gcc-491-ac28a959aabe36e26ea039ed78a51b54[1]$/MinGW_/bin/g++
-std=c++11 -v -c -o monodll_any.o -I./.pch/wxprec_monodll -D__WXMSW__
-DWXBUILDING -I../src/png -I../src/regex -I../src/expat/lib
-I../src/stc/scintilla/include -I../src/stc/scintilla/lexlib
-I../src/stc/scintilla/src -D__WX__ -DSCI_LEXER -DLINK_LEXERS -DwxUSE_BASE=1
-DWXMAKINGDLL -Wall -Wundef -Wunused-parameter -Wno-ctor-dtor-privacy
-Woverloaded-virtual
-D_FILE_OFFSET_BITS=64
-I/opt/lmi/wx-scratch/wxWidgets-0b821adf903872b6d8b56630d2191c5b9c3362e5/gcc-491-ac28a959aabe36e26ea039ed78a51b54/lib/wx/include/i686-w64-mingw32-msw-unicode-3.1
-I../include -DWX_PRECOMP -g -O0 ../src/common/any.cpp
Using built-in specs.
COLLECT_GCC=C:\opt\lmi\MinGW-4_9_1\bin\g++.exe
Target: i686-w64-mingw32
Configured with: ../../../src/gcc-4.9.1/configure --host=i686-w64-mingw32
--build=i686-w64-mingw32 --target=i686-w64-mingw32 --prefix=/mingw32
--with-sysroot=/c/mingw491/i686-491-win32-sjlj-rt_v3-rev3/mingw32
--with-gxx-include-dir=/mingw32/i686-w64-mingw32/include/c++ --enable-shared
--enable-static --enable-targets=all --enable-multilib
--enable-languages=ada,c,c++,fortran,objc,obj-c++,lto
--enable-libstdcxx-time=yes --enable-threads=win32 --enable-libgomp
--enable-libatomic --enable-lto
--enable-graphite --enable-checking=release --enable-fully-dynamic-string
--enable-version-specific-runtime-libs --enable-sjlj-exceptions
--disable-isl-version-check --disable-cloog-version-check
--disable-libstdcxx-pch --disable-libstdcxx-debug --enable-bootstrap
--disable-rpath --disable-win32-registry --disable-nls --disable-werror
--disable-symvers --with-gnu-as --with-gnu-ld --with-arch-32=i686
--with-arch-64=nocona --with-tune-32=generic --with-tune-64=core2
--with-libiconv
--with-system-zlib --with-gmp=/c/mingw491/prerequisites/i686-w64-mingw32-static
--with-mpfr=/c/mingw491/prerequisites/i686-w64-mingw32-static
--with-mpc=/c/mingw491/prerequisites/i686-w64-mingw32-static
--with-isl=/c/mingw491/prerequisites/i686-w64-mingw32-static
--with-cloog=/c/mingw491/prerequisites/i686-w64-mingw32-static
--enable-cloog-backend=isl --with-pkgversion='i686-win32-sjlj-rev3, Built by
MinGW-W64 project' --with-bugurl=http://sourceforge.net/projects/mingw-w64
CFLAGS='-O2 -pipe
-I/c/mingw491/i686-491-win32-sjlj-rt_v3-rev3/mingw32/opt/include
-I/c/mingw491/prerequisites/i686-zlib-static/include
-I/c/mingw491/prerequisites/i686-w64-mingw32-static/include' CXXFLAGS='-O2
-pipe -I/c/mingw491/i686-491-win32-sjlj-rt_v3-rev3/mingw32/opt/include
-I/c/mingw491/prerequisites/i686-zlib-static/include
-I/c/mingw491/prerequisites/i686-w64-mingw32-static/include' CPPFLAGS=
LDFLAGS='-pipe -L/c/mingw491/i686-491-win32-sjlj-rt_v3-rev3/mingw32/opt/lib
-L/c/mingw491/prerequisites/i686-zlib-static/lib
-L/c/mingw491/prerequisites/i686-w64-mingw32-static/lib
-Wl,--large-address-aware'
Thread model: win32
gcc version 4.9.1 (i686-win32-sjlj-rev3, Built by MinGW-W64 project)
COLLECT_GCC_OPTIONS='-std=c++11' '-v' '-c' '-o' 'monodll_any.o' '-I'
'./.pch/wxprec_monodll' '-D' '__WXMSW__' '-D' 'WXBUILDING' '-I' '../src/png'
'-I' '../src/regex' '-I' '../src/expat/lib' '-I' '../src/stc/scintilla/include'
'-I' '../src/stc/scintilla/lexlib' '-I' '../src/stc/scintilla/src' '-D'
'__WX__' '-D' 'SCI_LEXER' '-D' 'LINK_LEXERS' '-D' 'wxUSE_BASE=1' '-D'
'WXMAKINGDLL' '-Wall' '-Wundef' '-Wunused-parameter' '-Wno-ctor-dtor-privacy'
'-Woverloaded-virtual' '-D' '_FILE_OFFSET_BITS=64'
'-I'
'/opt/lmi/wx-scratch/wxWidgets-0b821adf903872b6d8b56630d2191c5b9c3362e5/gcc-491-ac28a959aabe36e26ea039ed78a51b54/lib/wx/include/i686-w64-mingw32-msw-unicode-3.1'
'-I' '../include' '-D' 'WX_PRECOMP' '-g' '-O0' '-shared-libgcc'
'-mtune=generic' '-march=i686'
C:/opt/lmi/MinGW-4_9_1/bin/../libexec/gcc/i686-w64-mingw32/4.9.1/cc1plus.exe
-quiet -v -I ./.pch/wxprec_monodll -I ../src/png -I ../src/regex -I
../src/expat/lib -I ../src/stc/scintilla/include -I ../src/stc/scintilla/lexlib
-I ../src/stc/scintilla/src -I
/opt/lmi/wx-scratch/wxWidgets-0b821adf903872b6d8b56630d2191c5b9c3362e5/gcc-491-ac28a959aabe36e26ea039ed78a51b54/lib/wx/include/i686-w64-mingw32-msw-unicode-3.1
-I ../include -iprefix
C:/opt/lmi/MinGW-4_9_1/bin/../lib/gcc/i686-w64-mingw32/4.9.1/ -U_REENTRANT -D
__WXMSW__ -D WXBUILDING -D __WX__ -D SCI_LEXER -D LINK_LEXERS -D wxUSE_BASE=1
-D WXMAKINGDLL -D _FILE_OFFSET_BITS=64 -D WX_PRECOMP ../src/common/any.cpp
-quiet -dumpbase any.cpp -mtune=generic -march=i686 -auxbase-strip
monodll_any.o -g -O0 -Wall -Wundef -Wunused-parameter -Wno-ctor-dtor-privacy
-Woverloaded-virtual -std=c++11 -version -o C:\cygwin-lmi\tmp\cclCMf0R.s
GNU C++ (i686-win32-sjlj-rev3, Built by MinGW-W64 project) version 4.9.1
(i686-w64-mingw32)
compiled by GNU C version 4.9.1, GMP version 6.0.0, MPFR version
3.1.2-p9, MPC version 1.0.2
warning: MPFR header version 3.1.2-p9 differs from library version 3.1.2-p10.
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
ignoring duplicate directory
"C:/opt/lmi/MinGW-4_9_1/lib/gcc/../../lib/gcc/i686-w64-mingw32/4.9.1/include"
ignoring nonexistent directory
"C:/mingw491/i686-491-win32-sjlj-rt_v3-rev3/mingw32C:/msys64/mingw32/lib/gcc/i686-w64-mingw32/4.9.1/../../../../include"
ignoring duplicate directory
"C:/opt/lmi/MinGW-4_9_1/lib/gcc/../../lib/gcc/i686-w64-mingw32/4.9.1/include-fixed"
ignoring duplicate directory
"C:/opt/lmi/MinGW-4_9_1/lib/gcc/../../lib/gcc/i686-w64-mingw32/4.9.1/../../../../i686-w64-mingw32/include"
ignoring nonexistent directory
"C:/mingw491/i686-491-win32-sjlj-rt_v3-rev3/mingw32/mingw/include"
#include "..." search starts here:
#include <...> search starts here:
./.pch/wxprec_monodll
../src/png
../src/regex
../src/expat/lib
../src/stc/scintilla/include
../src/stc/scintilla/lexlib
../src/stc/scintilla/src
/opt/lmi/wx-scratch/wxWidgets-0b821adf903872b6d8b56630d2191c5b9c3362e5/gcc-491-ac28a959aabe36e26ea039ed78a51b54/lib/wx/include/i686-w64-mingw32-msw-unicode-3.1
../include
C:/opt/lmi/MinGW-4_9_1/bin/../lib/gcc/i686-w64-mingw32/4.9.1/include
C:/opt/lmi/MinGW-4_9_1/bin/../lib/gcc/i686-w64-mingw32/4.9.1/include-fixed
C:/opt/lmi/MinGW-4_9_1/bin/../lib/gcc/i686-w64-mingw32/4.9.1/../../../../i686-w64-mingw32/include
C:/opt/lmi/MinGW-4_9_1/lib/gcc/../../i686-w64-mingw32/include/c++
C:/opt/lmi/MinGW-4_9_1/lib/gcc/../../i686-w64-mingw32/include/c++/i686-w64-mingw32
C:/opt/lmi/MinGW-4_9_1/lib/gcc/../../i686-w64-mingw32/include/c++/backward
End of search list.
GNU C++ (i686-win32-sjlj-rev3, Built by MinGW-W64 project) version 4.9.1
(i686-w64-mingw32)
compiled by GNU C version 4.9.1, GMP version 6.0.0, MPFR version
3.1.2-p9, MPC version 1.0.2
warning: MPFR header version 3.1.2-p9 differs from library version 3.1.2-p10.
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 51e896564d4141f2635842075c4bdab4
/opt/lmi/wx-scratch/wxWidgets-0b821adf903872b6d8b56630d2191c5b9c3362e5/gcc-491-ac28a959aabe36e26ea039ed78a51b54[1]$
> GC> + --disable-precomp-headers \
> GC> + --enable-debug \
[...]
> GC> GUI test runs to completion--no crash, but no wx "debug" diagnostics:
>
> This is bad because it seems to imply that only optimized code misbehaves
> somewhere and this could well be a bug in the optimizer. On an off chance
> that the build was somehow broken due to the PCH file corruption before,
> would you mind rebuilding with --disable-precomp-headers but without
> --enable-debug to check if it changes anything?
Will do.
> Alternatively, I could make
> my own binaries available to verify if the bugs you're seeing are due to
> something on the machine where you run the tests or to the way you build
> them.
Let's keep that idea in reserve for now, and see what I come up with here.
> And if the bug does reappear, even with --disable-precomp-headers, when
> you remove --enable-debug, the next step would be to use
> --enable-debug_info instead which should still trigger the bug (as
> optimizations remain in effect with it, unlike with the full
> --enable-debug), but also allow to debug it.
Sounds like a plan.
> All this is obviously very worrisome because it's a clear regression
> compared to MinGW 3.4, but unfortunately I just can't do much about it from
> here as long as I can't even reproduce the bug :-(
Yes to both clauses.
- [lmi] wx_test: output strings truncated to one character, Greg Chicares, 2016/02/09
- Re: [lmi] wx_test: output strings truncated to one character, Greg Chicares, 2016/02/09
- Re: [lmi] wx_test: output strings truncated to one character, Greg Chicares, 2016/02/09
- Re: [lmi] wx_test: output strings truncated to one character, Vadim Zeitlin, 2016/02/09
- Re: [lmi] wx_test: output strings truncated to one character, Greg Chicares, 2016/02/09
- Re: [lmi] wx_test: output strings truncated to one character, Greg Chicares, 2016/02/10
- Re: [lmi] wx_test: output strings truncated to one character, Greg Chicares, 2016/02/10
- Re: [lmi] wx_test: output strings truncated to one character, Vadim Zeitlin, 2016/02/10
- Re: [lmi] wx_test: output strings truncated to one character,
Greg Chicares <=
- Re: [lmi] silent compilation failure (was: wx_test: output strings truncated to one character), Vadim Zeitlin, 2016/02/10
- Re: [lmi] wx_test: output strings truncated to one character, Greg Chicares, 2016/02/10
- Re: [lmi] wx_test: output strings truncated to one character, Vadim Zeitlin, 2016/02/10
- Re: [lmi] wx_test: output strings truncated to one character, Greg Chicares, 2016/02/10
Re: [lmi] wx_test: output strings truncated to one character, Vadim Zeitlin, 2016/02/10