Current-Users archive

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

Re: Crash in getenv(3)



In article <20130410115848.1B12E1236A%ren.fdy2.co.uk@localhost>,
Robert Swindells  <rjs%fdy2.co.uk@localhost> wrote:
>
>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/libc.so.12
>#1  0x00007f7ff68adfc2 in __findenvvar () from /usr/lib/libc.so.12
>#2  0x00007f7ff68ada60 in getenv () from /usr/lib/libc.so.12
>#3  0x00007f7ff6c379c0 in X11_CheckMouseModeNoLock ()
>   from /usr/pkg/lib/libSDL-1.2.so.0
>#4  0x00007f7ff6c0f4b5 in SDL_PumpEvents () from /usr/pkg/lib/libSDL-1.2.so.0
>#5  0x00007f7ff6c0f4e4 in SDL_PollEvent () from /usr/pkg/lib/libSDL-1.2.so.0
>#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.

Build a system with MKDEBUG=yes and you'll get more info.

christos



Home | Main Index | Thread Index | Old Index