[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"



>
> 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

Interesting. I had put init-system-helpers on hold because it was
reported with some issue and I see usrmerge package is not installed on
my system.

usrmerge:
  Installed: (none)
  Candidate: 31
  Version table:
     31 500
        500 http://deb.debian.org/debian sid/main amd64 Packages
        500 http://deb.debian.org/debian sid/main i386 Packages
     30+nmu1 -1
        100 /var/lib/dpkg/status
        
>> > 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

└─(09:09:40 on master)──> ls -ld /lib                                                                                                                                           ──(Mon,Sep26)─┘
drwxr-xr-x 9 root root 4096 Sep 23 14:37 /lib
┌─(~/.emacs.d)─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────(vasudeva.sk@bhrigu:pts/8)─┐
└─(09:12:50 on master)──> ls -l /lib/x86_64-linux-gnu/libc.so.6                                                                                                                 ──(Mon,Sep26)─┘
-rwxr-xr-x 1 root root 2049032 Sep 11 03:35 /lib/x86_64-linux-gnu/libc.so.6
┌─(~/.emacs.d)─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────(vasudeva.sk@bhrigu:pts/8)─┐
└─(09:13:06 on master)──> ls -l /usr/lib/x86_64-linux-gnu/libc.so.6                                                                                                             ──(Mon,Sep26)─┘
-rwxr-xr-x 1 root root 2049032 Sep 11 03:35 /usr/lib/x86_64-linux-gnu/libc.so.6
┌─(~/.emacs.d)─────────────────────────────────────────────────────────────────────────

Is it that if I install usrmerge and then upgrade libc it should work?

Thanks and Regards,
Vasudev


Reply to: