Bug 1779246

Summary: Error in re-setting breakpoint if there are commas in source path
Product: Red Hat Enterprise Linux 7 Reporter: Paulo Andrade <pandrade>
Component: gdbAssignee: Keith Seitz <keiths>
Status: CLOSED ERRATA QA Contact: Michal Kolar <mkolar>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 7.5CC: dsmith, gdb-bugs, mcermak, ohudlick
Target Milestone: rcKeywords: Bugfix
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: gdb-7.6.1-120.el7 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-09-29 20:55:06 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1782203    
Attachments:
Description Flags
bitmapSort.c none

Description Paulo Andrade 2019-12-03 15:11:54 UTC
Created attachment 1641705 [details]
bitmapSort.c

Related to Bug #1750470

Happens in gdb-7.6.1-118.el7
gdb-7.6.1-119.el7 reverted the patches to the related bug, and
fails for all test cases.

  Reproducer:

$ mkdir foo,bar
$ cp bitmapSort.c foo,bar
$ gcc -O0 -g3 $PWD/foo,bar/bitmapSort.c -o bitmapS -lm
$ gdb bitmapS
(gdb) b 15
Breakpoint 1 at 0x4007ec: file .../foo,bar/bitmapSort.c, line 15.
(gdb) r
Starting program: .../bitmapS 
Error in re-setting breakpoint 1: Function ".../foo" not defined.

Comment 3 David Smith 2020-01-06 22:14:50 UTC
Note that there are 2 easy workarounds for this bug:

1) Don't use pathnames with a comma in the source path.
2) Use the DTS version of gdb (which doesn't have this issue).

Comment 8 Michal Kolar 2020-06-04 07:21:02 UTC
Reproduced against gdb-7.6.1-119.el7 and verified against gdb-7.6.1-120.el7.

Comment 10 errata-xmlrpc 2020-09-29 20:55:06 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (gdb bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:4033