Skip to content

Instantly share code, notes, and snippets.

@starius
starius / Makefile
Created May 16, 2015 12:38
Luaprompt with LuaJIT's options -j and -O
PREFIX=/usr/
BINDIR=${PREFIX}/bin
LIBDIR=$(PREFIX)/lib/x86_64-linux-gnu
LUA_CFLAGS=`pkg-config --cflags luajit`
LUA_LDFLAGS=`pkg-config --libs luajit`
CFLAGS= -g -Wall -Wextra -Wno-unused-parameter -I.. -DHAVE_ASPRINTF
CFLAGS+= -DHAVE_LIBREADLINE -DHAVE_READLINE_READLINE_H -DHAVE_READLINE_HISTORY -DHAVE_READLINE_HISTORY_H
CFLAGS+= -D_GNU_SOURCE
@starius
starius / luajit-2.1-segfault.lua
Last active August 29, 2015 14:21
LuaJIT segfault 4a146cac9a00f5a1a7877db847ff5b
function badFunction(t)
t.__metatable = nil
local b = assert(t.field)
end
code = string.rep([[
(function()
badFunction {
field={
aaaaa={}
}
This file has been truncated, but you can view the full file.
make[1]: Entering directory `/usr/lib/mxe'
uname -a
Linux sd-68075 3.2.0-4-amd64 #1 SMP Debian 3.2.63-2+deb7u1 x86_64 GNU/Linux
git show-branch --list --reflog=1
[refs/heads/master@{0}] (10 hours ago) clone: from https://github.com/LuaAndC/mxe
lsb_release -a 2>/dev/null || sw_vers 2>/dev/null || true
Distributor ID: Debian
Description: Debian GNU/Linux 7.8 (wheezy)
Release: 7.8
Codename: wheezy
@starius
starius / dups.txt
Created June 28, 2015 14:43
Overlaps of files produced by MXE packages
usr/bin/config.guess
usr/include/gmp.h
usr/include/isl/aff.h
usr/include/isl/aff_type.h
usr/include/isl/arg.h
usr/include/isl/ast_build.h
usr/include/isl/ast.h
usr/include/isl/ast_type.h
usr/include/isl/band.h
usr/include/isl/constraint.h
@starius
starius / build-30Aug2015.log
Created August 31, 2015 06:47
MXE pango build failed
rm -rf /usr/lib/mxe/tmp-* /usr/lib/mxe/usr build-matrix.html versions.json
find: `usr': No such file or directory
[check requirements]
[download] flex
[no-build] flex i686-w64-mingw32.static
[download] gcc-gmp
[build] gcc-gmp i686-w64-mingw32.static
[done] gcc-gmp i686-w64-mingw32.static 28480 KiB 0m21.159s
[download] m4
[no-build] m4 i686-w64-mingw32.static
@starius
starius / gtk3_i686-w64-mingw32.static
Created August 31, 2015 20:15
MXE build log for gtk3 (pull request 795)
make[1]: Entering directory `/home/mxe/mxe-gtk3-795'
uname -a
Linux sd-68075 3.2.0-4-amd64 #1 SMP Debian 3.2.63-2+deb7u1 x86_64 GNU/Linux
git show-branch --list --reflog=1
[refs/heads/gtk3@{0}] (19 seconds ago) pull: Fast-forward
lsb_release -a 2>/dev/null || sw_vers 2>/dev/null || true
Distributor ID: Debian
Description: Debian GNU/Linux 7.8 (wheezy)
Release: 7.8
Codename: wheezy
@starius
starius / bitfield.cpp
Created September 1, 2015 18:53
C++ non addressable variable
struct A {
int a : 2;
int b : 2;
int c : 2;
};
int main() {
A a;
int* b = &a.b;
}
@starius
starius / history-of-failure.log
Last active September 4, 2015 07:47
Passing and failed build logs of pango
[using autodetected 6 job(s)]
rm -rf /usr/lib/mxe/tmp-* /usr/lib/mxe/usr build-matrix.html versions.json
find: `usr': No such file or directory
[using autodetected 6 job(s)]
[check requirements]
[download] flex
[no-build] flex i686-w64-mingw32.static
[using autodetected 6 job(s)]
[download] gcc-gmp
[build] gcc-gmp i686-w64-mingw32.static
@starius
starius / sfml_i686-w64-mingw32.static
Created September 5, 2015 08:15
Attempt to update SFML in MXE
make[1]: Entering directory '/home/mxe/mxe-pango'
uname -a
Linux elric.ga 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt11-1+deb8u3 (2015-08-04) x86_64 GNU/Linux
git show-branch --list --reflog=1
[refs/heads/master@{0}] (25 hours ago) (none)
lsb_release -a 2>/dev/null || sw_vers 2>/dev/null || true
Distributor ID: Debian
Description: Debian GNU/Linux 8.1 (jessie)
Release: 8.1
Codename: jessie
@starius
starius / build-pkg-warnings.log
Created September 5, 2015 08:21
Warnings produced by build-pkg.lua against MXE 0691f569eb5ed6f5b38d1f40df39b795ff5ae404
i686-w64-mingw32.static Package winpthreads changes usr/i686-w64-mingw32.static/include/pthread_signal.h, created by mingw-w64 (i686-w64-mingw32.static)
i686-w64-mingw32.static Package winpthreads changes usr/i686-w64-mingw32.static/include/pthread_time.h, created by mingw-w64 (i686-w64-mingw32.static)
i686-w64-mingw32.static Package winpthreads changes usr/i686-w64-mingw32.static/include/pthread_unistd.h, created by mingw-w64 (i686-w64-mingw32.static)
i686-w64-mingw32.static File usr/i686-w64-mingw32.static/share/nsis/Stubs/bzip2 (nsis) is "PE32 executable (GUI) Intel 80386 (stripped to external PDB), for MS Windows". Add exe or dll
i686-w64-mingw32.static File usr/i686-w64-mingw32.static/share/nsis/Stubs/bzip2_solid (nsis) is "PE32 executable (GUI) Intel 80386 (stripped to external PDB), for MS Windows". Add exe or dll
i686-w64-mingw32.static File usr/i686-w64-mingw32.static/share/nsis/Stubs/lzma (nsis) is "PE32 executable (GUI) Intel 80386 (stripped to external PDB), for MS Windows". Add exe or dll
i686