Announcement

Collapse
No announcement yet.

"Segmentation faul" ?!

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • "Segmentation faul" ?!

    Hi,

    I compile the Freeciv 1.14.0 sucesfully. When i wont to start freeciv:


    2: No real audio plugin present, Proceeding with sound support disabled
    2: For sound support, install either esound or SDL_mixer
    2: Esound: http://www.tux.org/~ricdude/EsounD.html
    2: SDL_mixer: http://www.libsdl.org/projects/SDL_mixer/index.html
    2: Using fallback resources - wich is OK
    Segmentation faut




    What is goin on?

  • #2
    I'm afraid I don't know all the intricacies of delaing with segfaults, but I can ask some questions that would assist the developers. Based on the question, I assume you're using linux. I also assume that the crash is reproducable.

    What window manager are you using?
    What version exactly are you using? is it the 1.14.0-beta2 source or the CVS-HEAD source?
    Do you have the core file and can you generate a backtrace?
    Andy Black

    Comment


    • #3
      Originally posted by MacHatter
      Based on the question, I assume you're using linux.
      Yes, I using Linux

      What window manager are you using?
      WindowMaker

      What version exactly are you using? is it the 1.14.0-beta2 source or the CVS-HEAD source?
      Yes, is it the 1.14.9-beta2 source.

      Do you have the core file and can you generate a backtrace?
      I don't see this file, where is it?

      Comment


      • #4
        Please start the freeciv client with gdb, for example in this way

        gdb client/civclient

        (or replace client/civclient with whatever path you have to civclient) then type "run". When it segfaults, type "bt" and post the results. Also run "civclient -d 3" and post the output from that.

        Comment


        • #5
          hi!
          i have got the same problem. i compiled freeciv 1.14.0 and installed it on my redhat linux.
          every time i start the client it ends with a segfault after the main window comes up for short time.

          so i did what you wrote in your post.

          gdb & run:

          [ghost101@ghost ghost101]$ gdb civclient
          GNU gdb Red Hat Linux (5.2.1-4)
          Copyright 2002 Free Software Foundation, Inc.
          GDB is free software, covered by the GNU General Public License, and you are
          welcome to change it and/or distribute copies of it under certain conditions.
          Type "show copying" to see the conditions.
          There is absolutely no warranty for GDB. Type "show warranty" for details.
          This GDB was configured as "i386-redhat-linux"...
          (gdb) run
          Starting program: /usr/local/bin/civclient
          [New Thread 8192 (LWP 1069)]
          1: Audio .spec-Datei 'stdsounds' nicht gefunden.
          1: Für Audio muß ein Soundset heruntergeladen werden!
          1: Soundsets gibt es unter <ftp://ftp.freeciv.org/freeciv/contrib/sounds/sets>.
          1: Audio abgeschaltet. Weiter.
          2: Benutze Reserveressourcen - OK

          Program received signal SIGSEGV, Segmentation fault.
          [Switching to Thread 8192 (LWP 1069)]
          0x00000000 in ?? ()
          (gdb) bt
          #0 0x00000000 in ?? ()
          #1 0x40031fd2 in PaintCommandWidget () from /usr/X11R6/lib/libXaw3d.so.7
          #2 0x40031e87 in Redisplay () from /usr/X11R6/lib/libXaw3d.so.7
          #3 0x400badea in _XtEventInitialize () from /usr/X11R6/lib/libXt.so.6
          #4 0x400bab7d in XtDispatchEventToWidget () from /usr/X11R6/lib/libXt.so.6
          #5 0x400ba915 in XtDispatchEventToWidget () from /usr/X11R6/lib/libXt.so.6
          #6 0x400bb18d in _XtOnGrabList () from /usr/X11R6/lib/libXt.so.6
          #7 0x400bb4df in XtDispatchEvent () from /usr/X11R6/lib/libXt.so.6
          #8 0x400bba04 in XtAppMainLoop () from /usr/X11R6/lib/libXt.so.6
          #9 0x0806e880 in ui_main (argc=1, argv=0x80ac413) at gui_main.c:464
          #10 0x0804d77f in main (argc=1, argv=0xbffff9b4) at civclient.c:228
          #11 0x420158d4 in __libc_start_main () from /lib/i686/libc.so.6


          and civclient -d 3:

          [ghost101@ghost ghost101]$ civclient -d 3
          3: log started
          3: USER username is ghost101
          3: HOME is /home/ghost101
          3: settings file is /home/ghost101/.civclientrc
          3: Booting help texts
          3: Data path component (0): .
          3: Data path component (1): data
          3: Data path component (2): /home/ghost101/.freeciv
          3: Data path component (3): /usr/local/share/freeciv
          3: Reading file "/usr/local/share/freeciv/helpdata.txt"
          3: Booted help texts ok
          3: tilespec file is /usr/local/share/freeciv/trident.tilespec
          3: Reading file "/usr/local/share/freeciv/trident.tilespec"
          3: tile sizes 30x30, 3030 unit, 1520 small
          3: finished reading /usr/local/share/freeciv/trident.tilespec
          3: Initializing sound using stdsounds...
          3: Could not find readable file "stdsounds.soundspec" in data path.
          1: Audio .spec-Datei 'stdsounds' nicht gefunden.
          1: Für Audio muß ein Soundset heruntergeladen werden!
          1: Soundsets gibt es unter <ftp://ftp.freeciv.org/freeciv/contrib/sounds/sets>.
          1: Audio abgeschaltet. Weiter.
          3: Neither of tags music_start or (null) found
          Error: Can't open display: 3


          i hope you could find the probem.

          thanks for your help

          Comment


          • #6
            Originally posted by Per
            Please start the freeciv client with gdb, for example in this way

            gdb client/civclient

            (or replace client/civclient with whatever path you have to civclient) then type "run". When it segfaults, type "bt" and post the results.
            I am also getting a Segmentation fault. I compiled Freeciv 1.14.0 under X11 (0.1, XFree86 4.2.1) on Mac OS X 10.2.3.

            The segfault only happens when I try to build a city. So long as I just move my units around, things seem to be fine.

            Code:
            Program received signal EXC_BAD_ACCESS, Could not access memory.
            0x00022f8c in create_city_dialog (pcity=0x24, make_modal=0) at citydlg.c:1053
            1053      XSetWMProtocols(display, XtWindow(pdialog->shell), &wm_delete_window, 
            1);
            (gdb) bt
            #0  0x00022f8c in create_city_dialog (pcity=0x24, make_modal=0) at citydlg.c:105
            3
            #1  0x00021d98 in popup_city_dialog (pcity=0x4d87f0, make_modal=0) at citydlg.c:
            408
            #2  0x00012b8c in handle_city_packet_common (pcity=0x4d87f0, is_new=6293800, pop
            up=1, investigate=1) at packhand.c:495
            #3  0x000129a4 in handle_city_info (packet=0x4e5290) at packhand.c:450
            #4  0x00004e64 in handle_packet_input (packet=0x4e5290, type=2101400) at civclie
            nt.c:299
            #5  0x000088c8 in input_from_server (fd=0) at clinet.c:325
            #6  0x96476d3c in DoOtherSources ()
            #7  0x964770c4 in XtAppNextEvent ()
            #8  0x9646dc7c in XtAppMainLoop ()
            #9  0x0001e3b0 in ui_main (argc=1, argv=0x201098) at gui_main.c:464
            #10 0x00004c1c in main (argc=1, argv=0xbffffe0c) at civclient.c:228
            #11 0x00002970 in _start (argc=1, argv=0xbffffe0c, envp=0xbffffe14) at /SourceCa
            che/Csu/Csu-45/crt.c:267
            #12 0x000027f0 in start ()

            Comment


            • #7
              afaik this is a known - and fixed - bug in the Xaw client. try compiling the GTK+ client ...

              Comment

              Working...
              X