This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug gdb/23128] New: strlen function doesn't run correctly in gdb


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]