Xorg assert failure: malloc(): unaligned tcache chunk detected

Bug #2060737 reported by Carl Grundstrom
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
xorg-server (Ubuntu)
New
Undecided
Unassigned

Bug Description

This problem started last week when we upgraded to xserver-xorg-core:amd64 2:21.1.4-2ubuntu1.7~22.04.9. The bug does not appear to be in xserver-xorg-core:amd64 2:21.1.4-2ubuntu1.7~22.04.8. It is happening on multiple desktops with once or twice daily frequency.

The symptom is an Xorg crash

#13 0x00007f988615c476 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#14 0x00007f98861427f3 in __GI_abort () at ./stdlib/abort.c:79
#15 0x00007f98861a3676 in __libc_message (action=action@entry=do_abort, fmt=fmt@entry=0x7f98862f5b77 "%s\n") at ../sysdeps/posix/libc_fatal.c:155
#16 0x00007f98861bacfc in malloc_printerr (str=str@entry=0x7f98862f8d20 "malloc(): unaligned tcache chunk detected") at ./malloc/malloc.c:5664
#17 0x00007f98861bf3dc in tcache_get (tc_idx=<optimized out>) at ./malloc/malloc.c:3195
#18 __GI___libc_malloc (bytes=64) at ./malloc/malloc.c:3313

This may be related to #2060354, but the stack trace is quite a bit different.

Perhap this is caused by freeing memory and then continuing to use it?

ProblemType: Crash
DistroRelease: Ubuntu 22.04
Package: xserver-xorg-core 2:21.1.4-2ubuntu1.7~22.04.9
ProcVersionSignature: Ubuntu 5.15.0-102.112-generic 5.15.148
Uname: Linux 5.15.0-101-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.5
Architecture: amd64
AssertionMessage: malloc(): unaligned tcache chunk detected
CasperMD5CheckResult: pass
CompositorRunning: None
CrashCounter: 1
Date: Tue Apr 9 11:35:17 2024
DistUpgraded: Fresh install
DistroCodename: jammy
DistroVariant: ubuntu
ExecutablePath: /usr/lib/xorg/Xorg
ExtraDebuggingInterest: Yes
GraphicsCard:
 Advanced Micro Devices, Inc. [AMD/ATI] Renoir [1002:1636] (rev d9) (prog-if 00 [VGA controller])
   Subsystem: Lenovo Renoir [17aa:318e]
InstallationDate: Installed on 2023-04-07 (368 days ago)
InstallationMedia: Kubuntu 22.04.1 LTS "Jammy Jellyfish" - Release amd64 (20220809.1)
MachineType: LENOVO 11JBS00000
ProcCmdline: /usr/lib/xorg/Xorg -nolisten tcp -auth /var/run/sddm/{b915a317-b67d-4aac-83e0-7721803fe4fb} -background none -noreset -displayfd 17 -seat seat0 vt1
ProcEnviron:
 PATH=(custom, no user)
 LANG=en_US.UTF-8
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.15.0-102-generic root=UUID=a9c8cc21-b571-489d-8a15-23d8242e3d89 ro quiet splash vt.handoff=7
Signal: 6
SourcePackage: xorg-server
StacktraceTop:
 __pthread_kill_implementation (no_tid=0, signo=6, threadid=139929365879424) at ./nptl/pthread_kill.c:44
 __pthread_kill_internal (signo=6, threadid=139929365879424) at ./nptl/pthread_kill.c:78
 __GI___pthread_kill (threadid=139929365879424, signo=signo@entry=6) at ./nptl/pthread_kill.c:89
 __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
 __GI_abort () at ./stdlib/abort.c:79
Title: Xorg assert failure: malloc(): unaligned tcache chunk detected
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: N/A
dmi.bios.date: 05/16/2022
dmi.bios.release: 1.67
dmi.bios.vendor: LENOVO
dmi.bios.version: M3AKT43A
dmi.board.name: 318E
dmi.board.vendor: LENOVO
dmi.board.version: SDK0J40697 WIN 3305441162270
dmi.chassis.type: 3
dmi.chassis.vendor: LENOVO
dmi.chassis.version: None
dmi.ec.firmware.release: 1.16
dmi.modalias: dmi:bvnLENOVO:bvrM3AKT43A:bd05/16/2022:br1.67:efr1.16:svnLENOVO:pn11JBS00000:pvrThinkCentreM75sGen2:rvnLENOVO:rn318E:rvrSDK0J40697WIN3305441162270:cvnLENOVO:ct3:cvrNone:skuLENOVO_MT_11JB_BU_Think_FM_ThinkCentreM75sGen2:
dmi.product.family: ThinkCentre M75s Gen 2
dmi.product.name: 11JBS00000
dmi.product.sku: LENOVO_MT_11JB_BU_Think_FM_ThinkCentre M75s Gen 2
dmi.product.version: ThinkCentre M75s Gen 2
dmi.sys.vendor: LENOVO
mtime.conffile..etc.apport.crashdb.conf: 2024-04-09T14:30:29.884673
separator:

version.compiz: compiz N/A
version.libdrm2: libdrm2 2.4.113-2~ubuntu0.22.04.1
version.libgl1-mesa-dri: libgl1-mesa-dri 23.2.1-1ubuntu3.1~22.04.2
version.libgl1-mesa-glx: libgl1-mesa-glx N/A
version.xserver-xorg-core: xserver-xorg-core 2:21.1.4-2ubuntu1.7~22.04.9
version.xserver-xorg-input-evdev: xserver-xorg-input-evdev N/A
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:19.1.0-2ubuntu1
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.99.917+git20210115-1
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:1.0.17-2build1

Revision history for this message
Carl Grundstrom (cgrundstrom) wrote :
information type: Private → Public
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. This particular bug has already been reported and is a duplicate of bug 2060354, so it is being marked as such. Please look at the other bug report to see if there is any missing information that you can provide, or to see if there is a workaround for the bug. Additionally, any further discussion regarding the bug should occur in the other report. Feel free to continue to report any other bugs you may find.

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.