Skip to content

Instantly share code, notes, and snippets.

View dnadlinger's full-sized avatar

David Nadlinger dnadlinger

View GitHub Profile
function reverse_voltages(data)
result = Array(Float64, size(data))
result[:, 1] = data[:, 1]
len = size(data)[2]
for i in 2:len
result[:, len + 2 - i] = data[:, i]
end
result
end
It was created by configure, which was
generated by GNU Autoconf 2.64. Invocation command line was
$ ../gcc-4.9.0/configure --disable-bootstrap --disable-libgomp --disable-libmudflap --disable-libquadmath --disable-multilib --disable-nls --enable-checking=release --enable-languages=d --prefix=/home/dash/work/gdc_main'
/home/aule/Build/Source/ldc/runtime/druntime/src/object_.d(202): Error: class object.TypeInfo base Object is forward referenced
/home/aule/Build/Source/ldc/runtime/druntime/src/object_.d(204): Error: function object.TypeInfo.toString does not override any function, did you mean to override 'object.Object.toString'?
0 ldc2 0x000000000149a442 llvm::sys::PrintStackTrace(_IO_FILE*) + 50
1 ldc2 0x0000000001499e9c
2 libpthread.so.0 0x00007f5ec23344b0
3 ldc2 0x0000000000687bfb FuncDeclaration::semantic(Scope*) + 6347
4 ldc2 0x000000000067d175 AttribDeclaration::semanticNewSc(Scope*, unsigned long, LINK, PROT, int, unsigned int) + 197
5 ldc2 0x000000000067d2af StorageClassDeclaration::semantic(Scope*) + 175
6 ldc2 0x0000000000666da2 ClassDeclaration::semantic(Scope*) + 3010
7 ldc2 0x000000000066658b ClassDeclaration::semantic(Scope*) + 939
mov rbx, rdi
data16
lea rdi, qword ptr [rip + _D4core6thread6Thread7sm_thisC4core6thread6Thread@TLSGD]
data16
data16
rex64
import std.stdio;
import std.process;
import std.random;
import std.exception;
import std.uuid;
import std.range;
import std.string;
// x86_32 - bug with empty struct - fixed
uint count;
struct S {
uint x;
void opAssign(const ref S rhs) { assert(false); }
~this() { ++count; }
}
void main() {
import core.stdc.stdio;
struct ThrowingCtor {
const char* name;
this(const char* name) {
printf("Constructing %s\n", name);
this.name = name;
throw new Exception("somebody set up us the bomb");
}
diff --git a/src/core/runtime.d b/src/core/runtime.d
index c569d74..ab0975a 100644
--- a/src/core/runtime.d
+++ b/src/core/runtime.d
@@ -50,7 +50,7 @@ private
}
-static this()
+shared static this()
module CustomNumberFormat
DECIMAL_SEPARATOR = ','
module ActiveRecord
def self.included( base )
base.send :extend, ClassMethods
base.class_eval do
class << self
alias_method_chain :define_write_method, :conversion
Application: KWin (kwin), signal SIGSEGV
Thread 1 (Thread 0xb58da6e0 (LWP 6178)):
[KCrash Handler]
#6 0xb395b9d2 in KWin::PresentWindowsEffect::setHighlightedWindow (this=0x9e45300, w=0x9b84a08) at /media/build/src/KDE/kdebase/workspace/kwin/effects/presentwindows.cpp:1262
#7 0xb396232d in KWin::PresentWindowsEffect::rearrangeWindows (this=0x9e45300) at /media/build/src/KDE/kdebase/workspace/kwin/effects/presentwindows.cpp:476
#8 0xb3963061 in KWin::PresentWindowsEffect::setActive (this=0x9e45300, active=true, closingTab=false) at /media/build/src/KDE/kdebase/workspace/kwin/effects/presentwindows.cpp:1145
#9 0xb3968d39 in KWin::PresentWindowsEffect::toggleActiveAllDesktops (this=0x9e45300) at /media/build/src/KDE/kdebase/workspace/kwin/effects/presentwindows.h:99
#10 0xb3963748 in KWin::PresentWindowsEffect::qt_metacall (this=0x9e45300, _c=QMetaObject::InvokeMetaMethod, _id=3, _a=0xbfb296ec)
at /media/build/build/KDE/kdebase/workspace/kwin/effects/presentwindows.moc:76