Skip to content

Instantly share code, notes, and snippets.

View orgads's full-sized avatar

Orgad Shaneh orgads

  • AudioCodes
  • Israel
View GitHub Profile
import qbs
import qbs.FileInfo
StaticLibrary {
name: "Params"
Depends { name: "cpp" }
Group {
files: [
Product {
Rule {
var someVar = "path"
outputArtifacts: {
return [{fileTags: "cpp", filePath: someVar + "/name.cpp"}]
}
}
}
@orgads
orgads / ssh-strace.log
Last active December 14, 2015 08:59
SSH strace output
create_child: ssh -vvv rebaser
--- Process 5900 created
--- Process 5900 loaded C:\Windows\System32\ntdll.dll at 0000000077140000
--- Process 5900 loaded C:\Windows\System32\kernel32.dll at 0000000077020000
--- Process 5900 loaded C:\Windows\System32\KernelBase.dll at 000007FEFD080000
--- Process 5900 loaded C:\Program Files\Git\usr\bin\msys-gcc_s-seh-1.dll at 00000005E8160000
--- Process 5900 loaded C:\Program Files\Git\usr\bin\msys-2.0.dll at 0000000180040000
--- Process 5900 loaded C:\Program Files\Git\usr\bin\msys-ssp-0.dll at 00000004FF960000
--- Process 5900 loaded C:\Program Files\Git\usr\bin\msys-crypto-1.0.0.dll at 0000000561730000
--- Process 5900 loaded C:\Program Files\Git\usr\bin\msys-z.dll at 0000000522FE0000
@orgads
orgads / crash.trace
Created December 20, 2015 14:44
Crash on cancel search
0 Id: 1264.1c1c Suspend: 1 Teb: 7efdd000 Unfrozen
ChildEBP RetAddr
WARNING: Stack unwind information not available. Following frames may be wrong.
001ec478 75df44ab ntdll!NtDelayExecution+0x15
*** WARNING: Unable to verify checksum for C:\Windows\SysWOW64\ig75icd32.dll
*** ERROR: Symbol file could not be found. Defaulted to export symbols for C:\Windows\SysWOW64\ig75icd32.dll -
001ec488 0ca34d86 KERNELBASE!Sleep+0xf
001ec4d0 0ca26bc1 ig75icd32!DllMain+0xd556
*** ERROR: Symbol file could not be found. Defaulted to export symbols for C:\Windows\SysWOW64\opengl32.dll -
001ec524 583cc79f ig75icd32!DrvSwapBuffers+0x111
@orgads
orgads / debugger.log
Created January 5, 2016 06:21
Coredump log
dQUEUE: RUN ENGINE
dCALL: RUN ENGINE
<44target core D:/temp/Core/core
>&"target core D:/temp/Core/core\n"
dUNEXPECTED GDB STDERR: BFD: Warning: D:/temp/Core/core is truncated: expected core file size >= 288944128, found: 53327067.
>&"warning: core file may not match specified executable file.\n"
core file may not match specified executable file.
>=thread-group-started,id="i1",pid="1"
sThread group i1 created
@orgads
orgads / jstack.log
Created January 14, 2016 07:48
JStack log of long git fetch
Deadlock Detection:
No deadlocks found.
Thread 70: (state = IN_NATIVE)
- sun.nio.ch.WindowsSelectorImpl$SubSelector.poll0(long, int, int[], int[], int[], long) @bci=0 (Compiled frame; information may be imprecise)
- sun.nio.ch.WindowsSelectorImpl$SubSelector.poll() @bci=43 (Compiled frame)
- sun.nio.ch.WindowsSelectorImpl$SubSelector.access$400(sun.nio.ch.WindowsSelectorImpl$SubSelector) @bci=1 (Compiled frame)
- sun.nio.ch.WindowsSelectorImpl.doSelect(long) @bci=63 (Compiled frame)
- sun.nio.ch.SelectorImpl.lockAndDoSelect(long) @bci=37 (Compiled frame)
@orgads
orgads / jstack2.log
Last active January 14, 2016 07:52
JStack log of long git fetch #2
Thread 35: (state = IN_NATIVE)
- java.io.RandomAccessFile.readBytes0(byte[], int, int) @bci=0 (Compiled frame; information may be imprecise)
- java.io.RandomAccessFile.readBytes(byte[], int, int) @bci=16 (Compiled frame)
- java.io.RandomAccessFile.read(byte[], int, int) @bci=4 (Compiled frame)
- java.io.RandomAccessFile.readFully(byte[], int, int) @bci=13 (Compiled frame)
- org.eclipse.jgit.internal.storage.file.PackFile.read(long, int) @bci=49, line=667 (Compiled frame)
- org.eclipse.jgit.internal.storage.file.WindowCache.load(org.eclipse.jgit.internal.storage.file.PackFile, long) @bci=38, line=289 (Compiled frame)
- org.eclipse.jgit.internal.storage.file.WindowCache.getOrLoad(org.eclipse.jgit.internal.storage.file.PackFile, long) @bci=95, line=368 (Compiled frame)
- org.eclipse.jgit.internal.storage.file.WindowCache.get(org.eclipse.jgit.internal.storage.file.PackFile, long) @bci=11, line=179 (Compiled frame)
- org.eclipse.jgit.internal.storage.file.WindowCursor.pin(org.eclipse.jgit.internal.storage
@orgads
orgads / jstack3.log
Created January 14, 2016 07:51
JStack log of long git fetch #3
Thread 35: (state = BLOCKED)
- java.lang.Object.wait(long) @bci=0 (Compiled frame; information may be imprecise)
- java.lang.Object.wait() @bci=2, line=503 (Compiled frame)
- org.apache.sshd.common.channel.Window.waitForSpace() @bci=44, line=152 (Compiled frame)
- org.apache.sshd.common.channel.ChannelOutputStream.flush() @bci=38, line=116 (Compiled frame)
- org.apache.sshd.common.channel.ChannelOutputStream.write(byte[], int, int) @bci=67, line=84 (Compiled frame)
- org.eclipse.jgit.transport.SideBandOutputStream.writeBuffer() @bci=24, line=171 (Compiled frame)
- org.eclipse.jgit.transport.SideBandOutputStream.write(byte[], int, int) @bci=86, line=151 (Compiled frame)
- org.eclipse.jgit.internal.storage.pack.PackOutputStream.write(byte[], int, int) @bci=83, line=126 (Compiled frame)
- org.eclipse.jgit.internal.storage.file.PackFile.copyAsIs2(org.eclipse.jgit.internal.storage.pack.PackOutputStream, org.eclipse.jgit.internal.storage.file.LocalObjectToPack, boolean, org.eclipse.jgit.internal.storage.fi
diff --git a/gerrit-gwtui/src/main/java/com/google/gerrit/client/change/ChangeScreen.java b/gerrit-gwtui/src/main/java/com/google/gerrit/client/change/ChangeScreen.java
index 31ae9a1..964a96e 100644
--- a/gerrit-gwtui/src/main/java/com/google/gerrit/client/change/ChangeScreen.java
+++ b/gerrit-gwtui/src/main/java/com/google/gerrit/client/change/ChangeScreen.java
@@ -1422,7 +1422,8 @@ public class ChangeScreen extends Screen {
diffBase.addItem(Util.C.autoMerge(), DiffType.AUTO_MERGE.name());
diffBase.addItem(Util.C.firstParent(), DiffType.FIRST_PARENT.name());
if (diffType != null) {
- selectedIdx = diffType == DiffType.AUTO_MERGE ? diffBase.getItemCount() - 2 : diffBase.getItemCount() -1;
+ selectedIdx =
Thread 14 (Thread 0x7fffc0ff9700 (LWP 27541)):
#0 syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
No locals.
#1 0x00007ffff6509948 in QBasicMutex::lockInternal() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
No symbol table info available.
#2 0x00007fffdbe5e8df in QMutexLocker::QMutexLocker (this=0x7fffc0ff8820, m=0xb8cb50) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qmutex.h:128
No locals.
#3 0x00007fffdbe53ab4 in QmlJS::ModelManagerInterface::snapshot (this=0xb8cb40) at /home/shaneh/dev/qt-creator/src/libs/qmljs/qmljsmodelmanagerinterface.cpp:285
locker = {val = 12110672}