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
1 guest & no users online
10
points ]
 (1 vote)
Created 2018-02-13 11:00
1 week 3 days ago
18
points ]
 (2 votes)
Created 2012-08-30 04:30
5 years 25 weeks ago
27
points ]
 (3 votes)
Created 2017-06-22 03:17
35 weeks 2 days ago
Created 2017-09-18 17:38
22 weeks 4 days ago
29
points ]
 (3 votes)
Created 2018-01-11 11:11
6 weeks 1 day ago
nopnotme
3
points ]
 (2 votes)
Created 2017-09-29 22:12
21 weeks 5 hours ago
2
points ]
 (1 vote)
Created 2017-09-29 22:03
21 weeks 5 hours ago
15
points ]
 (2 votes)
Created 2017-11-20 13:55
13 weeks 4 days ago
9
points ]
 (1 vote)
Created 2017-11-23 23:59
13 weeks 1 day ago
nopnotme
1
 point ]
 (1 vote)
Created 2017-09-29 21:59
21 weeks 5 hours ago
nopnotme
19
points ]
 (2 votes)
Created 2017-09-29 21:56
21 weeks 5 hours ago
nopnotme
9
points ]
 (1 vote)
Created 2017-09-29 21:52
21 weeks 5 hours ago
28
points ]
 (4 votes)
Created 2017-09-17 12:33
22 weeks 5 days ago
DeathStarPC
Created 2017-09-11 03:47
23 weeks 4 days ago
10
points ]
 (1 vote)
Created 2016-07-28 12:06
1 year 30 weeks ago
10
points ]
 (1 vote)
Created 2017-09-12 03:37
23 weeks 3 days ago
20
points ]
 (3 votes)
Created 2010-03-04 23:30
7 years 51 weeks ago
DeathStarPC
Created 2017-09-11 03:32
23 weeks 4 days ago
Created 2017-04-24 15:32
43 weeks 4 days ago
Created 2017-04-15 03:38
44 weeks 6 days ago
Who's new
  • arCABAL
  • Flitzpiepe
  • M16
  • theradical
  • torben