views:

139

answers:

0

I am trying to run an application which has worked fine for awhile, and now when I try and run it on Mac OS X, I get SIGBUS.

I can't figure out why.

This is also printed on the console:

Invalid access of stack red zone 0x100401730 rip=0x115ae088e

If I turn off PostgreSQL, it fails with connection failed.

Current thread (0x0000000102800800):  JavaThread "main" [_thread_in_native, id=5246976, stack(0x0000000100401000,0x0000000100501000)]
Stack: [0x0000000100401000,0x0000000100501000]
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  java.net.SocketOutputStream.socketWrite0(Ljava/io/FileDescriptor;[BII)V+0
j  java.net.SocketOutputStream.socketWrite([BII)V+44
j  java.net.SocketOutputStream.write([BII)V+4
j  java.io.BufferedOutputStream.flushBuffer()V+20
j  java.io.BufferedOutputStream.flush()V+1
j  org.postgresql.core.PGStream.flush()V+18
j  org.postgresql.core.v3.QueryExecutorImpl.sendSync()V+40
j  org.postgresql.core.v3.QueryExecutorImpl.execute(Lorg/postgresql/core/Query;Lorg/postgresql/core/ParameterList;Lorg/postgresql/core/ResultHandler;III)V+139
j  org.postgresql.jdbc2.AbstractJdbc2Statement.execute(Lorg/postgresql/core/Query;Lorg/postgresql/core/ParameterList;I)V+199
j  org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(I)Z+14
j  org.postgresql.jdbc2.AbstractJdbc2Statement.execute()Z+2
j  sun.reflect.GeneratedMethodAccessor6.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+40
J  java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
j  com.ibatis.common.jdbc.logging.PreparedStatementLogProxy.invoke(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;)Ljava/lang/Object;+205

SOLUTION

This ended up being a botched iBatis configuration file. I think it may have had something to do with a circular reference. So I think it has something to do with a class loader issue on Mac OS X.