URL:
  <http://gna.org/bugs/?14652>

                 Summary: assert(message_index >= 0 && message_index <
messages_total) failed
                 Project: Freeciv
            Submitted by: None
            Submitted on: Saturday 10/31/2009 at 20:38 CET
                Category: client-gtk-2.0
                Severity: 3 - Normal
                Priority: 5 - Normal
                  Status: None
             Assigned to: None
        Originator Email: m...@morous.org
             Open/Closed: Open
                 Release: 
         Discussion Lock: Any
        Operating System: None
         Planned Release: None

    _______________________________________________________

Details:

freeciv version: 2.1.9
os: Slackware 13.0
arch: i686

Assertion (message_index >= 0 && message_index < messages_total) failed at
line messagewin_common.c:165.

I think the bug has occurred when I clicked in a message listbox before the
turn really started. I guess the click was being processed too late so there
was mismatch in message listbox contents in a time when I was clicking
(messages from previous turn) and when it was being processed. 

I was having some crashes (hopefuly the same ones) of freeciv earlier, so I
recompiled with options -g -O0 and I was running under gdb:

(gdb) bt
#0  0xb75b3456 in raise () from /lib/libc.so.6
#1  0xb75b4e08 in abort () from /lib/libc.so.6
#2  0xb75ac3f0 in __assert_fail () from /lib/libc.so.6
#3  0x08075665 in get_message (message_index=138) at messagewin_common.c:165
#4  0x081413a5 in meswin_selection_callback (selection=0xa212dc0, data=0x0)
    at messagewin.c:294
#5  0xb793e8c4 in g_cclosure_marshal_VOID__VOID () from
/usr/lib/libgobject-2.0.so.0
#6  0xb793117b in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#7  0xb794550d in ?? () from /usr/lib/libgobject-2.0.so.0
#8  0x0a148108 in ?? ()
#9  0x00000000 in ?? ()
(gdb) p message_index
$3 = 138
(gdb) p messages_total
$4 = 101

Note I was the Slackware running in VirtualBox so I've saved the machine
state with the gdb session running, so if you need to know some  variable
value or something, feel free to ask.





    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?14652>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to