gdb-multiarch assert failure: *** stack smashing detected ***: terminated

Bug #1918046 reported by Makis Livadas
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gdb (Ubuntu)
New
Medium
Unassigned

Bug Description

Description: Ubuntu Hirsute Hippo (development branch)
Release: 21.04

gdb-multiarch:
  Installed: 10.1-2ubuntu1
  Candidate: 10.1-2ubuntu1
  Version table:
 *** 10.1-2ubuntu1 500
        500 http://gb.archive.ubuntu.com/ubuntu hirsute/universe amd64 Packages
        100 /var/lib/dpkg/status

I was not expecting this package to run as the crash happened after I reboot my laptop.

I was using this package before reboot with eclipse IDE to debug a remote embedded target, but was not working as expected and was thinking to use arm-none-eabi-gdb instead which don't seem to be in the ubuntu repositories.

ProblemType: Crash
DistroRelease: Ubuntu 21.04
Package: gdb-multiarch 10.1-2ubuntu1
ProcVersionSignature: Ubuntu 5.10.0-14.15-generic 5.10.11
Uname: Linux 5.10.0-14-generic x86_64
ApportVersion: 2.20.11-0ubuntu59
Architecture: amd64
AssertionMessage: *** stack smashing detected ***: terminated
CasperMD5CheckResult: unknown
CrashCounter: 1
CurrentDesktop: ubuntu:GNOME
Date: Sun Mar 7 02:13:19 2021
ExecutablePath: /usr/bin/gdb-multiarch
InstallationDate: Installed on 2021-03-06 (0 days ago)
InstallationMedia: Ubuntu 21.04 "Hirsute Hippo" - Alpha amd64 (20210123)
ProcCmdline: gdb-multiarch --interpreter mi2 --nx -q --interpreter console -ex new-ui\ mi\ /dev/pts/1 -ex set\ pagination\ off -ex show\ version
ProcEnviron:
 PATH=(custom, no user)
 LANGUAGE=en_GB:en
 SHELL=/bin/bash
 LANG=en_GB.UTF-8
 XDG_RUNTIME_DIR=<set>
Signal: 6
SourcePackage: gdb
StacktraceTop:
 __libc_message (action=action@entry=do_abort, fmt=fmt@entry=0x7f975a625953 "*** %s ***: terminated\n") at ../sysdeps/posix/libc_fatal.c:155
 __GI___fortify_fail (msg=msg@entry=0x7f975a62593b "stack smashing detected") at fortify_fail.c:26
 __stack_chk_fail () at stack_chk_fail.c:24
 ?? ()
 ?? ()
Title: gdb-multiarch assert failure: *** stack smashing detected ***: terminated
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dialout dip lpadmin lxd plugdev sambashare sudo
separator:

Revision history for this message
Makis Livadas (glivadas) wrote :
Revision history for this message
Apport retracing service (apport) wrote :

StacktraceTop:
 __libc_message (action=action@entry=do_abort, fmt=fmt@entry=0x7f975a625953 "*** %s ***: terminated\n") at ../sysdeps/posix/libc_fatal.c:155
 __GI___fortify_fail (msg=msg@entry=0x7f975a62593b "stack smashing detected") at fortify_fail.c:26
 __stack_chk_fail () at stack_chk_fail.c:24
 i386_unwind_pc (gdbarch=0x556bbf261810, next_frame=0x556bbf1ece70) at /build/gdb-3WMydc/gdb-10.1/gdb/i386-tdep.c:1992
 dwarf2_tailcall_sniffer_first (this_frame=this_frame@entry=0x556bbf1ece70, tailcall_cachep=tailcall_cachep@entry=0x556bbf1ecf70, entry_cfa_sp_offsetp=entry_cfa_sp_offsetp@entry=0x0) at /build/gdb-3WMydc/gdb-10.1/gdb/dwarf2/frame-tailcall.c:387

Revision history for this message
Apport retracing service (apport) wrote : Stacktrace.txt
Revision history for this message
Apport retracing service (apport) wrote : StacktraceSource.txt
Revision history for this message
Apport retracing service (apport) wrote : ThreadStacktrace.txt
Changed in gdb (Ubuntu):
importance: Undecided → Medium
tags: removed: need-amd64-retrace
Revision history for this message
Makis Livadas (glivadas) wrote :

This bug seem to be also present in Ubuntu 20.04 LTS

arm-none-eabi-gdb works instead of gdb-multiarch in my setup.

I retrieved arm-none-eabi-gdb from the tar release.

arm-none-eabi-gdb: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory

missing library installed and then it was working.

makis@makis:/usr/bin$ arm-none-eabi-gdb --version
GNU gdb (GNU Arm Embedded Toolchain 10-2020-q4-major) 10.1.90.20201028-git
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

No crashes and I was able to debug my code with eclipse-IDE and arm-none-eabi-gdb

gdb-multiarch does work in debugging similar targets, but not this setup.

information type: Private → Public
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.