Skip to content

Instantly share code, notes, and snippets.

@mariuz
mariuz / firebird3.0.3.crash
Created May 16, 2017 18:04
firebird3.0.3 crash when compiling on a non sse4 host Pentium(R) Dual-Core CPU E5400
/home/mariuz/Work/firebird/firebird/gen/Release/firebird/bin/gpre_current -m -z -n /home/mariuz/Work/firebird/firebird/src/yvalve/blob.epp /home/mariuz/Work/firebird/firebird/temp/Release/yvalve/blob.cpp
gpre version LI-V3.0.3.32722 Firebird 3.0
*** Error in `/home/mariuz/Work/firebird/firebird/gen/Release/firebird/bin/gpre_current': free(): invalid size: 0x00007f3f7017c2a0 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x7908b)[0x7f3f6f45f08b]
/lib/x86_64-linux-gnu/libc.so.6(+0x826fa)[0x7f3f6f4686fa]
/lib/x86_64-linux-gnu/libc.so.6(cfree+0x4c)[0x7f3f6f46c12c]
/home/mariuz/Work/firebird/firebird/gen/Release/firebird/bin/gpre_current(+0x93fc0)[0x55c953ed2fc0]
/home/mariuz/Work/firebird/firebird/gen/Release/firebird/bin/gpre_current(+0x8756c)[0x55c953ec656c]
/home/mariuz/Work/firebird/firebird/gen/Release/firebird/bin/gpre_current(+0x8777c)[0x55c953ec677c]
@mariuz
mariuz / sse4_crc32c.patch
Created May 15, 2017 17:05
Fix firebird crc32c compilation withot msse4 compiler flag
diff --git a/builds/posix/prefix.linux b/builds/posix/prefix.linux
index 56d1529570..e0bb64150e 100644
--- a/builds/posix/prefix.linux
+++ b/builds/posix/prefix.linux
@@ -26,7 +26,4 @@ PROD_FLAGS=$(COMMON_FLAGS) $(OPTIMIZE_FLAGS)
#DEV_FLAGS=-DUSE_VALGRIND -p $(COMMON_FLAGS) $(WARN_FLAGS)
DEV_FLAGS=-p $(COMMON_FLAGS) $(WARN_FLAGS)
-# This file must be compiled with SSE4.2 support
-%/CRC32C.o: COMMON_FLAGS += -msse4
@mariuz
mariuz / Firebird3.0.2Trusty.diff
Created May 11, 2017 15:41
The only diff for building Firebird 3.0.2 packages on Ubuntu trusty
diff -Nru firebird3.0-3.0.1.32609.ds4/debian/changelog firebird3.0-3.0.1.32609.ds4/debian/changelog
--- firebird3.0-3.0.1.32609.ds4/debian/changelog 2016-12-12 15:00:04.000000000 +0000
+++ firebird3.0-3.0.1.32609.ds4/debian/changelog 2016-12-13 14:52:44.000000000 +0000
@@ -1,3 +1,9 @@
+firebird3.0 (3.0.1.32609.ds4-12ubuntu7) trusty; urgency=medium
+
+ * remove stamp building
+
+ -- Popa Adrian Marius (Mariuz) <[email protected]> Tue, 13 Dec 2016 16:52:19 +0200
+
make utilities
make[3]: Entering directory '/home/mariuz/Work/firebird/firebird/gen'
g++ -pthread -std=c++11 -pthread -Wl,-rpath,/lib -Wl,-rpath,/intl -Wl,--version-script,empty.vers /home/mariuz/Work/firebird/firebird/temp/Release/isql/InputDevices.o /home/mariuz/Work/firebird/firebird/temp/Release/isql/OptionsBase.o /home/mariuz/Work/firebird/firebird/temp/Release/isql/Extender.o /home/mariuz/Work/firebird/firebird/temp/Release/isql/ColList.o /home/mariuz/Work/firebird/firebird/temp/Release/isql/iutils.o /home/mariuz/Work/firebird/firebird/temp/Release/isql/extract.o /home/mariuz/Work/firebird/firebird/temp/Release/isql/isql.o /home/mariuz/Work/firebird/firebird/temp/Release/isql/show.o /home/mariuz/Work/firebird/firebird/temp/Release/common.a -o /home/mariuz/Work/firebird/firebird/gen/Release/firebird/bin/isql -L/home/mariuz/Work/firebird/firebird/gen/Release/firebird/lib -lfbclient -ltommath /home/mariuz/Work/firebird/firebird/gen/Release/firebird/lib/libedit.a -latomic_ops -lm -ldl -lcurses
/home/m
@mariuz
mariuz / flamerobin backtrace.log
Created April 11, 2017 11:25
flamerobin backtrace ubuntu 16.10 wx 3.0
ASSERT INFO:
/usr/include/wx-3.0/wx/strvararg.h(456): assert "(argtype & (wxFormatStringSpecifier<T>::value)) == argtype" failed in wxArgNormalizer(): format specifier doesn't match argument type
BACKTRACE:
[1] wxAppConsoleBase::CallEventHandler(wxEvtHandler*, wxEventFunctor&, wxEvent&) const
[2] wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&)
[3] wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*)
[4] wxEvtHandler::TryHereOnly(wxEvent&)
[5] wxEvtHandler::ProcessEventLocally(wxEvent&)
[6] wxEvtHandler::ProcessEvent(wxEvent&)
@mariuz
mariuz / my steam survey linux.txt
Created March 15, 2017 21:07
my steam survey linux
Computer Information:
Manufacturer: Unknown
Model: Unknown
Form Factor: Desktop
No Touch Input Detected
Processor Information:
CPU Vendor: GenuineIntel
CPU Brand: Pentium(R) Dual-Core CPU E5400 @ 2.70GHz
CPU Family: 0x6
@mariuz
mariuz / make.android.x86_64
Last active October 24, 2016 09:15
firebird make file for android x86_64
ifeq ($(NDK),)
$(error Must export NDK location before building for Android)
endif
NDK_ROOT:=$(NDK)
#NDK_LOG:=1
include $(NDK)/build/core/init.mk
TOOLCHAIN_DIR:=$(foreach chain, $(NDK_ALL_TOOLCHAINS), $(if $(findstring x86_64, $(chain)), $(chain), ))
# Filter out clang
emerge --oneshot portage
* IMPORTANT: 17 news items need reading for repository 'gentoo'.
* Use eselect news to read news items.
Calculating dependencies... done!
[ebuild N ] sys-apps/install-xattr-0.5
[ebuild NS ] dev-lang/python-3.4.3-r1 [2.7.9-r1, 3.3.5-r1] USE="gdbm ipv6 ncurses readline ssl threads xml -build -examples -hardened -sqlite -tk -wininst"
[ebuild N ] dev-python/packaging-15.3-r2 USE="{-test}" PYTHON_TARGETS="python2_7 python3_4 (-pypy) (-pypy3) -python3_3 (-python3_5)"
[ebuild U ] dev-python/setuptools-18.4 [7.0] PYTHON_TARGETS="python3_4* -python3_3* (-python3_5)"
@mariuz
mariuz / icu_error.log
Created March 31, 2016 18:45
Icu Error with Firebird 3.0 patch
make[6]: Making `all' in `makeconv'
make[7]: Entering directory '/home/mariuz/work/libo/workdir/UnpackedTarball/firebird/extern/icu/source/tools/makeconv'
generating dependency information for gencnvex.c
generating dependency information for genmbcs.c
generating dependency information for ucnvstat.c
generating dependency information for makeconv.c
gcc -I/home/mariuz/work/libo/workdir/UnpackedTarball/libatomic_ops/src -D_REENTRANT -I../../common -I../../common -I./../toolutil -DHAVE_CONFIG_H -pthread -c -o makeconv.o makeconv.c
gcc -I/home/mariuz/work/libo/workdir/UnpackedTarball/libatomic_ops/src -D_REENTRANT -I../../common -I../../common -I./../toolutil -DHAVE_CONFIG_H -pthread -c -o ucnvstat.o ucnvstat.c
gcc -I/home/mariuz/work/libo/workdir/UnpackedTarball/libatomic_ops/src -D_REENTRANT -I../../common -I../../common -I./../toolutil -DHAVE_CONFIG_H -pthread -c -o genmbcs.o genmbcs.c
gcc -I/home/mariuz/work/libo/workdir/UnpackedTarball/libatomic_ops/src -D_REENTRANT -I../../common -I../../common
@mariuz
mariuz / VC14Changes.diff
Created March 30, 2016 15:17
Add Visual Studio 14 Changes to compilre firebird 2.5 branch https://github.com/FirebirdSQL/firebird/pull/12
diff --git a/src/burp/burp.cpp b/src/burp/burp.cpp
index 58dfdf0..1f29346 100644
--- a/src/burp/burp.cpp
+++ b/src/burp/burp.cpp
@@ -126,8 +126,8 @@ static const StatFormat STAT_FORMATS[] =
{
{"time", "%4lu.%03u ", 9},
{"delta", "%2lu.%03u ", 7},
- {"reads", "%6"UQUADFORMAT" ", 7},
- {"writes", "%6"UQUADFORMAT" ", 7}