[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1020559: libc6: After upgrading libc6 expr is crashing with "stack smashing detected"



control: notfound -1 glibc/2.34-8
control: found -1 glibc/2.35-1

Hello Vasudev,

On 2022-09-24 21:18, Vasudev Kamath wrote:
> 
> > Hello Vasudev,
> > ok, reverting back would explain reportbug using version 2.34-8.
> > 
> > But was this core taken at a time where all libc packages
> > should have been at 2.35-1 ?
> > Then I don't understand that "Module" line,
> > which shows the build-id from 2.34-8.

This mail should fix the BTS version.

> Ah sorry I did coredumpctl debug post reverting the libc6. But core file attached is taken when actual 2.35 was installed.

I have looked at the coredump you sent me:

$ eu-unstrip -n --core core.expr.1000.d5ff83e0fd69439497afd17511de3417.85280.1663923583000000
0x5604c0781000+0x1e000 b919757cbc30fbb64b14498222499d972fd80acd@0x5604c0781368 . - /usr/bin/expr
0x7fbfabc00000+0x201000 ef3afb43092687d7fcc8167fabdee73f4a3287f1@0x7fbfabc00380 - - /usr/lib/x86_64-linux-gnu/libc.so.6
0x7ffdc5bde000+0x1000 c35c947b072ff69b395cd326b83b24630f2c5065@0x7ffdc5bde54c . - linux-vdso.so.1
0x7fbfac04c000+0x362b8 a03c3b14d371da908a3f22007b3f0c73d1f9f634@0x7fbfac04c248 /lib64/ld-linux-x86-64.so.2 - ld-linux-x86-64.so.2
0x7fbfabfc9000+0x80bc8 25c73b398493c695a013a6d9d493a8316aac0fa0@0x7fbfabfc9248 /usr/lib/x86_64-linux-gnu/libgmp.so.10 - libgmp.so.10

ef3afb43092687d7fcc8167fabdee73f4a3287f1 
  => comes from libc6 version 2.34-8
a03c3b14d371da908a3f22007b3f0c73d1f9f634
  => comes from libc6 version 2.35-1

So the crash is likely due to a mismatch between glibc. I believe this
is due to an issue with usrmerge as the paths reported by your core file
seems to show that your system is merged, while reportbug says
"merged-usr: no".

By using a non usrmerged system, with libc6 2.34-8 duplicated in both
/lib/x86_64-linux-gnu/ and /usr/lib/x86_64-linux-gnu, and upgrading it
to libc6 2.35-1, I am able to reproduce your issue with expr:

$ expr
*** stack smashing detected ***: terminated
Aborted

> > And if I understand you right the stack smashing
> > is from "autoreconf --version".
> > But I could not find it executing any "expr" processes in my test VM.
> 
> Actually just invoking autoconf was crashing and just executing expr itself was also crashing. If needed I can install latest libc and provide any required information. Do let me know

Before trying to upgrade again, we should ensure your system is in a
sane state. Could you please send us the output of:

ls -ld /lib
ls -l /lib/x86_64-linux-gnu/libc.so.6
ls -l /usr/lib/x86_64-linux-gnu/libc.so.6

Regards
Aurelien

-- 
Aurelien Jarno                          GPG: 4096R/1DDD8C9B
aurelien@aurel32.net                 http://www.aurel32.net


Reply to: