Discussion:
[Bug gdb/23128] New: strlen function doesn't run correctly in gdb
sourceware at upsuper dot org
2018-05-02 03:58:13 UTC
Permalink
https://sourceware.org/bugzilla/show_bug.cgi?id=23128

Bug ID: 23128
Summary: strlen function doesn't run correctly in gdb
Product: gdb
Version: 8.1
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: gdb
Assignee: unassigned at sourceware dot org
Reporter: sourceware at upsuper dot org
Target Milestone: ---

Steps to reproduce:
1. run a program in gdb and break wherever you like
2. input "print (int)strlen(0)"

Expected result:
The program should crash due to segmentation fault.

Actual result:
It seems to return the address of __strlen_avx2 for me whatever argument being
used.
--
You are receiving this mail because:
You are on the CC list for the bug.
sourceware at upsuper dot org
2018-05-01 22:28:58 UTC
Permalink
https://sourceware.org/bugzilla/show_bug.cgi?id=23128

--- Comment #1 from Xidorn Quan <sourceware at upsuper dot org> ---
I'm using gdb from Ubuntu 18.04LTS. The version is
GNU gdb (Ubuntu 8.1-0ubuntu3) 8.1.0.20180409-git
--
You are receiving this mail because:
You are on the CC list for the bug.
sourceware at upsuper dot org
2018-05-02 03:59:59 UTC
Permalink
https://sourceware.org/bugzilla/show_bug.cgi?id=23128

Xidorn Quan <sourceware at upsuper dot org> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |robert at ocallahan dot org,
| |tromey at sourceware dot org
--
You are receiving this mail because:
You are on the CC list for the bug.
palves at redhat dot com
2018-05-02 11:25:50 UTC
Permalink
https://sourceware.org/bugzilla/show_bug.cgi?id=23128

Pedro Alves <palves at redhat dot com> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |palves at redhat dot com

--- Comment #2 from Pedro Alves <palves at redhat dot com> ---
Please give current master a try. This should have been fixed recently by:

[PATCH v2 00/15] Fixing GNU ifunc support
https://sourceware.org/ml/gdb-patches/2018-03/msg00504.html
--
You are receiving this mail because:
You are on the CC list for the bug.
sourceware at upsuper dot org
2018-05-02 11:32:01 UTC
Permalink
https://sourceware.org/bugzilla/show_bug.cgi?id=23128

Xidorn Quan <sourceware at upsuper dot org> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |FIXED

--- Comment #3 from Xidorn Quan <sourceware at upsuper dot org> ---
That seems to be exactly what I saw. I'm fine closing this bug given that this
is a known and fixed issue.

(If you have a nightly build I can test on directly, I'm happy to verify the
fix, otherwise I would just trust you that it has been fixed by that :)
--
You are receiving this mail because:
You are on the CC list for the bug.
palves at redhat dot com
2018-05-02 11:38:14 UTC
Permalink
https://sourceware.org/bugzilla/show_bug.cgi?id=23128

--- Comment #4 from Pedro Alves <palves at redhat dot com> ---
We don't have nightly builds, though building gdb oneself is not hard. The
standard "configure && make && make install" should work. If you want to make
sure you have the build prerequisites for all the bells and whistles installed,
then you can run the commands here:

https://sourceware.org/gdb/wiki/BuildBot#Fedora-specific_instructions
https://sourceware.org/gdb/wiki/BuildBot#Debian-specific_instructions
--
You are receiving this mail because:
You are on the CC list for the bug.
fweimer at redhat dot com
2018-09-19 13:11:31 UTC
Permalink
https://sourceware.org/bugzilla/show_bug.cgi?id=23128

Florian Weimer <fweimer at redhat dot com> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |fweimer at redhat dot com
--
You are receiving this mail because:
You are on the CC list for the bug.
Loading...