Complete.Org: Mailing Lists: Archives: freeciv-dev: September 2005:
[Freeciv-Dev] (PR#13879) pubserver 2.0 crash in DB code
Home

[Freeciv-Dev] (PR#13879) pubserver 2.0 crash in DB code

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: [Freeciv-Dev] (PR#13879) pubserver 2.0 crash in DB code
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 5 Sep 2005 17:54:12 -0700
Reply-to: bugs@xxxxxxxxxxx

<URL: http://bugs.freeciv.org/Ticket/Display.html?id=13879 >

This crash is in the database code that isn't available in CVS.  In fact 
I'm not sure it's publically available at all (probably a violation of 
the GPL).  Anyway, I can't fix it.

-jason


-------- Original Message --------
From: - Mon Sep  5 20:50:54 2005
X-Account-Key: account1
X-UIDL: GmailId10628e7466b93caf
X-Mozilla-Status: 0001
X-Mozilla-Status2: 10000000
X-Gmail-Received: 0243863f2b9a13185a14cfe3c9ded50c360ae558
Delivered-To: jdorje@xxxxxxxxx
Received: by 10.70.56.8 with SMTP id e8cs101757wxa;        Mon, 5 Sep 
2005 17:47:57 -0700 (PDT)
Received: by 10.38.11.65 with SMTP id 65mr376394rnk;        Mon, 05 Sep 
2005 17:47:57 -0700 (PDT)
Return-Path: <freeciv-dev-bounce@xxxxxxxxxxx>
Received: from freeciv.freeciv.org (www.freeciv.org [207.158.49.130]) 
      by mx.gmail.com with ESMTP id m36si1089427rnd.2005.09.05.17.47.54; 
        Mon, 05 Sep 2005 17:47:57 -0700 (PDT)
Received-SPF: pass (gmail.com: best guess record for domain of 
freeciv-dev-bounce@xxxxxxxxxxx designates 207.158.49.130 as permitted 
sender)
Received: from glockenspiel.complete.org (glockenspiel.complete.org 
[69.10.152.57]) by freeciv.freeciv.org (8.12.10/8.12.10) with ESMTP id 
j860lqxB003089; Mon, 5 Sep 2005 17:47:52 -0700
Received: from localhost ([127.0.0.1] helo=glockenspiel)        by 
glockenspiel.complete.org with esmtp    (Exim 4.50)     id 1ECRbM-0007Jc-Of; 
Mon, 05 Sep 2005 19:46:26 -0500
Received: with ECARTIS (v1.0.0; list freeciv-dev); Mon, 05 Sep 2005 
19:46:08 -0500 (CDT)
Received: from pubserver.freeciv.org ([207.158.49.131]) by 
glockenspiel.complete.org with esmtps   (with 
TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24)    (No TLS peer certificate)       (Exim 
4.50)   id 1ECRb8-0007JV-R3     for freeciv-dev@xxxxxxxxxxx; Mon, 05 Sep 2005 
19:46:07 -0500
Received: from pubserver.freeciv.org (localhost.localdomain 
[127.0.0.1])    by pubserver.freeciv.org (8.12.8/8.12.8) with ESMTP id 
j860jg2R012834  for <freeciv-dev@xxxxxxxxxxx>; Mon, 5 Sep 2005 17:45:43 -0700
Received: (from freeciv@localhost)      by pubserver.freeciv.org 
(8.12.8/8.12.8/Submit) id j860jghq012707        for freeciv-dev@xxxxxxxxxxx; 
Mon, 5 Sep 2005 17:45:42 -0700
Date: Mon, 5 Sep 2005 17:45:41 -0700
From: freeciv@xxxxxxxxxxxxxxxxxxxxx
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] civserver crashed: 
http://pubserver.freeciv.org/games/479353
Message-ID: <20050905174541.A12656@xxxxxxxxxxxxxxxxxxxxx>
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="2fHTh5uZTiUOsy+g"
Content-Disposition: inline
User-Agent: Mutt/1.2.5.1i
X-Spam-Status: No (score 0.2): AWL=0.001, NO_REAL_NAME=0.178
X-Virus-Scanned: by Exiscan on glockenspiel.complete.org at Mon, 05 Sep 
2005 19:46:07 -0500
X-archive-position: 1848
X-ecartis-version: Ecartis v1.0.0
Sender: freeciv-dev-bounce@xxxxxxxxxxx
Errors-to: freeciv-dev-bounce@xxxxxxxxxxx
X-original-sender: freeciv@xxxxxxxxxxxxxxxxxxxxx
Precedence: bulk
List-help: <mailto:ecartis@xxxxxxxxxxx?Subject=help>
List-unsubscribe: 
<mailto:freeciv-dev-request@xxxxxxxxxxx?Subject=unsubscribe>
List-software: Ecartis version 1.0.0
List-Id: <freeciv-dev.freeciv.org>
X-List-ID: <freeciv-dev.freeciv.org>
List-subscribe: <mailto:freeciv-dev-request@xxxxxxxxxxx?Subject=subscribe>
List-owner: <mailto:freeciv-dev-admins@xxxxxxxxxxx>
List-post: <mailto:freeciv-dev@xxxxxxxxxxx>
X-list: freeciv-dev
X-Spam-Status: No (score 0.2): AWL=0.001, NO_REAL_NAME=0.178
X-Virus-Scanned: by Exiscan on glockenspiel.complete.org at Mon, 05 Sep 
2005 19:46:26 -0500



# examining core.4706 in /games/479353/. ...
# using $FREECIV_PATH 
:/home/freeciv/.freeciv/code/installed/cvs/S2_0/2005-09-06_16.00+mintimeout+original_gamelog/share/freeciv
# running: (echo bt full; echo quit; exec yes '') | gdb  
/home/freeciv/.freeciv/code/installed/cvs/S2_0/2005-09-06_16.00+mintimeout+original_gamelog/share/freeciv/../../bin/civserver
 core.4706
GNU gdb Red Hat Linux (5.2-2)
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"...
Core was generated by 
`/home/freeciv/.freeciv/code/installed/cvs/S2_0/2005-09-06_16.00+mintimeout+orig'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libm.so.6...done.
Loaded symbols for /lib/libm.so.6
Reading symbols from /usr/lib/libz.so.1...done.
Loaded symbols for /usr/lib/libz.so.1
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /usr/lib/gconv/ISO8859-1.so...done.
Loaded symbols for /usr/lib/gconv/ISO8859-1.so
Reading symbols from /lib/libnss_files.so.2...done.
Loaded symbols for /lib/libnss_files.so.2
Reading symbols from /lib/libnss_nisplus.so.2...done.
Loaded symbols for /lib/libnss_nisplus.so.2
Reading symbols from /lib/libnsl.so.1...done.
Loaded symbols for /lib/libnsl.so.1
Reading symbols from /lib/libnss_dns.so.2...done.
Loaded symbols for /lib/libnss_dns.so.2
Reading symbols from /lib/libresolv.so.2...done.
Loaded symbols for /lib/libresolv.so.2
#0  0x4009c1da in vfprintf () from /lib/libc.so.6
(gdb) #0  0x4009c1da in vfprintf () from /lib/libc.so.6
No symbol table info available.
#1  0x400b64d1 in vsprintf () from /lib/libc.so.6
No symbol table info available.
#2  0x400a40e5 in sprintf () from /lib/libc.so.6
No symbol table info available.
#3  0x081018b5 in user_db_save (pconn=0x3932322e) at user_db.c:174
        buffer = "insert into loginlog (name, logintime, address, succeed) 
values ('", '6' <repeats 40 times>, "'), NULL, unix_timestamp(), 
unix_timestamp(),'201.14.2"
        sock = (MYSQL *) 0xbfffd220
        mysql = {net = {vio = 0x82bc2e0, fd = 6, fcntl = 0, 
    buff = 0x82bfa00 "", buff_end = 0x82c1a00 "", write_pos = 0x82bfa00 "", 
    read_pos = 0x82bfa00 "", last_error = '\0' <repeats 199 times>, 
    last_errno = 0, max_packet = 8192, timeout = 30, pkt_nr = 2, 
    error = 0 '\0', return_errno = 0 '\0', compress = 0 '\0', 
    no_send_ok = 0 '\0', remain_in_buf = 0, length = 0, buf_length = 0, 
    where_b = 0, return_status = 0x0, reading_or_writing = 0 '\0', 
    save_char = 0 '\0'}, connector_fd = 0x0, host = 0x82c1a20 "freeciv-int", 
  user = 0x82be180 "pubserver", passwd = 0x82c1a58 "freeciv", 
  unix_socket = 0x0, server_version = 0x82c1a38 "3.23.58", 
  host_info = 0x82c1a08 "freeciv-int via TCP/IP", info = 0x0, 
  db = 0x82c1a68 "pubserver", port = 3306, client_flag = 8205, 
  server_capabilities = 8236, protocol_version = 10, field_count = 0, 
  server_status = 2, thread_id = 253461, affected_rows = 1, insert_id = 8910, 
  extra_info = 0, packet_length = 0, status = MYSQL_STATUS_READY, 
  fields = 0x0, field_alloc = {free = 0x0, used = 0x0, pre_alloc = 0x0, 
    min_malloc = 32, block_size = 8164, error_handler = 0}, free_me = 0 '\0', 
  reconnect = 1 '\001', options = {connect_timeout = 0, client_flag = 0, 
    compress = 0 '\0', named_pipe = 0 '\0', port = 0, host = 0x0, 
    init_command = 0x0, user = 0x0, password = 0x0, unix_socket = 0x0, 
    db = 0x0, my_cnf_file = 0x0, my_cnf_group = 0x0, charset_dir = 0x0, 
    charset_name = 0x0, use_ssl = 0 '\0', ssl_key = 0x0, ssl_cert = 0x0, 
    ssl_ca = 0x0, ssl_capath = 0x0}, scramble_buff = "[7=m1GSL", 
  charset = 0x814e7d8, server_language = 8}
#4  0x34312e31 in ?? ()
No symbol table info available.
(gdb) [... 0 lines skipped ...]



[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#13879) pubserver 2.0 crash in DB code, Jason Short <=