Hi again,
I'm having stack alignment problems under OSX. Here is the crash backtrace:
0 dyld 0x8fe18b42 misaligned_stack_error + 0
1 runtime.dylib 0x00dcee33 LocRTShared::createRandomStreams(int) + 81 (LocRuntime.C:294)
2 runtime.dylib 0x00dd0678 LocRuntime::createRandomStreams(int) + 30 (LocRuntime.C:700)
3 runtime.dylib 0x00dfc4bd LocInstrSetNbRandomStreamsI::execute(LocRuntime*) + 27 (LocInstrI.C:242)
4 runtime.dylib 0x00e415ca __execInstrWrapper(LocInstrI*, LocRuntime*) + 32 (CotJit.C:541)
5 ??? 0x20346f52 0 + 540307282
6 org.comet-online.comet 0x0012897d ColPtrRoots::execute() + 59 (comet.C:386)
7 org.comet-online.comet 0x0012aac4 stdMain(CmdLineOptions&, int, char**) + 4620 (comet.C:579)
8 org.comet-online.comet 0x0012c988 ColCometThread::startup() + 40 (comet.C:668)
9 thread-posix.dylib 0x0072d330 Thread::real_startup(Thread*) + 130 (c++thread.cc:153)
10 libSystem.B.dylib 0x911d26f5 _pthread_start + 321
11 libSystem.B.dylib 0x911d25b2 thread_start + 34
Frame 5 is of course a bit of machine code generated by lightning. A bit later on a function finds the stack misaligned and blows up. The version I was using (1.1.2 + homegrown patches) had provisions for 16-byte stack alignment in the prepare instructions.
I will try to diagnose and possibly port my changes over to the head revision from git. If it works well, I'll post.
_______________________________________________
Lightning mailing list
Lightning@...
http://lists.gnu.org/mailman/listinfo/lightning