lua-users home
lua-l archive

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


Fabio Mascarenhas wrote:
You seem to be running under Windows, can you give me the complete info (what Lua executable you are using, if you compiled it yourself and with which compiler/C runtime; same for the LuaProfiler DLL). This has all the signs of a runtime mismatch.

Yes, I explicitly said I was under Windows (in the 1-st message).

I don't think this is a compiler mismatch.

First, the downloaded DLL and the self-compiled DLL behave identically.

Second, I repeated the tests under Linux. The profiler.so, built with the supplied Makefile.linux didn't work ("bad ELF header").
Then I tried:
  gcc -shared -o profiler.so *.o
This time it did work, but the results were the same as they were under Windows, with the exception that the 3-rd test required 1022 iterations before the crash (under Windows: 510).

Under Windows, I build with MinGW/gcc: lua.exe, lua5.1.dll and profiler.dll.
The default (for MinGW) runtime was used: msvcrt.dll

(I'm fully aware I may be doing something awfully wrong.)
--
Shmuel