This does NOT occur on Noble. Trying it there, the following happens
(note that I allowed debuginfod to be used but I'm not sure if that
makes any difference):

```
(gdb) print strlen(statstr)
'strlen' has unknown return type; cast the call to its declared return type
(gdb) print (size_t)strlen(statstr)
$1 = 12
```

However, attempting to use `print (size_t)strlen(statstr)` under Jammy
still segfaults.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2061849

Title:
  Segmentation fault when calling standard library functions via `print`
  or `call` while debugging a `main()` function that accepts arguments

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gdb/+bug/2061849/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to