Pointer with bebebebebe

635 views
Skip to first unread message

Benoît Canet

<benoit@scylladb.com>
unread,
Mar 22, 2017, 7:04:37 AM3/22/17
to ScyllaDB development


Hi,

I am debugging one of my patchset with debug build and got a unique_ptr
filled with 0xbebebebebebebebe.

Does this pattern ring a bell to anyone ?

Best regards

Benoît

Gleb Natapov

<gleb@scylladb.com>
unread,
Mar 22, 2017, 7:06:24 AM3/22/17
to Benoît Canet, ScyllaDB development
On Wed, Mar 22, 2017 at 12:04:36PM +0100, Benoît Canet wrote:
> Hi,
>
> I am debugging one of my patchset with debug build and got a unique_ptr
> filled with 0xbebebebebebebebe.
>
> Does this pattern ring a bell to anyone ?
>
IIRC this is how memory debugger fills freed memory to detect use after
free.

--
Gleb.

Benoît Canet

<benoit@scylladb.com>
unread,
Mar 22, 2017, 7:09:06 AM3/22/17
to Gleb Natapov, ScyllaDB development

Thanks Gleb.

Gleb Natapov

<gleb@scylladb.com>
unread,
Mar 22, 2017, 7:37:15 AM3/22/17
to Benoît Canet, ScyllaDB development
Actually this is malloc_fill_byte - Value used to fill the newly allocated memory [1].

1. https://github.com/google/sanitizers/wiki/AddressSanitizerFlags
--
Gleb.
Reply all
Reply to author
Forward
0 new messages