lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> Can we blame the compiler? :-)

I also get bus error in Mac OS 10.7.5 with 

i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.9.00)

However, everything seems fine if I add a puts in aux_close:

static int aux_close (lua_State *L) {
  LStream *p = tolstream(L);
  lua_CFunction cf = p->closef;
  p->closef = NULL;  /* mark stream as closed */
  puts("aux_close before return");
  return (*cf)(L);  /* close it */
}

I'm baffled...