Skip to content

Instantly share code, notes, and snippets.

View larsbergstrom's full-sized avatar

Lars Bergstrom larsbergstrom

View GitHub Profile
@larsbergstrom
larsbergstrom / Our configure line and settings
Created April 7, 2014 14:32
Trouble targeting android
/Users/larsberg/servo-arm2/src/compiler/rust/configure --target=arm-linux-androideabi --android-cross-path=/Users/larsberg/ndk-standalone/
...
configure:
configure: processing /Users/larsberg/servo-arm2/src/compiler/rust/configure args
configure:
configure: CFG_PREFIX := /usr/local
configure: CFG_LOCAL_RUST_ROOT := /usr/local
configure: CFG_LLVM_ROOT :=
configure: CFG_ANDROID_CROSS_PATH := /Users/larsberg/ndk-standalone/
@larsbergstrom
larsbergstrom / gist:9966107
Created April 4, 2014 01:12
ACID2 failures
(gdb) bt
#0 std::rt::unwind::Unwinder::begin_unwind::rust_fail () at /Users/larsberg/servo/src/compiler/rust/src/libstd/rt/global_heap.rs:71
#1 0x000000010035a2c1 in std::rt::unwind::Unwinder::begin_unwind (self=0x102d16ec8, cause=...) at /Users/larsberg/servo/src/compiler/rust/src/libstd/rt/unwind.rs:220
#2 0x000000010029bd9b in std::rt::unwind::begin_unwind_inner (msg=..., file=..., line=235) at /Users/larsberg/servo/src/compiler/rust/src/libstd/rt/unwind.rs:536
#3 0x0000000100292ad1 in std::rt::unwind::begin_unwind_fmt (msg=<optimized out>, file=..., line=235) at /Users/larsberg/servo/src/compiler/rust/src/libstd/rt/unwind.rs:430
#4 0x000000010004337b in cell::Ref$LT$$x27b$C$$x20T$GT$.Drop::drop::run_fmt::he885e0d432f142068tA::v0.0 ()
#5 0x000000010015a283 in cell::Ref$LT$$x27b$C$$x20T$GT$.Drop::drop::h705356e72c2aa0b22rA::v0.0 ()
#6 0x000000010015a4c6 in std..cell..Ref$LT$$C$geom..side_offsets..SideOffsets2D$LT$util..geometry..Au$GT$$GT$::glue_drop::h5c0cbc1db91be757 ()
#7 0x0000000100159ddf in ce
@larsbergstrom
larsbergstrom / acid2.html
Created March 25, 2014 23:53
Just the tables...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
<title>The Second Acid Test</title>
<style type="text/css">
/* section numbers refer to CSS2.1 */
/* page setup */
html { font: 12px sans-serif; margin: 0; padding: 0; overflow: hidden; /* hides scrollbars on viewport, see 11.1.1:3 */ background: white; color: red; }
compile: servo-test-net [13/1980]
error: linking with `cc` failed: exit code: 1
note: cc arguments: '-m64' '-L/home/larsberg/servo-rustup2/build/x86_64-unknown-linux-gnu/src/compiler/rust/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib' '-o' 'servo-test-ne
t' 'servo-test-net.o' '-nodefaultlibs' '-Wl,--as-needed' '-L/home/larsberg/servo-rustup2/build/x86_64-unknown-linux-gnu/src/components/util' '-L/home/larsberg/servo-rustup2/build/x86_64-unknown-linux-g
nu/src/support/http/rust-http' '-L/home/larsberg/servo-rustup2/build/x86_64-unknown-linux-gnu/src/support/opengles/rust-opengles' '-L/home/larsberg/servo-rustup2/build/x86_64-unknown-linux-gnu/src/supp
ort/css/rust-cssparser' '-L/home/larsberg/servo-rustup2/build/x86_64-unknown-linux-gnu/src/support/spidermonkey/rust-mozjs' '-L/home/larsberg/servo-rustup2/build/x86_64-u
export ROOT=~/servo-arm
cd $ROOT/src/platform/linux/rust-fontconfig
git remote add larsbergstrom http://github.com/larsbergstrom/rust-fontconfig.git
git fetch larsbergstrom
cd $ROOT/src/platform/linux/rust-freetype
git remote add larsbergstrom http://github.com/larsbergstrom/rust-freetype.git
git fetch larsbergstrom
cd $ROOT/src/platform/linux/rust-xlib
git remote add larsbergstrom http://github.com/larsbergstrom/rust-xlib.git
git fetch larsbergstrom
(gdb) bt
#0 0x0000000000ecccfa in script::dom::node::JS<Node>.NodeHelpers::type_id (self=0x7ffff0c187e0)
at /home/larsberg/servo-rustup/src/components/script/dom/node.rs:330
#1 0x0000000000ed5a66 in script::dom::node::JS<Node>.NodeHelpers::is_element (self=0x7ffff0c187e0)
at /home/larsberg/servo-rustup/src/components/script/dom/node.rs:357
#2 0x0000000001057dcc in script::script_task::ScriptTask::handle_event (self=0x7fffe4016740, pipeline_id=..., event=...)
at /home/larsberg/servo-rustup/src/components/script/script_task.rs:1072
#3 0x0000000001053619 in script::script_task::ScriptTask::handle_msgs (self=0x7fffe4016740)
at /home/larsberg/servo-rustup/src/components/script/script_task.rs:610
#4 0x0000000001052872 in script::script_task::ScriptTask::start (self=0x7fffe4016740)
export ROOT=~/servo-rustup
cd $ROOT/src/platform/linux/rust-fontconfig
git remote add larsbergstrom http://github.com/larsbergstrom/rust-fontconfig.git
git fetch larsbergstrom
cd $ROOT/src/platform/linux/rust-freetype
@larsbergstrom
larsbergstrom / gist:9539954
Created March 14, 2014 00:27
broken make-check in mozjs
check: rust-mozjs
./js-test
running 1 test
make[1]: *** [check] Bus error: 10
make: *** [check-rust-mozjs] Error 2
[larsberg@lbergstrom build]$ find . -name js-test
./x86_64-apple-darwin/src/support/spidermonkey/rust-mozjs/js-test
./x86_64-apple-darwin/src/support/spidermonkey/rust-mozjs/js-test.dSYM/Contents/Resources/DWARF/js-test
[larsberg@lbergstrom build]$ lldb ./x86_64-apple-darwin/src/support/spidermonkey/rust-mozjs/js-test
@larsbergstrom
larsbergstrom / gist:9537674
Created March 13, 2014 21:48
Misses rust_fail breakpoint
[larsberg@lbergstrom build]$ lldb -- ./servo ../src/test/html/about-mozilla.html
Current executable set to './servo' (x86_64).
(lldb) b rust_fail
warning: UUID mismatch detected between binary (0D178941-CF21-363C-B924-D500864DD39F) and:
'./servo.dSYM/Contents/Resources/DWARF/servo' (7C17651A-7A45-364B-8078-6FF0532623FC)
Breakpoint 1: where = servo`std::rt::unwind::Unwinder::begin_unwind::rust_fail + 63 at local_data.rs:285, address = 0x000000010030d19f
(lldb) run
Process 40246 launched: './servo' (x86_64)
9:39 Unsupported property: unicode-bidi: embed
47:23 Unsupported property: border-spacing: 2px
export ROOT=~/servo-rustup
cd $ROOT/src/platform/linux/rust-fontconfig
git remote add larsbergstrom http://github.com/larsbergstrom/rust-fontconfig.git
git fetch larsbergstrom
cd $ROOT/src/platform/linux/rust-freetype
git remote add larsbergstrom http://github.com/larsbergstrom/rust-freetype.git
git fetch larsbergstrom
cd $ROOT/src/platform/linux/rust-xlib
git remote add larsbergstrom http://github.com/larsbergstrom/rust-xlib.git
git fetch larsbergstrom