Skip to content

Instantly share code, notes, and snippets.

@pluswave
pluswave / shm_mmap_test.c
Created July 18, 2014 11:14
odd SIGBUS
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/mman.h>
#include <stdlib.h>
#include <string.h>
int main()
{
int fileDescriptor;
@pluswave
pluswave / backtrace
Created July 16, 2014 10:59
GDB backtrace for QtWebProcess SIGBUS
(gdb) bt
#0 0x451ffe1c in qt_memfill32 (dest=0x4b619000, value=4294967295, count=512) at painting/qdrawhelper_neon.cpp:68
#1 0x450fb74c in qt_memfill<unsigned int> (dest=0x4b619000, color=4294967295, count=512)
at ../../include/QtGui/5.3.1/QtGui/private/../../../../../src/gui/painting/qdrawhelper_p.h:702
#2 0x45106088 in blend_color_argb (count=1, spans=0xbedbc924, userData=0x95b30) at painting/qdrawhelper.cpp:4448
#3 0x4515c9a0 in qt_span_fill_clipRect (count=256, spans=0xbedbc134, userData=0x95b30)
at painting/qpaintengine_raster.cpp:4075
#4 0x451bd004 in QSpanBuffer::flushSpans (this=0xbedbc134) at painting/qrasterizer.cpp:113
#5 0x451bcfa4 in QSpanBuffer::addSpan (this=0xbedbc134, x=0, len=512, y=255, coverage=255 '\377')
at painting/qrasterizer.cpp:107
@pluswave
pluswave / alignment.patch
Created July 16, 2014 10:39
Quick and Dirty fix for alignment issue on ARM/MIPS platform for Webkit2/qt5.3.1
diff --git a/qtwebkit/Source/WebKit2/Platform/CoreIPC/ArgumentEncoder.cpp b/qtwebkit/Source/WebKit2/Platform/CoreIPC/ArgumentEncoder.cpp
index 43246f4..bdbc2f1 100644
--- a/qtwebkit/Source/WebKit2/Platform/CoreIPC/ArgumentEncoder.cpp
+++ b/qtwebkit/Source/WebKit2/Platform/CoreIPC/ArgumentEncoder.cpp
@@ -61,17 +61,18 @@ PassOwnPtr<ArgumentEncoder> ArgumentEncoder::create()
}
ArgumentEncoder::ArgumentEncoder()
- : m_buffer(m_inlineBuffer)
- , m_bufferPointer(m_inlineBuffer)