View Issue Details

IDProjectCategoryView StatusLast Update
0003428Spring engineGeneralpublic2013-01-30 22:05
Reporterabma Assigned Toabma  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version91.0.1+git 
Fixed in Version92.0 
Summary0003428: osx compile-warnings: OBJParser.cpp & S3OParser.cpp: warning: invalid access to non-static data member ...
Descriptionhttp://buildbot.springrts.com/builders/quick-macosx/builds/1698/steps/buildConfig/logs/warnings%20%28192%29
Additional Information/buildbot/springrts/quick-macosx/build/rts/Rendering/Models/OBJParser.cpp:530: warning: invalid access to non-static data member 'float3::<anonymous union>::<anonymous struct>::x' of NULL object
TagsNo tags attached.
Checked infolog.txt for Errors

Activities

Kloot

2013-01-30 18:46

developer   ~0009670

blame zerver for a972ed080ce76cd82d853d0031278e6cd3a7129c

abma

2013-01-30 19:05

administrator   ~0009671

https://github.com/spring/spring/commit/a972ed080ce76cd82d853d0031278e6cd3a7129c

zerver

2013-01-30 21:30

reporter   ~0009673

Hm, a vector.reserve(vector.size()+1) is maybe enough to prevent a crash?

cleanrock

2013-01-30 21:36

reporter   ~0009674

Is there a way to reproduce this crash so we can know for sure what was/is wrong ?
(I get the impression that the commit/fix is a guess and not really tested)

abma

2013-01-30 21:56

administrator   ~0009675

https://github.com/spring/spring/commit/61cc6c46e2ed631c289177f926326e9fb3005a39

zerver

2013-01-30 22:04

reporter   ~0009676

cleanrock: No, it is 100% clear why it crashes. glBufferData reads outside the vector bounds, because the read may start at a non-zero offset of the first element, depending on which member is referenced using the address-of operator (&).

https://github.com/spring/spring/commit/73213ba3751d7caeecae36b45e45004eb96ffc5c

Issue History

Date Modified Username Field Change
2013-01-30 17:30 abma New Issue
2013-01-30 17:31 abma Summary osx compile-warnings: OBJParser.cpp:530: warning: invalid access to non-static data member ... => osx compile-warnings: OBJParser.cpp & S3OParser.cpp: warning: invalid access to non-static data member ...
2013-01-30 18:46 Kloot Note Added: 0009670
2013-01-30 19:05 abma Note Added: 0009671
2013-01-30 21:30 zerver Note Added: 0009673
2013-01-30 21:36 cleanrock Note Added: 0009674
2013-01-30 21:56 abma Note Added: 0009675
2013-01-30 21:56 abma Status new => resolved
2013-01-30 21:56 abma Resolution open => fixed
2013-01-30 21:56 abma Assigned To => abma
2013-01-30 22:04 zerver Note Added: 0009676
2013-01-30 22:04 zerver Status resolved => feedback
2013-01-30 22:04 zerver Resolution fixed => reopened
2013-01-30 22:05 zerver Status feedback => resolved
2013-01-30 22:05 zerver Fixed in Version => 92.0
2013-01-30 22:05 zerver Resolution reopened => fixed