[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
MiNT-X lib bug?
I tried to compile a very simple X program named Xcuckoo. It compiled
ok, but running it failed. With GDB I found that the XrmQGetStringResource
function (in Xlibs) tries to copy something from address zero to a
register.
I suspect that Xlib has some parts that rely on two unixism:
- Every program (VM) memory area starts at zero (no seg. fault
when accessing location zero).
- Memory location zero has value zero.
I have seen couple of programs that do eg. this:
if(strcmp(getenv(TERM), "vt100"))...
(getenv return NULL if there's no such variable)
Maybe Xlib includes also things like this? Could someone check
this out?
- Eero -