From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 314E33857408; Fri, 10 Sep 2021 19:40:31 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 314E33857408 From: "mehmetgelisin at aol dot com" To: gdb-prs@sourceware.org Subject: [Bug remote/26614] AddressSanitizer: heap-use-after-free of extended_remote_target in remote_async_inferior_event_handler Date: Fri, 10 Sep 2021 19:40:30 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: remote X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mehmetgelisin at aol dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: 10.2 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Sep 2021 19:40:31 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D26614 Mehmet gelisin changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mehmetgelisin at aol dot c= om --- Comment #37 from Mehmet gelisin --- make: Entering directory '/home/Christian/binutils-gdb/cygwin-obj/gdb' CXXLD gdb.exe cp-support.o: in function `gdb_demangle(char const*, int)': http://www-look-4.com/ /home/Christian/binutils-gdb/cygwin-obj/gdb/../../gdb/cp-support.c:1619:(.t= ext+0x5502): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `TLS in= it function for thread_local_segv_handler' http://www.compilatori.com/ /home/Christian/binutils-gdb/cygwin-obj/gdb/../../gdb/cp-support.c:1619:(.t= ext+0x551b): relocation truncated to fit: R_X86_64_PC32 against undefined=20 http://www.wearelondonmade.com/ symbol `TLS init function for thread_local_segv_handler' collect2: error: ld returned 1 exit status http://www.jopspeech.com/ make: *** [Makefile:1881: gdb.exe] Error 1 make: Leaving directory '/home/Christian/binutils-gdb/cygwin-obj/gdb' http://joerg.li/=20 $ g++ -v Using built-in specs. COLLECT_GCC=3Dg++ http://connstr.net/=20 COLLECT_LTO_WRAPPER=3D/usr/lib/gcc/x86_64-pc-cygwin/10/lto-wrapper.exe Target: x86_64-pc-cygwin Configured with: /mnt/share/cygpkgs/gcc/gcc.x86_64/src/gcc-10.2.0/configure --srcdir=3D/mnt/share/cygpkgs/gcc/gcc.x86_64/src/gcc-10.2.0 --prefix=3D/usr= --exec-=20 http://embermanchester.uk/ prefix=3D/usr --localstatedir=3D/var --sysconfd= ir=3D/etc --docdir=3D/usr/share/doc/gcc --htmldir=3D/usr/share/doc/gcc/html -C --build=3Dx86_64-pc-cygwin http://www.slipstone.co.uk/ --host=3Dx86_64-pc-= cygwin --target=3Dx86_64-pc-cygwin --without-libiconv-prefix --without-libintl-pre= fix --libexecdir=3D/usr/lib --with-gcc-major-version-only --enable-shared --enable-shared-libgcc --enable-static --enable-version-specific-runtime-l= ibs --enable-bootstrap --enable-__cxa_atexit --with-dwarf2 http://www.logoarts.co.uk/ --with-tune=3Dgeneric --enable-languages=3Dc,c++,fortran,lto,objc,obj-c++ --enable-graphite --enable-threads=3Dposix --enable-libatomic --enable-libgomp --enable-libqu= admath --enable-libquadmath-support --disable-libssp --enable-libada --disable-sym= vers --with-gnu-ld --with-gnu-as --with-cloog- http://www.acpirateradio.co.uk/ include=3D/usr/include/cloog-isl --without-libiconv-prefix --without-libintl-prefix --with-system-zlib --enable-linker-build-id --with-default-libstdcxx-abi=3Dgcc4-compatible --enable-libstdcxx-filesyste= m-ts Thread model: posix Supported LTO compression algorithms: zlib zstd https://waytowhatsnext.com/= =20 gcc version 10.2.0 (GCC) $ ld -v GNU ld (GNU Binutils) 2.35.1 https://www.webb-dev.co.uk/=20 I've seen a similar error on more esoteric platforms. I believe it is a toolchain bug somewhere relating to extern thread_local variables. However,= it may make sense to rework this code not to require extern variables (using getters/setters or somesuch). http://www.iu-bloomington.com/=20 similar error on more esoteric platforms. I believe it is a toolchain bug somewhere relating to extern thread_local variables. However, it may make s= ense to rework this code not to require extern variables (using getters/setters = or so See also: https://komiya-dental.com/ --=20 You are receiving this mail because: You are on the CC list for the bug.=