This is the mail archive of the xconq7@sourceware.cygnus.com mailing list for the Xconq project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

2 Seg faults.



I had my XCONQLIB environment variable incorrectly setup and kept getting
segfaults.  The specific line was tcltk/tkmain.c: tk_game_info() 871
  
title = possible_games[gamei]->title;
  
where possible_games[0] is NULL due to the missing game library.

Also when I try and run the standard game I get a segfault.  gdb output
follows.

Core was generated by `./xconq'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/lib/libtk.so...done.
Reading symbols from /usr/lib/libtcl.so...done.
Reading symbols from /lib/libdl.so.2...done.
Reading symbols from /lib/libm.so.6...done.
Reading symbols from /usr/X11R6/lib/libXmu.so.6...done.
Reading symbols from /usr/X11R6/lib/libX11.so.6...done.
Reading symbols from /lib/libc.so.6...done.
Reading symbols from /lib/ld-linux.so.2...done.
Reading symbols from /usr/X11R6/lib/libXt.so.6...done.
Reading symbols from /usr/X11R6/lib/libSM.so.6...done.
Reading symbols from /usr/X11R6/lib/libICE.so.6...done.
Reading symbols from /usr/X11R6/lib/libXext.so.6...done.
#0  0x814f154 in make_image_from_file_image (imf=0x83851e8, img=0x83852e8)
    at imf.c:1925
1925			    pix = fimg->data[k];
(gdb) print fimg
$1 = (FileImage *) 0x83859f8
(gdb) print fimg->data
$2 = 0x0
(gdb) print k
$3 = 0
(gdb) print *fimg
$4 = {name = 0x8371c78 "river24x26.gif", type = 0, loaded = 1, width = 0, 
  height = 0, data = 0x0, numcolors = 0, palette = 0x0, numtransparent =
0, 
  transparent = 0x0, next = 0x0}
(gdb) where
#0  0x814f154 in make_image_from_file_image (imf=0x83851e8, img=0x83852e8)
    at imf.c:1925
#1  0x80747dc in tk_interp_image (imf=0x83851e8, img=0x83852e8, subi=0, 
    force=0) at tkimf.c:260
#2  0x80742b3 in tk_interp_imf (imf=0x83851e8, img=0x83852e8, force=0)
    at tkimf.c:188
#3  0x8128e1a in get_generic_images (side=0x82bbeb0, name=0x82556c0
"river")
    at ui.c:2310
#4  0x81291ee in get_terrain_type_images (side=0x82bbeb0, t=8) at
ui.c:2415
#5  0x8055660 in init_terrain_images () at tkinit.c:757
#6  0x8053543 in init_display () at tkinit.c:226
#7  0x804b207 in init_all_displays () at xconq.c:407
#8  0x804ce3e in tk_launch_game_2 (cldata=0x0, interp=0x81b4cb8, argc=1, 
    argv=0xbfffda4c) at tkmain.c:910
#9  0x400c4707 in TclInvokeStringCommand ()
#10 0x400df888 in TclExecuteByteCode ()
(Of course the rest of the stack trace is Tk's standard call graph).

I can reproduce this so if no one else can I can investigate further.

Andrae

--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Andrae Muys              "Never ascribe to malice that which is adequately
andrae@humbug.org.au      explained by incompetence." - Napoleon Bonaparte


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]