Spring is running in SMP
Moderator: Moderators
Re: Spring is running in SMP
If this helps at all, I can batch run alot of my replays i didnt play on MT build to run on MT_debug build and upload the crashes.
Did one:
http://buildbot.eat-peet.net/spring/sta ... 07924.html
Edit: this is proving quite successful:
http://buildbot.eat-peet.net/spring/sta ... 10249.html
Edit 2: http://buildbot.eat-peet.net/spring/sta ... 10830.html
4: http://buildbot.eat-peet.net/spring/sta ... 11025.html
5: http://buildbot.eat-peet.net/spring/sta ... 11287.html
6: http://buildbot.eat-peet.net/spring/sta ... 11542.html
7. http://buildbot.eat-peet.net/spring/sta ... 11938.html
Did one:
http://buildbot.eat-peet.net/spring/sta ... 07924.html
Edit: this is proving quite successful:
http://buildbot.eat-peet.net/spring/sta ... 10249.html
Edit 2: http://buildbot.eat-peet.net/spring/sta ... 10830.html
4: http://buildbot.eat-peet.net/spring/sta ... 11025.html
5: http://buildbot.eat-peet.net/spring/sta ... 11287.html
6: http://buildbot.eat-peet.net/spring/sta ... 11542.html
7. http://buildbot.eat-peet.net/spring/sta ... 11938.html
Re: Spring is running in SMP
Thanks behe.
It may not fix these crashes, but the latest one is here:
http://springfiles.com/show_file.php?id=2237
Strangely, I don't have any crash problems at all, but ~5% of games seem to desync.
It may not fix these crashes, but the latest one is here:
http://springfiles.com/show_file.php?id=2237
Strangely, I don't have any crash problems at all, but ~5% of games seem to desync.
Re: Spring is running in SMP
Ok, but 6 of 6 replays crashed with that my previous MT exe, ill try with this new one.
Edit: crash with new exe: http://buildbot.eat-peet.net/spring/sta ... 12810.html
Another: http://buildbot.eat-peet.net/spring/sta ... 13048.html
9/9 so far, all crashes were at 2 places.
Edit: crash with new exe: http://buildbot.eat-peet.net/spring/sta ... 12810.html
Another: http://buildbot.eat-peet.net/spring/sta ... 13048.html
9/9 so far, all crashes were at 2 places.
Re: Spring is running in SMP
1. fixable
2. does stringstream use some global non thread safe "locale" object or what? anyone knows how to fix this???
2. does stringstream use some global non thread safe "locale" object or what? anyone knows how to fix this???
Re: Spring is running in SMP
it should be thread-safe iff std::allocator is thread-safe, as all the variables are local... maybe change stream initialization to the ctor form, instead of <<? (i.e. stringstream stream(dstring))
-
- Spring Developer
- Posts: 1254
- Joined: 24 Jun 2007, 08:34
Re: Spring is running in SMP
std::stringstream with std::allocator is threadsafe on all recent compilers, as long as each std::stringstream is only used from 1 thread ofc.imbaczek wrote:it should be thread-safe iff std::allocator is thread-safe, as all the variables are local... maybe change stream initialization to the ctor form, instead of <<? (i.e. stringstream stream(dstring))
Re: Spring is running in SMP
I did some googling and it seems that in the past there have been many bugs that caused stringstream to fail in heavily multithreaded situations, even if each object was only used in a single thread. I'm strongly suspecting this is something similar. Cannot see any other reason for this crash. Memory corruption is unlikely - I have two different versions crashing on the same code line with nearly identical traces.
Will do some testing...
Will do some testing...
-
- Spring Developer
- Posts: 1254
- Joined: 24 Jun 2007, 08:34
Re: Spring is running in SMP
That was in 2002, thought.
- Attachments
-
- main.cpp
- Testapp, runs fine with 4 threads.
- (528 Bytes) Downloaded 28 times
Re: Spring is running in SMP
Okay, but was your testapp compiled on buildserv?
Edit: And if the problem is related to concurrency in std::locale, maybe it is an interaction between the stringstream and something else. Therefore I will add my testing code to spring.
Edit: And if the problem is related to concurrency in std::locale, maybe it is an interaction between the stringstream and something else. Therefore I will add my testing code to spring.
Re: Spring is running in SMP
a little bit of googling shows that std::locale should be thread-safe since 2002... worth confirming, though.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=5475
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=5475
Re: Spring is running in SMP
Behe, plz tell if the MT 0.80.4.1-5 (link on the dl page) is working any better.
Re: Spring is running in SMP
1 crash and 1 freeze on 5 games speccing
- Jonny5isalivetm
- Posts: 186
- Joined: 04 Jul 2006, 02:43
Re: Spring is running in SMP
Hi Guys
Latest Build seems solid now :D
HORRAY
Widgets I have running :-
Attack AOE
Auto First Build Facing
Autoquit
Commander Name Tags
Defense Range
Health Bars
Old BA Layout
ReclaimInfo
Select n Center!
Immobile Builder
MetalMakers
RelativeMinimap
Smart Nanos
Stockpiler
Thanks to Zerver, Excellent Work!!!!!!
Latest Build seems solid now :D
HORRAY
Widgets I have running :-
Attack AOE
Auto First Build Facing
Autoquit
Commander Name Tags
Defense Range
Health Bars
Old BA Layout
ReclaimInfo
Select n Center!
Immobile Builder
MetalMakers
RelativeMinimap
Smart Nanos
Stockpiler
Thanks to Zerver, Excellent Work!!!!!!
Re: Spring is running in SMP
So far 1 crash on loading replay out of 6 games, but the crash doesnt seem related:
http://buildbot.eat-peet.net/spring/sta ... 54930.html
Looking good!
I run a fuckton of widgets, too many to list here.
http://buildbot.eat-peet.net/spring/sta ... 54930.html
Looking good!
I run a fuckton of widgets, too many to list here.
Re: Spring is running in SMP
Thanks griffith, I will fix this one. In the meanwhile you can avoid it by using less widgets. These should definitely be safe:Griffith wrote:Crash
Autoquit
Immobile Builder
MetalMakers
CoopInfo
Minimap Start boxes
Re: Spring is running in SMP
I use a lot of widgets but i don't know witch are causing the crash. I don't crash a lot with this new release (around like behe said 1 out of 6). It is much more stable thanks ! 

- Jonny5isalivetm
- Posts: 186
- Joined: 04 Jul 2006, 02:43
Re: Spring is running in SMP
bah crashed again
(((

Re: Spring is running in SMP
it did not crash for me, but again ugly freeze in first FFA game
Freezes are much harder to debug.. gah back to orginial build (which does not freeze or do it very rarely).

Re: Spring is running in SMP
Guys, if you crash, PLEASE upload the infolog.txt somewhere, its very simple for you and without it its nearly impossible to fix it.