amoeba commented on issue #46343:
URL: https://github.com/apache/arrow/issues/46343#issuecomment-2864681327
I am wondering now if something else is going on: I get different gdb print
behavior between system (debian sid) and conda. Both versions are 16.3. For
this source file,
```cpp
#include <iostream>
#include <string>
int main() {
std::string mystr = "héhé";
std::cout << mystr << std::endl;
return 0;
}
```
with system gdb 16.3-1, I get,
```
(gdb) print mystr
$1 = "héhé"
```
with conda gdb 16.3, I get,
```
(gdb) print mystr
$1 = {_M_dataplus = {<std::allocator<char>> = {<std::__new_allocator<char>>
= {<No data fields>}, <No data fields>},
_M_p = 0x7fffffffdf50 "h\303\251h\303\251"}, _M_string_length = 6, {
_M_local_buf = "h\303\251h\303\251\000l\230C\345\367\377\177\000",
_M_allocated_capacity = 7782406812835890024}}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]