Re: gnome-games




The only game I had segfault when writing the score was same-gnome..
I sent a small bug report in a few days ago on all the stuff I found wrong
with the games... 

Here are my findings on same-gnome, maybe they will help with the others
also...:

With gdb, I got this:

(gdb) file same-gnome
Reading symbols from same-gnome...done.
(gdb) run
Starting program: /usr/local/bin/same-gnome

** WARNING **: Could not open help topics file NULL

Program received signal SIGPIPE, Broken pipe.
0x404075e4 in __write ()
(gdb)

This is what was dumped to the xterm it was ran from:

omega:~$ same-gnome

** WARNING **: Could not open help topics file NULL

** WARNING **: Please use gtk_window_set_modal() instead of
gnome_dialog's.
omega:~$ same-gnome

** WARNING **: Could not open help topics file NULL
Gdk-Message:
** ERROR **: sigsegv caught

omega:~$

And this is the last bit of an strace I did:

read(4, "\1\1\264(\0\0\0\0&\0\0\0\0\0\0\0"..., 32) = 32
write(4, "=\0\4\0_\0\200\1\0\0\0\0(\0(\0=\0"..., 2036) = 2036
getgid()                                = 100
getegid()                               = 100
write(6, "\0\300\5D\1\0\0\0\1\0\0\0", 12) = 12
write(6, "\0", 1)                       = 1
read(3, "Mess", 4)                      = 4
open("/usr/local/var/games/same-gnome.scores", O_RDONLY) = 5
fstat(5, {st_mode=S_IFREG|0664, st_size=50, ...}) = 0
mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|0x20, 4294967295, 0) =
0x4011f0$read(5, "561.000000 907352888 sar\n423.00"..., 4096) = 50
read(5, "", 4096)                       = 0
close(5)                                = 0
munmap(0x4011f000, 4096)                = 0
time(NULL)                              = 907353090
shmget(IPC_PRIVATE, 800, IPC_CREAT|0x1ff|0666) = 36616
shmat(36616, 0, 0)                      = 0x4011f000
shmget(IPC_PRIVATE, 80, IPC_CREAT|0x1ff|0666) = 36617
shmat(36617, 0, 0)                      = 0x40478000
write(4, "=\0\4\0_\0\200\1\270\1(\0(\0(\0="..., 1100) = 1100
read(4, "\6\0.)\362iuB&\0\0\0_\0\200\1\0\0"..., 32) = 32
read(4, "\6\0.)\377iuB&\0\0\0_\0\200\1\0\0"..., 32) = 32
read(4, "\6\0.)\fjuB&\0\0\0_\0\200\1\0\0\0"..., 32) = 32
read(4, "\6\0.)\31juB&\0\0\0_\0\200\1\0\0"..., 32) = 32
read(4, "\6\0.)&juB&\0\0\0_\0\200\1\0\0\0"..., 32) = 32
read(4, "\1\2m)\0\0\0\0N\0\200\1\0\0\0\0\0"..., 32) = 32
shmdt(0x4011f000)                       = 0
shmctl(36616, IPC_RMID, 0)              = 0
shmdt(0x40478000)                       = 0
shmctl(36617, IPC_RMID, 0)              = 0
write(4, "\201\2\2\0i\0\200\1\201\2\2\0l\0"..., 36) = 36
read(4, "\6\0m)3juB&\0\0\0_\0\200\1\0\0\0"..., 32) = 32
read(4, "\1\2r)\0\0\0\0N\0\200\1\0\0\0\0\0"..., 32) = 32
write(4, "5\20\4\0o\0\200\1\5\0\200\1\24\0"..., 160) = 160
read(4, "\6\0r)@juB&\0\0\0_\0\200\1\0\0\0"..., 32) = 32
read(4, "\1\0{)\3\0\0\0\"\0\0\0\1\0\0\1\377"..., 32) = 32
read(4, "\0\0\0\0\0\0\0\0\0\0003\10", 12) = 12
read(4, "\1\20|)\0\0\0\0&\0\0\0\234\377\234"..., 32) = 32
stat("/home/sar/.gnome//Gnome/Icons/ButtonUseIcons=true", 0xbffff0b0) = -1
ENOE$open("/home/sar/.gnome//Gnome/Icons/ButtonUseIcons=true", O_RDONLY) =
-1 ENOENT$stat("/home/sar/.gnome//Gnome/Icons/ButtonUseLabels=true",
0xbffff0c4) = -1
ENO$open("/home/sar/.gnome//Gnome/Icons/ButtonUseLabels=true", O_RDONLY) =
-1 ENOEN$open("/etc/localtime", O_RDONLY)        = 5
fstat(5, {st_mode=S_IFREG|0644, st_size=820, ...}) = 0
mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|0x20, 4294967295, 0) =
0x4011f0$read(5, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096) = 820
close(5)                                = 0
munmap(0x4011f000, 4096)                = 0
write(4, "5\20\4\0s\0\200\1o\0\200\1\24\0\24"..., 216) = 216
read(4, "\6\0|)MjuB&\0\0\0_\0\200\1\0\0\0"..., 32) = 32
read(4, "\6\0|)ZjuB&\0\0\0_\0\200\1\0\0\0"..., 32) = 32
read(4, "\6\0|)gjuB&\0\0\0_\0\200\1\0\0\0"..., 32) = 32
read(4, "\6\0|)tjuB&\0\0\0_\0\200\1\0\0\0"..., 32) = 32
read(4, "\6\0|)\201juB&\0\0\0_\0\200\1\0\0"..., 32) = 32
read(4, "\6\0|)\215juB&\0\0\0_\0\200\1\0\0"..., 32) = 32
read(4, "\6\0|)\232juB&\0\0\0_\0\200\1\0\0"..., 32) = 32
read(4, "\6\0|)\247juB&\0\0\0_\0\200\1\0\0"..., 32) = 32
read(4, "\6\0|)\264juB&\0\0\0_\0\200\1\0\0"..., 32) = 32
read(4, "\6\0|)\301juB&\0\0\0_\0\200\1\0\0"..., 32) = 32
read(4, "\6\0|)\316juB&\0\0\0_\0\200\1\0\0"..., 32) = 32
read(4, "\6\0|)\333juB&\0\0\0_\0\200\1\0\0"..., 32) = 32
read(4, "\6\0|)\352juB&\0\0\0_\0\200\1\0\0"..., 32) = 32
read(4, "\6\0|)\365juB&\0\0\0_\0\200\1\0\0"..., 32) = 32
read(4, "\0\17\205)w\0\200\1\0\0-\10P\371"..., 32) = 32
read(4, "\0\7\206)w\0\200\1\0\0/\277\304^"..., 32) = 32
--- SIGSEGV (Segmentation fault) ---
write(1, "Gdk", 3)                      = 3
write(1, "-", 1)                        = 1
write(1, "Message: ", 9)                = 9
write(1, "\n** ERROR **: sigsegv caught", 28) = 28
write(1, "\n", 1)                       = 1
write(4, "f\20\3\0\200\0\0\0\1\0\0\0<\0\2\0"..., 32) = 32
read(4, "\6\0\206)\2kuB&\0\0\0_\0\200\1\0"..., 32) = 32
read(4, "\6\0\206)\34kuB&\0\0\0_\0\200\1\0"..., 32) = 32
read(4, "\1\2\212)\0\0\0\0N\0\200\1\0\0\0"..., 32) = 32
shutdown(4, 2 /* send and receive */)   = 0
close(4)                                = 0
_exit(1)                                = ?

Also, i noticed 2 processes of same-gnome are running when you run it, I
dunno if this is supposed to be, but I figured I would say something.

If you remove the score file, and 'touch' a new one into existance, with
the correct games.games user/group, and permissions, it will work once
more, write the score, give you the score you got, and continue, but when
you get to the last move on the next game, it does the same loop all over
again...

Also, when you close through the file/exit, this comes up in the xterm:

** WARNING **: Please use gtk_window_set_modal() instead of
gnome_dialog's.

Now, I think that is all, if you need anything else, or any other
bandwidth hogging emails, I'm here :)

sar

On Fri, 2 Oct 1998, Miguel de Icaza wrote:

> 
> > Almost all the games in gnome-games segfault, when the try to
> > write the score (I'm using 0.30 rpm)
> 
> Can you give us more information?  I can not get my games to crash at
> all.
> 
> Miguel.
> 
> 
> -- 
>          To unsubscribe: mail gnome-list-request@gnome.org with 
>                        "unsubscribe" as the Subject.
> 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]