Skip to content

Instantly share code, notes, and snippets.

diff --git a/toolkit/xre/nsAppRunner.cpp b/toolkit/xre/nsAppRunner.cpp
index ab063db..40a35ce 100644
--- a/toolkit/xre/nsAppRunner.cpp
+++ b/toolkit/xre/nsAppRunner.cpp
@@ -4495,12 +4495,12 @@ XRE_InitCommandLine(int aArgc, char* aArgv[])
// get the canonical version of the binary's path
nsCOMPtr<nsIFile> binFile;
rv = XRE_GetBinaryPath(aArgv[0], getter_AddRefs(binFile));
- if (NS_FAILED(rv))
+ if (NS_WARN_IF(NS_FAILED(rv)))
import os,ctypes,struct,errno,sys
CLONE_NEWIPC = 0x08000000
CLONE_NEWUSER = 0x10000000
CLONE_NEWNET = 0x40000000
start_uid = os.getuid()
start_gid = os.getgid()
c = ctypes.CDLL("libc.so.6", use_errno = True)
$ adb -s full_keon shell b2g-ps
APPLICATION USER PID PPID VSIZE RSS WCHAN PC NAME
b2g root 672 1 187644 70512 ffffffff 401035e0 S /system/b2g/b2g
(Nuwa) root 712 672 52304 21280 ffffffff 4001e5e0 S /system/b2g/plugin-container
Usage ☢ app_926 926 712 65016 25752 ffffffff 4001e5e0 S /system/b2g/plugin-container
Homescreen ☢ app_1056 1056 712 72980 32560 ffffffff 4001e5e0 S /system/b2g/plugin-container
Built-in Keyboa ☢ app_1243 1243 712 63692 24448 ffffffff 4001e5e0 S /system/b2g/plugin-container
Camera ☢ app_1419 1419 712 70984 27844 ffffffff 4001e5e0 S /system/b2g/plugin-container
CrystalSkull ☢ app_1670 1670 712 89180 28260 ffffffff 4001e5e0 S /system/b2g/plugin-container
(Preallocated a root 1693 712 59464 19164 ffffffff 4001e5e0 S /system/b2g/plugin-container
@jld
jld / .signature.09f9.sh
Created February 8, 2014 23:52
Last-Modified: Fri, 04 May 2007 08:31:15 GMT
echo "
Baptize hopscotch; abrade the sphinx. / Elegy for a janitor, a vortex magician:
Join the thinker where jokers fear to joke / Or rant in the ammonite's rowboat.
" | tr A-Z a-z | tr bcdfgjklmpqvwxyzetaonirshu 0-9A-P | tr -cd 0-9A-F; echo
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<remote name="jld" fetch="https://github.com/jld/" />
<remove-project name="platform_prebuilts_qemu-kernel" />
<project name="platform_prebuilts_qemu-kernel" path="prebuilts/qemu-kernel" remote="jld" revision="secure-goldfish" />
</manifest>
(gdb) bt
#0 0x00007f4eebe9dcab in __pselect (nfds=nfds@entry=4, readfds=readfds@entry=0x7fff6ccf2b50,
writefds=writefds@entry=0x7fff6ccf2bd0, exceptfds=exceptfds@entry=0x0,
timeout=<optimized out>, timeout@entry=0x7fff6ccf2b40, sigmask=sigmask@entry=0x0)
at ../sysdeps/unix/sysv/linux/pselect.c:71
#1 0x00000000004ccc03 in xg_select (fds_lim=4, rfds=rfds@entry=0x7fff6ccf2b50,
wfds=wfds@entry=0x7fff6ccf2bd0, efds=efds@entry=0x0, timeout=timeout@entry=0x7fff6ccf2b40,
sigmask=sigmask@entry=0x0) at xgselect.c:48
#2 0x000000000058ec57 in wait_reading_process_output (time_limit=time_limit@entry=28,
nsecs=nsecs@entry=0, read_kbd=read_kbd@entry=-1, do_display=do_display@entry=true,
diff --git a/lib/libv4lconvert/libv4lconvert.c b/lib/libv4lconvert/libv4lconvert.c
index 4e1be69..01676ca 100644
--- a/lib/libv4lconvert/libv4lconvert.c
+++ b/lib/libv4lconvert/libv4lconvert.c
@@ -386,6 +386,9 @@ static int v4lconvert_do_try_format_uvc(struct v4lconvert_data *data,
int best_rank = 100;
for (i = 0; i < data->no_framesizes; i++) {
+ if ((data->framesizes[i].discrete.width % 8) ||
+ (data->framesizes[i].discrete.height % 8))
jld@nimbostratus$ bash ./build/tools/build-gdbserver.sh --build-out=/tmp/gdbserver-7.6 --gdb-version=7.6 --sysroot=$SYSROOT ~/src/aosp-gdb/gdb-7.6/gdb/gdbserver $PWD x86-4.7
jld@nimbostratus$ echo $SYSROOT
/home/jld/src/B2G.goldfish86/prebuilts/ndk/9/platforms/android-18/arch-x86
WARNING: vmlinux.o(.data+0x74d4): Section mismatch in reference from the variable msm_mpm_debug_mask to the function .init.text:mpm_irq_domain_linear_size()
The variable msm_mpm_debug_mask references
the function __init mpm_irq_domain_linear_size()
If the reference is valid then annotate the
variable with __init* or __refdata (see linux/init.h) or name the variable:
*_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console
WARNING: vmlinux.o(.data+0x74ec): Section mismatch in reference from the variable msm_mpm_debug_mask to the function .init.text:mpm_irq_domain_legacy_size()
The variable msm_mpm_debug_mask references
the function __init mpm_irq_domain_legacy_size()
gecko/security/sandbox/chromium/base/strings/string16.h:61: error: redefinition of 'struct base::string16_char_traits'
gecko/ipc/chromium/src/base/string16.h:55: error: previous definition of 'struct base::string16_char_traits'