fche changed the topic of #systemtap to: http://sourceware.org/systemtap; email systemtap@sourceware.org if answers here not timely, conversations may be logged
<kerneltoast> fche, none of the strings i printed using your stap script there are actually in the -d programs
<fche> well put more -d's in there :)
<fche> at this point the unwind data has to be provided to stap ahead of time via -d etc.
<kerneltoast> got any idea other than using signals?
<fche> it was just some random glibc function that took function pointers as arguments
<kerneltoast> oh wait
<kerneltoast> i see why it works for the programs you listed
<kerneltoast> because there's no gap between the first section and the second one
<kerneltoast> 562c5e9fc000-562c5ea05000 r--p 00000000 00:1f 209966 /usr/bin/as
<kerneltoast> 562c5ea05000-562c5ea53000 r-xp 00009000 00:1f 209966 /usr/bin/as
<kerneltoast> stap extends the mappings when they're next to each other
<kerneltoast> php has a gap though
<kerneltoast> 55e366a00000-55e366ad0000 r--p 00000000 00:1f 298271 /usr/bin/php
<kerneltoast> 55e366c00000-55e366e65000 r-xp 00200000 00:1f 298271 /usr/bin/php
<kerneltoast> see the end of the first mapping != the start of the second mapping
<fche> aha
<kerneltoast> so the extension fails
<fche> I couldn't get the analogous test working for /usr/bin/php
<kerneltoast> i dunno why php is wacky like this
<kerneltoast> it's only like this in fedora 32+
<kerneltoast> there might be other binaries with the same deal
<kerneltoast> so how d'ya feel about it now
<fche> would like to find such a binary and have a similar simple test to trigger the problem
<fche> hmmmm might have a simpler test, stand by
<fche> stap -e 'probe process("/usr/bin/nm").function("*").call { println(ppfunc(), " ", usymdata(uaddr())) }' -c nm
<fche> stap -e 'probe process.function("*").call { println(ppfunc(), " ", usymdata(uaddr())) }' -c php
<fche> vs -c nm
<fche> in the nm case, the names / addr-to-symbol lookups match
<fche> in the php case, they do not
khaled has quit [Quit: Konversation terminated!]
<kerneltoast> noice
<fche> so trying to build php here to see How It's Made
<fche> https://paste.centos.org/view/4624bea3 <<< from the php.spec fedora build
<fche> -Wl,-zcommon-page-size=2097152 -Wl,-zmax-page-size=2097152 <<< i suspect these are responsible
derek0883 has quit [Remote host closed the connection]
hpt has joined #systemtap
orivej has joined #systemtap
derek0883 has joined #systemtap
<kerneltoast> fche, and the offset for the executable section in php is exactly 2097152 bytes (0x200000)
<fche> yes
<fche> huge page mmap optimization
<fche> because why not?
<kerneltoast> optimization freaks
<kerneltoast> no wonder we were hard pressed to find other binaries with the same issue
<fche> but at least that test case should serve to validate non-regression with your patch
<fche> too late tonight for me to play
<fche> but
<fche> at least there's a theory & prototype for test too
<kerneltoast> yay
derek0883 has quit [Remote host closed the connection]
derek0883 has joined #systemtap
amerey_ has joined #systemtap
przemoc86 has joined #systemtap
higgins` has joined #systemtap
tux3_ has joined #systemtap
amerey has quit [*.net *.split]
przemoc has quit [*.net *.split]
tux3 has quit [*.net *.split]
serhei has quit [*.net *.split]
xlei has quit [*.net *.split]
wcohen has quit [*.net *.split]
higgins has quit [*.net *.split]
xlei has joined #systemtap
serhei has joined #systemtap
wcohen has joined #systemtap
orivej has quit [Ping timeout: 260 seconds]
orivej has joined #systemtap
derek0883 has quit [Remote host closed the connection]
derek0883 has joined #systemtap
orivej has quit [Ping timeout: 276 seconds]
derek0883 has quit [Remote host closed the connection]
khaled has joined #systemtap
fdalleau_away is now known as fdalleau
hpt has quit [Ping timeout: 265 seconds]
hpt has joined #systemtap
mjw has joined #systemtap
orivej has joined #systemtap
xlei has quit [Read error: Connection reset by peer]
hpt has quit [Ping timeout: 264 seconds]
khaled has quit [Quit: Konversation terminated!]
khaled has joined #systemtap
khaled has quit [Quit: Konversation terminated!]
khaled has joined #systemtap
xlei has joined #systemtap
tromey has joined #systemtap
khaled has quit [Quit: Konversation terminated!]
khaled has joined #systemtap
orivej has quit [Ping timeout: 256 seconds]
orivej has joined #systemtap
derek0883 has joined #systemtap
orivej has quit [Ping timeout: 276 seconds]
irker940 has joined #systemtap
<irker940> systemtap: sultan systemtap.git:master * release-4.4-118-gd1b554876 / runtime/sym.c runtime/task_finder_vma.c runtime/unwind.c runtime/vma.c: runtime: fix symbol lookups when the first section isn't executable
<irker940> systemtap: fche systemtap.git:master * release-4.4-119-g4641633a5 / testsuite/systemtap.base/large_page.c testsuite/systemtap.base/large_page.exp testsuite/systemtap.base/large_page.stp: testsuite: fix symbol lookups when the first section isn't executable
derek0883 has quit [Remote host closed the connection]
derek0883 has joined #systemtap
<kerneltoast> fche, nice
<fche> kerneltoast, the test case was not too complicated
<kerneltoast> the commit message looks like someone else wrote it though :P
<fche> :)
<kerneltoast> i guess it wasn't correct in its original form
<kerneltoast> since the issue turned out to be weirder
<fche> well not sure how much this impacts
<fche> I'm not sure it's ONLY Php
<fche> so asked serhei to keep an eye out for testsuite regressions across our buildbot farm
<serhei> yep
<kerneltoast> noice, i just went to sleep and everything handled itself
<fche> well let that be a lesson to you
<fche> :)
fdalleau is now known as fdalleau_away
fdalleau_away is now known as fdalleau
derek0883 has quit [Remote host closed the connection]
derek0883 has joined #systemtap
fdalleau is now known as fdalleau_away
derek0883 has quit [Remote host closed the connection]
derek0883 has joined #systemtap
derek0883 has quit [Remote host closed the connection]
derek0883 has joined #systemtap
tromey has quit [Quit: ERC (IRC client for Emacs 27.1)]
mjw has quit [Quit: Leaving]
irker940 has quit [Quit: transmission timeout]
orivej has joined #systemtap