Re: Problem investigating a heap-use-after-free in kwindowsystem

2015-10-03 Thread Martin Graesslin
On Friday, October 2, 2015 8:38:20 PM CEST Michael Pyne wrote: > On Fri, October 2, 2015 23:59:00 Albert Astals Cid wrote: > > El Friday 02 October 2015, a les 22:24:00, Martin Graesslin va escriure: > > > Hi all, > > > > > > I added a new unit test to kwin today [1] and it failed on the CI system

Re: Problem investigating a heap-use-after-free in kwindowsystem

2015-10-02 Thread Michael Pyne
On Fri, October 2, 2015 23:59:00 Albert Astals Cid wrote: > El Friday 02 October 2015, a les 22:24:00, Martin Graesslin va escriure: > > Hi all, > > > > I added a new unit test to kwin today [1] and it failed on the CI system > > due to the enabled ASAN with an error in kwindowsystem. I'm able to

Re: Problem investigating a heap-use-after-free in kwindowsystem

2015-10-02 Thread Albert Astals Cid
El Friday 02 October 2015, a les 22:24:00, Martin Graesslin va escriure: > Hi all, > > I added a new unit test to kwin today [1] and it failed on the CI system due > to the enabled ASAN with an error in kwindowsystem. I'm able to reproduce > it locally, but fail to understand it. To me the code an

Re: Problem investigating a heap-use-after-free in kwindowsystem

2015-10-02 Thread Thomas Lübking
get_stringlist_reply creates the byte arrays QByteArray::fromRawData(), nukes the reply and returns the list which now contains freed memory. This also was just a problem in Baloo; smells like the ::fromRawArray "constructor" could use a free function pointer to be called when the bytearray i

Problem investigating a heap-use-after-free in kwindowsystem

2015-10-02 Thread Martin Graesslin
Hi all, I added a new unit test to kwin today [1] and it failed on the CI system due to the enabled ASAN with an error in kwindowsystem. I'm able to reproduce it locally, but fail to understand it. To me the code and the test conditions looks correct. Relevant part of the bt: #0 0x7f5198ac2c84