Skip to content

Instantly share code, notes, and snippets.

Rubinius Crash Report #rbxcrashreport
Error: signal SIGILL
[[Backtrace]]
0 rbx 0x0000000100022511 _ZN8rubiniusL12segv_handlerEi + 241
1 libSystem.B.dylib 0x00007fff803da1ba _sigtramp + 26
2 ??? 0x70080cc000000000 0x0 + 8072716350834868224
3 rbx 0x000000010013d7d6 _ZN8rubinius7Channel4sendEPNS_2VMEPNS_6ObjectE + 422
4 rbx 0x0000000100082232 _ZN8rubinius10Primitives12channel_sendEPNS_2VMEPNS_9CallFrameEPNS_10ExecutableEPNS_6ModuleERNS_9ArgumentsE + 242
@loe
loe / 20-ufw.conf
Created August 31, 2011 18:36
Rsyslog Configuration
# Log kernel generated UFW log messages to file
:msg,contains,"[UFW " /var/log/ufw.log
# Uncomment the following to stop logging anything that matches the last rule.
# Doing this will stop logging kernel generated UFW log messages to the file
# normally containing kern.* messages (eg, /var/log/kern.log)
#& ~
Jun 8 21:05:49 domU-12-31-39-0C-CD-A3 postfix/smtpd[5618]: connect from domU-12-31-39-0C-CD-A3.onehub.com[127.0.0.1]
Jun 8 21:05:49 domU-12-31-39-0C-CD-A3 postfix/smtpd[5618]: 5A0E2746B9: client=domU-12-31-39-0C-CD-A3.onehub.com[127.0.0.1]
Jun 8 21:05:49 domU-12-31-39-0C-CD-A3 postfix/cleanup[5672]: 5A0E2746B9: message-id=<4defe42d42e4c_cfd8473e4a172b@domU-12-31-39-0C-CD-A3.tmail>
Jun 8 21:05:49 domU-12-31-39-0C-CD-A3 postfix/qmgr[5531]: 5A0E2746B9: from=<ws@reply.onehubmaster.com>, size=5186, nrcpt=1 (queue active)
Jun 8 21:05:49 domU-12-31-39-0C-CD-A3 postfix/smtpd[5618]: disconnect from domU-12-31-39-0C-CD-A3.onehub.com[127.0.0.1]
Jun 8 21:05:51 domU-12-31-39-0C-CD-A3 postfix/smtp[5675]: 5A0E2746B9: to=<loe+messages@onehub.com>, relay=aspmx.l.google.com[74.125.93.27]:25, delay=1.7, delays=0.11/0/0.04/1.5, dsn=2.0.0, status=sent (250 2.0.0 OK 1307567151 f11si1758327qck.134)
Jun 8 21:05:51 domU-12-31-39-0C-CD-A3 postfix/qmgr[5531]: 5A0E2746B9: removed
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>KeepAlive</key>
<true/>
<key>Label</key>
<string>com.apache.activemq</string>
<key>Program</key>
<string>/opt/local/lib/apache-activemq-5.2.0/bin/activemq</string>
INSERT into t (id, counter) values (1, 1);
-> Statement replicated.
UPDATE t SET counter = 2 WHERE id = 1;
-> Statement replicated.
UPDATE t SET counter = 3 WHERE id = 1;
==> CRASH before replication, but still fsync'd to disk.
==> Failover to slave, application tries the transaction again.
UPDATE t SET counter = 3 where id = 1;
UPDATE t SET counter = 4 where id = 1;
==> Master recovers.
#!/bin/bash
export RUBY_GC_MALLOC_LIMIT=60000000
export RUBY_HEAP_MIN_SLOTS=500000
export RUBY_HEAP_SLOTS_INCREMENT=1
export RUBY_HEAP_SLOTS_GROWTH_FACTOR=1
exec "/Users/Andrew/.rvm/bin/passenger_ruby" "$@"
class rsyslog {
include logrotate::rsyslog
package { 'rsyslog':
ensure => installed
}
service { 'rsyslog':
ensure => running
}
$memcached_memory_megabytes = if $memached_size {
$memcached_size
} else {
$memorysize * 1024 * 0.8
}
@loe
loe / http_auth.rb
Created January 19, 2011 19:02
How do I do basic_auth against the conn block var
def process
Net::HTTP.start(HOST, PORT) do |conn|
conn.post "/reports/upload", "report=" + CGI.escape(self.to_yaml)
end
end
7.223411]
[ 7.223422] ***************************************************************
[ 7.223428] ***************************************************************
[ 7.223433] ** WARNING: Currently emulating unsupported memory accesses **
[ 7.223438] ** in /lib/tls glibc libraries. The emulation is **
[ 7.223443] ** slow. To ensure full performance you should **
[ 7.223448] ** install a 'xen-friendly' (nosegneg) version of **
[ 7.223453] ** the library, or disable tls support by executing **
[ 7.223458] ** the following as root: **
[ 7.223466] ** mv /lib/tls /lib/tls.disabled **