Re: [Mesa-dev] [PATCH v2] intel: tools: dump: protect against multiple calls on destructor

2018-07-20 Thread Rafael Antognolli
On Fri, Jul 20, 2018 at 05:19:57PM +0100, Lionel Landwerlin wrote: > When running gdb, make sure to pass the LD_PRELOAD variable only to > the executed program, not the debugger. Otherwise the debugger will > run the preloaded constructor/destructor too and bad things will > happen. > >

[Mesa-dev] [PATCH v2] intel: tools: dump: protect against multiple calls on destructor

2018-07-20 Thread Lionel Landwerlin
When running gdb, make sure to pass the LD_PRELOAD variable only to the executed program, not the debugger. Otherwise the debugger will run the preloaded constructor/destructor too and bad things will happen. Suggested-by: Rafael Antognolli Signed-off-by: Lionel Landwerlin ---