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

                 Summary: Segmentation fault in send_packet_tile_info_100 ->
dio_put_memory_json
                 Project: Freeciv
            Submitted by: andreasr
            Submitted on: Sun 24 Jan 2016 05:40:46 PM UTC
                Category: freeciv-web
                Severity: 3 - Normal
                Priority: 5 - Normal
                  Status: None
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
                 Release: trunk
         Discussion Lock: Any
        Operating System: GNU/Linux
         Planned Release: 

    _______________________________________________________

Details:

Hi!  

I'm getting a segmentation fault in Freeciv-web, in the Freeciv C server. This
is from production with Freeciv svn revision 30535.
The crash seems to be in hashtable.c called from dio_put_memory_json and
send_packet_tile_info_100 and update_environmental_upset.

Here is the backtrace from the core dump:

Core was generated by `freeciv-web --debug=1 --port 6023 -q 20 --Announce none
-                                                                             
                                                     e -m -M http://localho'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  bucket_is_empty (bucket=bucket@entry=0xf0, hashtable=0x7f54b8030140,
    hashtable@entry=0x66403e) at hashtable.c:57
57      hashtable.c: No such file or directory.
Traceback (most recent call last):
  File
"/usr/share/gdb/auto-load/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.19-gd     
                                                                              
                                              b.py", line 63, in <module>
    from libstdcxx.v6.printers import register_libstdcxx_printers
ImportError: No module named 'libstdcxx'
(gdb) bt full
#0  bucket_is_empty (bucket=bucket@entry=0xf0, hashtable=0x7f54b8030140,
    hashtable@entry=0x66403e) at hashtable.c:57
No locals.
#1  hashtable_find_pair (hashtable=hashtable@entry=0x7f54b8030140,
    bucket=bucket@entry=0xf0, key=key@entry=0x66403e "extras",
    hash=hash@entry=1046743727) at hashtable.c:81
        list = <optimized out>
        pair = <optimized out>
#2  0x00007f54c63ef7c0 in hashtable_set (hashtable=0x7f54b8030140,
    key=0x66403e "extras", serial=9, value=value@entry=0x7f54bbfffee0)
    at hashtable.c:225
        pair = <optimized out>
        bucket = 0xf0
        hash = 1046743727
        index = 15
#3  0x00007f54c63f4556 in json_object_set_new_nocheck (json=<optimized out>,
    key=<optimized out>, value=0x7f54bbfffee0) at value.c:118
        object = <optimized out>
#4  0x000000000060e84f in dio_put_memory_json ()
No symbol table info available.
#5  0x0000000000591ec0 in send_packet_tile_info_100 ()
No symbol table info available.
#6  0x000000000048940e in send_tile_info.part.7.constprop ()
No symbol table info available.
#7  0x000000000048e29e in check_terrain_change ()
No symbol table info available.
#8  0x000000000048e717 in climate_change ()
No symbol table info available.
#9  0x000000000048e782 in global_warming ()
No symbol table info available.
#10 0x000000000040ca28 in update_environmental_upset ()
No symbol table info available.
#11 0x000000000041277e in srv_main ()
No symbol table info available.
#12 0x0000000000407e89 in main ()
No symbol table info available.





    _______________________________________________________

Reply to this item at:

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

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


_______________________________________________
Freeciv-dev mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to