|
From: <ste...@fr...> - 2004-12-02 00:02:06
|
Hello,
I am trying to check memory leaks inside my soft stellarium. While the
soft runs fine normally (and also with gdb), it crashes with a segfault
when launched with valgrind.
This problem was reproduced on 2 different computers, running debian.
How can i determine what's wrong? Could it be caused by my radeon dri
library?
Thanks for your help.
Fab
fabien@9[stellarium]$ valgrind ./src/stellarium
==12805== Memcheck, a memory error detector for x86-linux.
==12805== Copyright (C) 2002-2004, and GNU GPL'd, by Julian Seward et al.
==12805== Using valgrind-2.2.0, a program supervision framework for
x86-linux.
==12805== Copyright (C) 2000-2004, and GNU GPL'd, by Julian Seward et al.
==12805== For more details, rerun with: -v
==12805==
-----------------------------------------
| ## ### ### # # ### ### # # # # #|
| # # ## # # ### ## # # # ###|
|## # ### ### ### # # # # # ### # #|
| Stellarium 0.7.0|
-----------------------------------------
Copyright (C) 2004 Fabien Chereau
Please check last version and send bug report & comments
on stellarium web page : http://stellarium.free.fr
>Found data files in . : local version.
Loading configuration file /home/fabien/.stellarium/config.ini ...
==12805== Syscall param write(buf) contains uninitialised or
unaddressable byte(s)
==12805== at 0x410E7F3E: write (in /lib/tls/libc-2.3.2.so)
==12805== by 0x415A8E0F: (within /usr/X11R6/lib/libX11.so.6.2)
==12805== by 0x415A99FE: _X11TransWrite (in /usr/X11R6/lib/libX11.so.6.2)
==12805== by 0x41589261: (within /usr/X11R6/lib/libX11.so.6.2)
==12805== Address 0x1BD2F2AE is 14 bytes inside a block of size 2048
alloc'd
==12805== at 0x1B905901: calloc (vg_replace_malloc.c:176)
==12805== by 0x4157B09C: XOpenDisplay (in /usr/X11R6/lib/libX11.so.6.2)
==12805== by 0x1BA43DB3: (within /usr/lib/libSDL-1.2.so.0.7.0)
==12805== by 0x1BA38B13: SDL_VideoInit (in /usr/lib/libSDL-1.2.so.0.7.0)
==12805== Warning: bad signal number 0 in sigaction()
==12805==
==12805== Syscall param ioctl(generic) contains uninitialised or
unaddressable byte(s)
==12805== at 0x410EEA64: ioctl (in /lib/tls/libc-2.3.2.so)
==12805== by 0x1BF5DF28: (within
/usr/X11R6/lib/modules/dri/radeon_dri.so)
==12805== by 0x1BF55E41: (within
/usr/X11R6/lib/modules/dri/radeon_dri.so)
==12805== by 0x1BE27F0E: __driUtilCreateScreen (in
/usr/X11R6/lib/modules/dri/radeon_dri.so)
==12805== Address 0x52BFE0E4 is on thread 1's stack
==12805==
==12805== Invalid read of size 2
==12805== at 0x1BF50835: (within
/usr/X11R6/lib/modules/dri/radeon_dri.so)
==12805== by 0x52BFEFFF: ???
==12805== by 0x1BF50ACE: (within
/usr/X11R6/lib/modules/dri/radeon_dri.so)
==12805== by 0x1BEBE8E1: (within
/usr/X11R6/lib/modules/dri/radeon_dri.so)
==12805== Address 0x6E is not stack'd, malloc'd or (recently) free'd
Fatal signal: Segmentation Fault (SDL Parachute Deployed)
==12805==
==12805== ERROR SUMMARY: 5 errors from 3 contexts (suppressed: 44 from 1)
==12805== malloc/free: in use at exit: 406236 bytes in 1213 blocks.
==12805== malloc/free: 1982 allocs, 769 frees, 554933 bytes allocated.
==12805== For a detailed leak analysis, rerun with: --leak-check=yes
==12805== For counts of detected errors, rerun with: -v
|