This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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 c++/58822] Segfault when calling make_shared


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58822

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|---                         |INVALID

--- Comment #28 from Jonathan Wakely <redi at gcc dot gnu.org> ---
If you compile it with -fsanitize=undefined then at runtime you get:

/usr/include/c++/4.8/ext/new_allocator.h:120:4: runtime error: cast to virtual
base of address 0x0000013d1ca0 which does not point to an object of type
'InvalidArgumentException'
0x0000013d1ca0: note: object has invalid vptr
 00 00 00 00  00 00 00 00 00 00 00 00  31 00 00 00 00 00 00 00  06 00 00 00 00
00 00 00  06 00 00 00
              ^~~~~~~~~~~~~~~~~~~~~~~
              invalid vptr

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