[Vm-dev] Re: Cog crash on linux

Igor Stasenko siguctua at gmail.com
Tue Oct 5 22:31:10 UTC 2010


Okay, i found where the problem (if anyone interested).

A HowToBuild file says use following command to configure it:
../../platforms/unix/config/configure CFLAGS="-g -O2 -msse2
-D_GNU_SOURCE -DNDEBUG -DITIMER_HEARTBEAT=1 -DNO_VM_PROFILE=1
-DCOGMTVM=0 -DDEBUGVM=0" LIBS=-lpthread


The last one "LIBS=-lpthread"
caused repeating -lpthread twice in makefiles:

LIBS=           -lutil -ldl -lpthread -lm -lnsl -lpthread

Interesting that it builds w/o any errors/warnings,
but crashing soon after few interactions after image startup.
And i think this was the source of gdb confusion as well.

So, the solution is simply NOT put "LIBS=-lpthread" in configure command.

P.S. now, please repeat it for me again: C is better than ...XYZ ? :)

-- 
Best regards,
Igor Stasenko AKA sig.


More information about the Vm-dev mailing list