Mail archive
alpine-devel

[alpine-devel] [PATCH] Fix quasselcore crash during client connect

From: Yves Schumann <yves_at_eisfair.org>
Date: Sun, 26 Jan 2014 20:33:54 +0100

Hi

The attached patch updates quassel to current version and add paxctl
usage during package build, see corresponding Gentoo issue [1]. Now
quasselcore did not crash if a quasselclient try to connect.

Some details if one is interested:
(gdb) frame 0
#0 QTJSC::ExecutablePool::systemAlloc (n=n_at_entry=16384) at
../3rdparty/javascriptcore/JavaScriptCore/jit/ExecutableAllocatorPosix.cpp:47
47 CRASH();
(gdb) list
42
43 ExecutablePool::Allocation ExecutablePool::systemAlloc(size_t n)
44 {
45 void* allocation = mmap(NULL, n, INITIAL_PROTECTION_FLAGS,
MAP_PRIVATE | MAP_ANON, VM_TAG_FOR_EXECUTABLEALLOCATOR_MEMORY, 0);
46 if (allocation == MAP_FAILED)
47 CRASH();
48 ExecutablePool::Allocation alloc = {
reinterpret_cast<char*>(allocation), n };
49 return alloc;
50 }
51
(gdb) print n
$1 = 16384

The crash happens on /usr/lib/libQtScript.so.4.8.5

Kind regards,
Yves

[1] https://bugs.gentoo.org/show_bug.cgi?id=346255






---
Unsubscribe:  alpine-devel+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-devel+help_at_lists.alpinelinux.org
---
Received on Sun Jan 26 2014 - 20:33:54 UTC