miss_b_have | 2013-10-17 19:35
Compiler warnings and segmentation fault on Ubuntu 13.10

After upgrading Kubuntu from 13.04 to 13.10, I'm having problems compiling the latest Sauerbraten (sauerbraten-collect-edition), I get a lot of warnings like these:

shared/crypto.cpp:316:33: warning: array subscript is above array bounds [-Warray-bounds]
digit tmp = x.digits[i+dig+1];

shared/geom.h:1008:40: warning: ‘v’ may be used uninitialized in this function [-Wmaybe-uninitialized]
ivec &sub(const ivec &v) { x -= v.x; y -= v.y; z -= v.z; return *this; }
engine/octa.cpp:806:10: note: ‘v’ was declared here
ivec v[4];

It does compile, but I get segmentation fault when I try to run it.
I suspect that this is related to gcc 4.8?

Have anyone else experienced this, and if so, how did you solve it?

0
points
 (0 votes)
User login
Users on Quadropolis
2 guests & no users online
10
points ]
 (1 vote)
Created 2020-05-16 23:15
1 day 19 hours ago
Created 2020-05-14 12:56
4 days 5 hours ago
224
points ]
 (23 votes)
Created 2012-10-20 09:56
7 years 30 weeks ago
Gangler
10
points ]
 (1 vote)
Created 2020-05-12 22:59
5 days 19 hours ago
afroninja
46
points ]
 (5 votes)
Created 2020-01-15 07:47
17 weeks 5 days ago
20
points ]
 (2 votes)
Created 2020-04-29 18:35
2 weeks 5 days ago
LURKing
10
points ]
 (1 vote)
Created 2020-05-09 17:56
1 week 2 days ago
140
points ]
 (15 votes)
Created 2013-06-09 21:05
6 years 49 weeks ago
20
points ]
 (2 votes)
Created 2020-05-02 19:58
2 weeks 1 day ago
20
points ]
 (2 votes)
Created 2016-07-28 12:06
3 years 42 weeks ago
7YearBitch
20
points ]
 (2 votes)
Created 2020-03-16 20:09
8 weeks 6 days ago
70
points ]
 (7 votes)
Created 2020-01-24 22:26
16 weeks 2 days ago
40
points ]
 (4 votes)
Created 2020-01-23 12:57
16 weeks 4 days ago
30
points ]
 (4 votes)
Created 2020-01-26 14:10
16 weeks 1 day ago
170
points ]
 (17 votes)
Created 2011-09-05 14:13
8 years 36 weeks ago
Sauce
71
points ]
 (8 votes)
Created 2018-08-22 19:15
1 year 38 weeks ago
Lord Kv
160
points ]
 (16 votes)
Created 2015-03-12 14:45
5 years 9 weeks ago
45
points ]
 (6 votes)
Created 2009-08-15 13:37
10 years 39 weeks ago
MisanthropX
74
points ]
 (8 votes)
Created 2019-12-05 20:57
23 weeks 3 days ago
Redon
105
points ]
 (11 votes)
Created 2019-10-24 21:41
29 weeks 3 days ago
Who's new
  • Akari
  • LURKing
  • Antknee55
  • gmiz
  • impala97