[gcompris-devel] Segmentation fault CVS

Christof Petig christof at petig-baender.de
Mon Jan 26 05:01:03 UTC 2004


Bruno Coudoin schrieb:
> I feel sory but I can't see what's wrong.
> 
> We will have to go deeper in the code but it may takes some time.
> First, please change to code in src/gcompris/boards.c so that it looks
> like this:
> gboolean board_check_file(GcomprisBoard *gcomprisBoard)
> {
>   GList *node;
>   BoardPlugin *bp;
> 
>   if(!gcomprisBoard) /* ADDED THIS */
>     return FALSE;
> 
>   if(gcomprisBoard->plugin!=NULL)
>     {
>       return TRUE;
>     }
> 
> 
> Now the core dump should leave but a message telling you there is not
> menu found will appear.

** (gcompris:8440): WARNING **: Requested locale '' got 'de_DE at euro'
[New Thread 32769 (LWP 8442)]
[New Thread 16386 (LWP 8443)]
[New Thread 32771 (LWP 8444)]

** (gcompris:8444): WARNING **: Kann Musik-Verzeichnis 
/usr/local/share/gcompris/boards/music/background nicht öffnen
** Message: scan_plugins /home/christof/.gcompris/Plugins/
** Message: scan_plugins ../boards/.libs/
** Message:     plugin ../boards/.libs/libalgebra.so loaded
** Message:     plugin ../boards/.libs/libalgebra_guesscount.so loaded
** Message:     plugin ../boards/.libs/libcanal_lock.so loaded
** Message:     plugin ../boards/.libs/libchess.so loaded
** Message:     plugin ../boards/.libs/libclick_on_letter.so loaded
** Message:     plugin ../boards/.libs/libclickgame.so loaded
** Message:     plugin ../boards/.libs/libclockgame.so loaded
** Message:     plugin ../boards/.libs/libcolors.so loaded
** Message:     plugin ../boards/.libs/libdraw.so loaded
** Message:     plugin ../boards/.libs/liberase.so loaded
** Message:     plugin ../boards/.libs/libenumerate.so loaded
** Message:     plugin ../boards/.libs/libfifteen.so loaded
** Message:     plugin ../boards/.libs/libgletters.so loaded
** Message:     plugin ../boards/.libs/libhanoi.so loaded
** Message:     plugin ../boards/.libs/libimageid.so loaded
** Message:     plugin ../boards/.libs/libleftright.so loaded
** Message:     plugin ../boards/.libs/libsuperbrain.so loaded
** Message:     plugin ../boards/.libs/libmachpuzzle.so loaded
** Message:     plugin ../boards/.libs/libmaze.so loaded
** Message:     plugin ../boards/.libs/libmemory.so loaded
** Message:     plugin ../boards/.libs/libmenu.so loaded
** Message:     plugin ../boards/.libs/libmissingletter.so loaded
** Message:     plugin ../boards/.libs/libmoney.so loaded
** Message:     plugin ../boards/.libs/libparatrooper.so loaded
** Message:     plugin ../boards/.libs/libplanegame.so loaded
** Message:     plugin ../boards/.libs/librailroad.so loaded
** Message:     plugin ../boards/.libs/libreading.so loaded
** Message:     plugin ../boards/.libs/libreversecount.so loaded
** Message:     plugin ../boards/.libs/libshapegame.so loaded
** Message:     plugin ../boards/.libs/libsmallnumbers.so loaded
** Message:     plugin ../boards/.libs/libsubmarine.so loaded
** Message:     plugin ../boards/.libs/libtarget.so loaded
** Message:     plugin ../boards/.libs/libtraffic.so loaded
** Message:     plugin ../boards/.libs/libwordsgame.so loaded
** Message:     plugin ../boards/.libs/libadvanced_colors.so loaded
** Message:     plugin ../boards/.libs/libread_colors.so loaded
** Message:     plugin ../boards/.libs/libpython.so loaded
** Message: scan_plugins ./boards/.libs/
** Message: scan_plugins ./src/boards/.libs/
** Message: scan_plugins /usr/local/lib/gcompris/

** ERROR **: Cant't find the menu board or plugin execution error
aborting...

Program received signal SIGABRT, Aborted.
[Switching to Thread 16384 (LWP 8440)]
0x0f2d6a74 in kill () from /lib/libc.so.6
(gdb) bt
#0  0x0f2d6a74 in kill () from /lib/libc.so.6
#1  0x0f47885c in pthread_kill () from /lib/libpthread.so.0
#2  0x0f478cd8 in raise () from /lib/libpthread.so.0
#3  0x0f2d685c in raise () from /lib/libc.so.6
#4  0x0f2d7f74 in abort () from /lib/libc.so.6
#5  0x0f98ea30 in g_logv () from /usr/lib/libglib-2.0.so.0
#6  0x0f98ea9c in g_log () from /usr/lib/libglib-2.0.so.0
#7  0x10006fec in setup_window () at gcompris.c:455
#8  0x100077cc in gcompris_init (argc=1, argv=0x7ffffaf4) at gcompris.c:688
#9  0x10005cbc in main (argc=1, argv=0x7ffffaf4) at main.c:32


> Next we have to look in gameutils.c/gcompris_load_menus() why we cannot
> load and parse xml menu files. Please, add some printf("HERE 1\n");
> around in this code to see were it misses the load.

next ...

    Christof





More information about the Gcompris-devel mailing list