Complete.Org: Mailing Lists: Archives: freeciv-dev: May 2004:
[Freeciv-Dev] Re: (PR#6979) too long translated string causes client cra
Home

[Freeciv-Dev] Re: (PR#6979) too long translated string causes client cra

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: ggracian@xxxxxxx, ukv1@xxxxxxx
Subject: [Freeciv-Dev] Re: (PR#6979) too long translated string causes client crash
From: "Marcelo Burda" <mburda@xxxxxxxxx>
Date: Mon, 17 May 2004 05:55:33 -0700
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=6979 >

Le dim 16/05/2004 à 18:29, Jason Short a écrit :
> <URL: http://rt.freeciv.org/Ticket/Display.html?id=6979 >
> 
> Marcelo Burda wrote:
> > <URL: http://rt.freeciv.org/Ticket/Display.html?id=6979 >
> > 
> >>[i-freeciv-lists@xxxxxxxxxxxxx - Lun. Jan. 19 11:08:11 2004]:
> >>
> >>On Sun, Jan 18, 2004 at 10:43:03AM -0800, Jason Short wrote:
> > 
> > 
> >>It isn't caused by the server but by the client. The client expands
> >>the string because of utf-8. See also PR#7226 which we discussed on
> >>IRC.
> >>
> >>The real solution is to change the code from measuring bytes to
> >>measuring characters.
> 
> Nobody has given a backtrace or any extra information needed to actually 
> find the bug.  I tried changing my locale to French but I couldn't get a 
> crash (perhaps the bug was fixed in the .po file)?
> 
> I believe that this isn't a problem of charsets or or translations. 
> It's just a bug.  Someone's copying a string without checking the 
> length.  But I don't even know where it's happening.
> 
> So, can anyone give detailed instructions on how to reproduce it? 
> Please include your exact language settings.
> 
> jason
with LANG=fr_FR@Euro in gtk-2 client only it crash all the time
after executing the start command at server 

In ddd.
Program received signal SIGABRT, Aborted.
[Switching to Thread 16384 (LWP 2525)]
0x4064ccc1 in kill () from /lib/libc.so.6
(gdb) frame 6
#6  0x080c81dd in check_strlen (str=0x8521848 "Société de commerce de
A. Smith", len=135475168, errmsg=0x8132fe0 "Translated name is too long,
truncating: %s") at shared.c:608
(gdb) frame 0

i am not sure wath you need, i use gdb(under ddd) or valagrin but if you
like say me what command i need to make a best backtrace a can make it.
see attached file


-- 
 . /  .     '    ,    .      (*)   '        `     '      `    .    
  |    ,  |   `     ,     .      ,   '  Marcelo Julián Burda      .
 /  '     \     `     \@_     '      .        '      `        '    
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

PNG image


[Prev in Thread] Current Thread [Next in Thread]