[SRU] git bisect start crashed with SIGSEGV in buffer_slab_peek()
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
git (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Focal |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
[ Impact ]
"git bisect--helper --bisect-start <paths>" is a valid command to start the git bisect.
And if any user uses the command to bisect then it will result in a segfault and is unusable for the user.
But git bisect--helper is not completely unusable, it can still be used if the bad commit SHA and good commit SHA is mentioned with the command.
[ Test Plan ]
* clone any git repo
* Use the command "git bisect--helper --bisect-start <file>" where <file> is any file in that git repo.
[ Where problems could occur ]
This is an upstream patch which has been backported. The upstream patch is fixing the way it treats invalid oid. The upstream patch was applied in 2020 and considering the number of users using 'git' and considering that there has been no reported regression for this patch so I will assume the chances of regression for us is very less.
The only problem I could find was that one user was confused as there was no message after starting the bisect, and that has been fixed via https:/
[ Other Info ]
* The problem has been fixed by upstream in v2.29.0 so as a result only Focal is affected. Jammy, Lunar, Mantic and Noble are not affected.
[ Original Bug Description ]
`git bisect start <filename>` always exits with a Segmentation fault.
ProblemType: Crash
DistroRelease: Ubuntu 20.04
Package: git 1:2.25.1-1ubuntu3.1
ProcVersionSign
Uname: Linux 5.4.0-65-generic x86_64
ApportVersion: 2.20.11-
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: XFCE
Date: Wed Jun 9 11:24:04 2021
ExecutablePath: /usr/bin/git
InstallationDate: Installed on 2016-02-27 (1929 days ago)
InstallationMedia: Xubuntu 15.10 "Wily Werewolf" - Release amd64 (20151021)
ProcCmdline: git bisect--helper --bisect-start synapse/
SegvAnalysis:
Segfault happened at: 0x55d3ab6b0cde <get_cached_
PC (0x55d3ab6b0cde) ok
source "0x48(%rsi)" (0x00000048) not located in a known VMA region (needed readable region)!
destination "%esi" ok
SegvReason: reading NULL VMA
Signal: 11
SourcePackage: git
StacktraceTop:
buffer_slab_peek (c=0x0, s=<optimized out>) at commit.c:290
get_cached_
repo_get_
repo_logmsg_
repo_format_
Title: git crashed with SIGSEGV in buffer_slab_peek()
UpgradeStatus: Upgraded to focal on 2021-02-16 (112 days ago)
UserGroups: adm cdrom dialout dip docker input libvirt libvirtd lpadmin plugdev sambashare sbuild sudo wireshark
modified.
mtime.conffile.
separator:
tags: | removed: need-amd64-retrace |
information type: | Private → Public |
tags: | added: need-amd64-retrace |
Changed in git (Ubuntu Focal): | |
status: | New → In Progress |
assignee: | nobody → Sudip Mukherjee (sudipmuk) |
Changed in git (Ubuntu): | |
status: | Confirmed → Fix Released |
summary: |
- git bisect start crashed with SIGSEGV in buffer_slab_peek() + [SRU] git bisect start crashed with SIGSEGV in buffer_slab_peek() |
description: | updated |
StacktraceTop: commit_ buffer (r=r@entry= 0x55d3ab8e0680 <the_repo>, commit= commit@ entry=0x0, sizep=sizep@ entry=0x0) at commit.c:290 commit_ buffer (r=r@entry= 0x55d3ab8e0680 <the_repo>, commit= commit@ entry=0x0, sizep=sizep@ entry=0x0) at commit.c:306 reencode (r=r@entry= 0x55d3ab8e0680 <the_repo>, commit= commit@ entry=0x0, commit_ encoding= commit_ encoding@ entry=0x7ffc63d 83518, output_ encoding= output_ encoding@ entry=0x55d3ab8 0257a "UTF-8") at pretty.c:614 commit_ message (r=0x55d3ab8e0680 <the_repo>, commit= commit@ entry=0x0, format= format@ entry=0x55d3ab8 15233 "%s", sb=sb@entry= 0x7ffc63d83610, pretty_ ctx=pretty_ ctx@entry= 0x7ffc63d83630) at pretty.c:1640
buffer_slab_peek (c=0x0, s=<optimized out>) at commit.c:290
get_cached_
repo_get_
repo_logmsg_
repo_format_