From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 97F3438582BA; Fri, 8 Jul 2022 15:50:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 97F3438582BA From: "goldstein.w.n at gmail dot com" To: glibc-bugs@sourceware.org Subject: [Bug string/29327] A SIGSEGV in hardware optimized memset for sse2 __memset_sse2_unaligned_erms() Date: Fri, 08 Jul 2022 15:50:45 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: string X-Bugzilla-Version: 2.35 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: goldstein.w.n at gmail dot com X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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: glibc-bugs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-bugs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Jul 2022 15:50:45 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D29327 --- Comment #12 from Noah Goldstein --- (In reply to Dr. Werner Fink from comment #9) > (In reply to Noah Goldstein from comment #3) > > Are there any steps for reproduction? >=20 > I've tried the memusage script of glibc utils to debug memory consumption= of > kodi Matric 19.4, this works like this: >=20 > export LD_PRELOAD=3D/lib64/libmemusage.so > export MEMUSAGE_OUTPUT=3D/dev/null > export MEMUSAGE_TRACE_MMAP=3Dyes >=20 > but this make gdb a memory huge eating all physical RAM. >=20 > Therefore I tried to set the environment in gdb its self: >=20 > gdb --args /usr/lib64/kodi/kodi.bin > [...] > (gdb) set environment LD_PRELOAD /lib64/libmemusage.so > (gdb) set environment MEMUSAGE_OUTPUT /dev/null > (gdb) set environment MEMUSAGE_TRACE_MMAP yes > (gdb) run > Starting program: /usr/lib64/kodi/kodi.bin=20 >=20 > Program terminated with signal SIGPROF, Profiling timer expired. > The program no longer exists. > (gdb) br memset > Breakpoint 1 at 0x705f80 (2 locations) > (gdb) run > Starting program: /usr/lib64/kodi/kodi.bin=20 >=20 > Breakpoint 1, memset () at > ../sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S:125 > 125 ENTRY (MEMSET_SYMBOL (__memset, unaligned)) > (gdb) list > 120 cmp %RDX_LP, %RCX_LP > 121 jb HIDDEN_JUMPTARGET (__chk_fail) > 122 END_CHK (MEMSET_CHK_SYMBOL (__memset_chk, unaligned)) > 123 #endif > 124 > 125 ENTRY (MEMSET_SYMBOL (__memset, unaligned)) > 126 MEMSET_VDUP_TO_VEC0_AND_SET_RETURN (%esi, %rdi) > 127 # ifdef __ILP32__ > 128 /* Clear the upper 32 bits. */ > 129 mov %edx, %edx >=20 > (gdb) print $rdi > $1 =3D 140737353858200 > (gdb) print $rdx > $2 =3D 36 > (gdb) print $esi > $3 =3D 0 I don't see how those values could segfault, Are you sure `rdi` points to valid memory? --=20 You are receiving this mail because: You are on the CC list for the bug.=