[Freeciv-Dev] [bug #24625] Segfault on starting game (when adding text to bottom of viewport of scrolling window?)

2016-11-05 Thread Jacob Nevins
Update of bug #24625 (project freeciv):

  Status:None => Duplicate  
 Open/Closed:Open => Closed 


___

Reply to this item at:

  

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


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


[Freeciv-Dev] [bug #24625] Segfault on starting game (when adding text to bottom of viewport of scrolling window?)

2016-09-27 Thread Jacob Nevins
Follow-up Comment #1, bug #24625 (project freeciv):

See also probable duplicate bug #25118.

___

Reply to this item at:

  

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


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


[Freeciv-Dev] [bug #24625] Segfault on starting game (when adding text to bottom of viewport of scrolling window?)

2016-04-30 Thread Jacob Nevins
URL:
  

 Summary: Segfault on starting game (when adding text to
bottom of viewport of scrolling window?)
 Project: Freeciv
Submitted by: jtn
Submitted on: Sat 30 Apr 2016 02:20:48 PM BST
Category: client-sdl2
Severity: 3 - Normal
Priority: 5 - Normal
  Status: None
 Assigned to: None
Originator Email: 
 Open/Closed: Open
 Release: S2_6 r32524
 Discussion Lock: Any
Operating System: GNU/Linux
 Planned Release: 2.6.0, 3.0.0

___

Details:

Tried the sdl2-client for the first time in a while. Got a segfault when
starting a spawned server.

From the segfault location and visually, I think it might happen when the text
in the chat window reaches the bottom and hence scrolling has to be enabled?
(Perhaps related to bug #24401?)


#0  create_surf_with_format (pf=0x0, width=0, height=0, flags=0) at
../../../client/gui-sdl2/graphics.c:364
surf = 
#1  0x004f6c2f in crop_rect_from_surface (pSource=0x2f25b80,
pRect=pRect@entry=0x7ffd5d329840) at ../../../client/gui-sdl2/graphics.c:225
pNew = 
#2  0x00463673 in create_icon_from_theme (pIcon_theme=,
state=) at ../../../client/gui-sdl2/widget_icon.c:306
src = {x = 0, y = 0, w = 0, h = 0}
#3  0x00460b54 in redraw_tibutton (pTIButton=0x31640f0) at
../../../client/gui-sdl2/widget_button.c:239
iRet = 
pIcon = 
pCopy_Of_Icon_Theme = 
pTIButton = 0x31640f0
iRet = 
#4  0x0045fd4c in widget_redraw (pWidget=0x31640f0) at
../../../client/gui-sdl2/widget.h:274
No locals.
#5  redraw_group (pBeginGroupWidgetList=0x3164360,
pEndGroupWidgetList=, add_to_update=add_to_update@entry=1) at
../../../client/gui-sdl2/widget.c:740
count = 64
pTmpWidget = 0x31640f0
#6  0x004d761c in add_to_chat_list (n_alloc=35, msg=)
at ../../../client/gui-sdl2/chatline.c:494
pstr = 0x91364f0
pBuf = 0x939d630
pWindow = 0x52ca3e0
#7  real_output_window_append (astring=, tags=,
conn_id=) at ../../../client/gui-sdl2/chatline.c:399
n = 35
buffer = 
#8  0x004709c3 in output_window_event
(plain_text=plain_text@entry=0x7ffd5d329960 "jtn: 'set traitdistribution
\"EVEN\"'", tags=0x52c6ef0, conn_id=conn_id@entry=-1) at
../../client/chatline_common.c:170
No locals.
#9  0x00473b6a in handle_event
(featured_text=featured_text@entry=0x939d010 "jtn: 'set traitdistribution
\"EVEN\"'", ptile=0x0, event=E_SETTING, turn=0, phase=,
conn_id=) at ../../client/climisc.c:1050
plain_text = "jtn: 'set traitdistribution \"EVEN\"'\000l\"
(WRAPX|WRAPY|ISO|HEX).[/c]", '\000' ...
tags = 0x52c6ef0
where = 
fallback_needed = false
shown = false
__FUNCTION__ = "handle_event"
#10 0x004a6185 in handle_chat_msg (packet=packet@entry=0x939d010) at
../../client/packhand.c:1337
No locals.
#11 0x004aebbd in client_handle_packet
(type=type@entry=PACKET_CHAT_MSG, packet=packet@entry=0x939d010) at
../../client/packhand_gen.c:98
No locals.
#12 0x0046e6c8 in client_packet_input (packet=packet@entry=0x939d010,
type=25) at ../../client/client_main.c:760
__FUNCTION__ = "client_packet_input"
#13 0x00475a43 in input_from_server (fd=) at
../../client/clinet.c:422
type = PACKET_CHAT_MSG
packet = 0x939d010
nb = 
__FUNCTION__ = "input_from_server"
#14 0x0043d6fb in gui_event_loop (pData=pData@entry=0x0,
loop_action=loop_action@entry=0x0,
key_down_handler=key_down_handler@entry=0x43cf70 ,
key_up_handler=key_up_handler@entry=0x43cc00 ,
textinput_handler=textinput_handler@entry=0x0,
mouse_button_down_handler=mouse_button_down_handler@entry=0x43d190
,
mouse_button_up_handler=mouse_button_up_handler@entry=0x43cee0
,
mouse_motion_handler=mouse_motion_handler@entry=0x43cc20
) at ../../../client/gui-sdl2/gui_main.c:621
ID = 0
tv = {tv_sec = 0, tv_usec = 9996}
civfdset = {fds_bits = {2048, 0 }}
t_current = 
t_last_unit_anim = 3663
t_last_map_scrolling = 3663
real_timer_next_call = 4497
result = 1
#15 0x0043de51 in ui_main (argc=argc@entry=1,
argv=argv@entry=0x7ffd5d32a578) at ../../../client/gui-sdl2/gui_main.c:996
__Net_User_Event = {type = 32768, common = {type = 32768, timestamp =
3663}, window = {type = 32768, timestamp = 3663, windowID = 0, event = 1
'\001', padding1 = 0 '\000', padding2 = 0 '\000', padding3 = 0 '\000', data1 =
0, data2 = 0}, key = {type = 32768, timestamp = 3663, windowID = 0, state = 1
'\001', repeat = 0 '\000', padding2 = 0 '\000', padding3 = 0 '\000', keysym =
{scancode = SDL_SCANCODE_UNKNOWN, sym = 0, mod = 0, unused = 0}}, edit = {type
= 32768, timestamp = 3663, windowID = 0, text = "\001", '\000'