Comment 14 for bug 1025014

Revision history for this message
Jürgen Kosel (juergen-kosel) wrote :

Hello,

I have now recompiled widelands without the debian patches. But with the following modifications:

bzr diff
=== modified file 'src/logic/cmd_queue.cc'
--- src/logic/cmd_queue.cc 2012-02-15 21:25:34 +0000
+++ src/logic/cmd_queue.cc 2012-07-25 16:23:19 +0000
@@ -114,6 +114,7 @@
   std::priority_queue<cmditem> & current_cmds = m_cmds[game_time_var % CMD_QUEUE_BUCKET_SIZE];

   while (current_cmds.size()) {
+ assert(!current_cmds.empty());
    Command & c = *current_cmds.top().cmd;
    if (game_time_var < c.duetime())
     break;

=== modified file 'src/main.cc'
--- src/main.cc 2012-02-15 21:25:34 +0000
+++ src/main.cc 2012-07-25 17:01:03 +0000
@@ -36,6 +36,8 @@
 #include <fcntl.h>
 #endif

+#include <unistd.h>
+
 using std::cerr;
 using std::endl;
 using std::flush;

Also without the Debian patches, the segfault occurs!

Greetings
  Juergen