pg_ext.bundle: [BUG] Segmentation fault

Trying to run the Rails 3 console using rvm and zsh and Mac OSX (Snow Leopard), and ran into the following problem:

$ rails console
~/.rvm/gems/ruby-1.9.2-p0@dealshare-backend/gems/pg-0.9.0/lib/pg_ext.bundle: [BUG] Segmentation fault
ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0]

zsh: abort      rails console

The 1.8.7 was confusing, since I was running 1.9.2 (as Rails 3 requires.) I merely removed 1.8.7, as I didn’t need it anymore. This seemed to fix the problem, although it hardly seems optimal

Read on →

"file has vanished" error when running `sudo port -v selfupdate`

Got the following error when trying to initially run an update on Mac Ports after installing it:

~> sudo port -v selfupdate
Password:
--->  Updating the ports tree
Synchronizing local ports tree from rsync://rsync.macports.org/release/ports/
receiving file list ... file has vanished: "/ports/sysutils/gcc_select/files/gcc33" (in release)
done
./
sysutils/coreutils/
sysutils/coreutils/files/
sysutils/count/
sysutils/count/files/
sysutils/createrepo/
sysutils/createrepo/files/
sysutils/createtorrent/
sysutils/createtorrent/files/
sysutils/cronolog-devel/
sysutils/cronolog/
sysutils/crswallow/
sysutils/cssh/
sysutils/cuetools/
sysutils/daemon/
sysutils/daemon/files/
sysutils/daemontools/
sysutils/daemontools/files/
sysutils/dc3dd/
sysutils/dcfldd/
sysutils/dcfldd/files/
sysutils/dd_rescue/
sysutils/dd_rescue/files/
sysutils/ddrescue/
sysutils/detach/
sysutils/detox/
sysutils/di/
sysutils/diffutils/
sysutils/diffutils/files/
sysutils/dirvish/
sysutils/dirvish/files/
sysutils/disktype/
sysutils/disktype/files/
sysutils/dmg2img/
sysutils/dmg2img/files/
sysutils/dnuos/
sysutils/doodle/
sysutils/dpkg/
sysutils/dpkg/files/
sysutils/dpkg/files/bsd/
sysutils/dtach/
sysutils/duff/
sysutils/duplicity/
sysutils/dvdrtools/
sysutils/dvdrtools/files/
sysutils/dvdrw-tools/
sysutils/dvdrw-tools/files/
sysutils/dvtm/
sysutils/dvtm/files/
sysutils/dwatch/
sysutils/dwatch/files/
sysutils/e2fsprogs/
sysutils/e2fsprogs/files/
sysutils/endian/
sysutils/erni/
sysutils/erni/files/
sysutils/etch/
sysutils/exec-wrapper/
sysutils/exec-wrapper/files/
sysutils/facter/
sysutils/faubackup/
sysutils/fcron/
sysutils/fcron/files/
sysutils/fdupes/
sysutils/fhist/
sysutils/file/
sysutils/file/files/
sysutils/findutils/
sysutils/foremost/
sysutils/freeradius/
sysutils/freeradius/files/
sysutils/fs-check/
sysutils/gcc_select/
sysutils/gcc_select/files/
file has vanished: "/ports/sysutils/gcc_select/files/.gcc33.G52TaJ" (in release)
IO error encountered -- skipping file deletion

sent 519 bytes  received 482625 bytes  138041.14 bytes/sec
total size is 26763626  speedup is 55.39
rsync warning: some files vanished before they could be transferred (code 24) at /SourceCache/rsync/rsync-40/rsync/main.c(1400) [generator=2.6.9]
shell command "/usr/bin/rsync -rtzv --delete-after '--exclude=/PortIndex*' rsync://rsync.macports.org/release/ports/ /opt/local/var/macports/sources/rsync.macports.org/release/ports" returned error 24
Error: Synchronization of the local ports tree failed doing rsync
Error: /opt/local/bin/port: port selfupdate failed: Couldn't sync the ports tree: Synchronization of 1 source(s) failed

The resolution was to apparently just re-run the command. I installed something after trying to update the first time, but I don’t think that should have affected anything. If anyone has additional insight into what causes this problem, please leave a comment below. Thanks!

Read on →

The command "cmd /c ""%VS100COMNTOOLS%vsvars32.bat" && sgen /nologo /assembly:"FOO" /force /type:BAR"" exited with code 255.

I got this when building a solution in Visual Studio. In order to figure out what the cryptic code 255 means, I ran this command at the command-line to see if there was additional output. I got:

"C:\Program was unexpected at this time.

It then printed my path and I noticed there were some entries with quotes. I removed the quotes in the path and tried again, and it worked. So the problem is that quotes cannot appear in your path to run the command as it is entered. I originally entered these in to appease Cygwin.

Read on →

A Debugging Blog

The premise of this blog is that in my day-to-day activities, I run across things that take me awhile to figure out. In an effort to help those that are searching online, it would be nice to put my findings somewhere. My main blog doesn’t seem to be the right venue for this, since it contains longer articles and essays.

I was inspired to do this when working with Android and realizing how few solid resources there were at times. The edges of technology are more difficult to work with. It would have been handy to show myself and others how much I had learned, and for people to take the journey with me as well.

Read on →