Thanks, Igor.  I'm integrating this advice into unixbuild/HowToBuild.

On Tue, Oct 5, 2010 at 3:31 PM, Igor Stasenko <siguctua@gmail.com> wrote:

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.