Current-Users archive

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

Crash in getenv(3)

Is anyone else getting core dumps generated within getenv(3) ?

I'm trying to use an emulator for an old CPU but it crashes whenever I
switch focus to a different window.

(gdb) bt
#0  0x00007f7ff68ade51 in __getenvslot () from /usr/lib/
#1  0x00007f7ff68adfc2 in __findenvvar () from /usr/lib/
#2  0x00007f7ff68ada60 in getenv () from /usr/lib/
#3  0x00007f7ff6c379c0 in X11_CheckMouseModeNoLock ()
   from /usr/pkg/lib/
#4  0x00007f7ff6c0f4b5 in SDL_PumpEvents () from /usr/pkg/lib/
#5  0x00007f7ff6c0f4e4 in SDL_PollEvent () from /usr/pkg/lib/
#6  0x0000000000415efb in sdl_refresh () at sdl.c:317
#7  0x00000000004078b2 in raven_clockpulse () at raven_cpu.c:4208
#8  0x0000000000401dca in main (argc=1, argv=0x7f7fffffdb40) at meroko.c:190

The environment variable that SDL is looking for isn't set.

The emulator uses pthreads, sources are from last night but I have been
seeing this problem for several weeks.

I have got debug libraries built for this machine but haven't worked out
how to link against them yet.

Robert Swindells

Home | Main Index | Thread Index | Old Index