https://bugs.kde.org/show_bug.cgi?id=385409

Florian Weimer <fwei...@redhat.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fwei...@redhat.com

--- Comment #25 from Florian Weimer <fwei...@redhat.com> ---
I applied the patches in attachment 114207 and attachment 114230 on top of the
master branch (commit b9cfb2d15413d16f330878938af3d6fa1617f8b4).  I get a crash
in the inline expansion of strlen in ld.so of a z13-enabled glibc build, around
here:

==18364== Invalid read of size 1
==18364==    at 0x401892E: _dl_sysdep_start (dl-sysdep.c:236)                   
==18364==    by 0x40188A5: frob_brk (dl-sysdep.c:36)
==18364==    by 0x40188A5: _dl_sysdep_start (dl-sysdep.c:227)                   
==18364==  Address 0x1fff001000 is not stack'd, malloc'd or (recently) free'd   

   0x0000000004018914 <+860>:   lghi    %r3,0
   0x0000000004018918 <+864>:   risbg   %r1,%r2,60,191,0                        
   0x000000000401891e <+870>:   je      0x401897c <_dl_sysdep_start+964>        
   0x0000000004018922 <+874>:   lghi    %r4,15
   0x0000000004018926 <+878>:   aghi    %r3,16
   0x000000000401892a <+882>:   sgr     %r4,%r1
=> 0x000000000401892e <+886>:   vll     %v0,%r4,0(%r2)
   0x0000000004018934 <+892>:   vfenezbs        %v0,%v0,%v0                     
   0x000000000401893a <+898>:   je      0x4018952 <_dl_sysdep_start+922>        
   0x000000000401893e <+902>:   vl      %v0,0(%r3,%r2)
   0x0000000004018944 <+908>:   aghi    %r3,16
   0x0000000004018948 <+912>:   vfenezbs        %v0,%v0,%v0                     
   0x000000000401894e <+918>:   jne     0x401893e <_dl_sysdep_start+902>        
   0x0000000004018952 <+922>:   vlgvb   %r1,%v0,7
   0x0000000004018958 <+928>:   llgcr   %r1,%r1
   0x000000000401895c <+932>:   cgr     %r1,%r4

(gdb) print/x $r2
$1 = 0x1fff000ffb
(gdb) print (char *)$r2
$17 = 0x1fff000ffb "z13"
(gdb) print _rtld_local_ro._dl_platform
$18 = 0x1fff000ffb "z13"
(gdb) print _rtld_local_ro._dl_platform == $r2
$19 = 1

So strlen is called with the correct value of GLRO(dl_platform), it seems, but
the emulation does not like it.

Are there additional patches I need?

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to