[Wesnoth-bugs] [bug #25086] bunch of problems with (almost) empty maps; UB/hang/crash when terminating

2016-11-07 Thread Charles Dang
Update of bug #25086 (project wesnoth):

 Open/Closed:Open => Closed 


___

Reply to this item at:

  

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


___
Wesnoth-bugs mailing list
Wesnoth-bugs@gna.org
https://mail.gna.org/listinfo/wesnoth-bugs


[Wesnoth-bugs] [bug #25086] bunch of problems with (almost) empty maps; UB/hang/crash when terminating

2016-09-20 Thread Daniel
Update of bug #25086 (project wesnoth):

  Status:None => Fixed  

___

Follow-up Comment #2:

Most of hese issues were dressed in
https://github.com/wesnoth/wesnoth/commit/4d0fbc1d4e5246066e5f4fbb02a011a1f91ca8a2.
please file a new bugreport if there are things left.

___

Reply to this item at:

  

___
  Nachricht gesendet von/durch Gna!
  http://gna.org/


___
Wesnoth-bugs mailing list
Wesnoth-bugs@gna.org
https://mail.gna.org/listinfo/wesnoth-bugs


[Wesnoth-bugs] [bug #25086] bunch of problems with (almost) empty maps; UB/hang/crash when terminating

2016-09-20 Thread Daniel
Follow-up Comment #1, bug #25086 (project wesnoth):

The crashes mostlikeley happen because you have no [side]s, not becasue te map
is so small, will investigate this.

___

Reply to this item at:

  

___
  Nachricht gesendet von/durch Gna!
  http://gna.org/


___
Wesnoth-bugs mailing list
Wesnoth-bugs@gna.org
https://mail.gna.org/listinfo/wesnoth-bugs


[Wesnoth-bugs] [bug #25086] bunch of problems with (almost) empty maps; UB/hang/crash when terminating

2016-09-20 Thread Matthias Krüger
URL:
  

 Summary: bunch of problems with (almost) empty maps;
UB/hang/crash when terminating
 Project: Battle for Wesnoth
Submitted by: matthiaskrgr
Submitted on: Tue 20 Sep 2016 01:10:35 PM UTC
Category: Bug
Severity: 2 - Minor
Priority: 5 - Normal
  Item Group: Multiplayer
  Status: None
 Privacy: Public
 Assigned to: None
Originator Email: 
 Open/Closed: Open
 Discussion Lock: Any
 Release: git
Operating System: linux

___

Details:

While trying to crash the game, I used a plain map from the editor which I
resized to 1x1, the map looked like this:

Gg, Gg, Gg
Gg, Gg, Gg
Gg, Gg, Gg


and loaded tried to start a multiplayer match on it.

There was some UB

/usr/include/c++/6.1.1/bits/stl_vector.h:796:41: runtime error: reference
binding to null pointer of type 'const struct value_type'
/home/matthias/vcs/github/wesnoth/src/units/drawer.cpp:48:33: runtime error:
reference binding to null pointer of type 'const struct team'
/usr/include/c++/6.1.1/bits/stl_vector.h:796:41: runtime error: reference
binding to null pointer of type 'const struct value_type'
/home/matthias/vcs/github/wesnoth/src/units/drawer.cpp:48:33: runtime error:
reference binding to null pointer of type 'const struct team'
/usr/include/c++/6.1.1/bits/stl_vector.h:781:41: runtime error: reference
binding to null pointer of type 'struct value_type'
/home/matthias/vcs/github/wesnoth/src/playsingle_controller.cpp:623:65:
runtime error: reference binding to null pointer of type 'const struct team'
20160920 15:05:03 error engine: Playing game with 0 teams.


and the game appeared to have locked up.
The UI was updating but it didn't react to any clicks.
When I ctrl+c'ed it in the terminal, a heap use after free showed up (see
logs).





___

File Attachments:


---
Date: Tue 20 Sep 2016 01:10:35 PM UTC  Name: empty_map_ub_crash.log  Size:
42kB   By: matthiaskrgr


---
Date: Tue 20 Sep 2016 01:10:35 PM UTC  Name: empty.map  Size: 33B   By:
matthiaskrgr



___

Reply to this item at:

  

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


___
Wesnoth-bugs mailing list
Wesnoth-bugs@gna.org
https://mail.gna.org/listinfo/wesnoth-bugs