Tienbau Posted November 7, 2011 Report Share Posted November 7, 2011 [quote name='Kyp' timestamp='1320449496' post='48070'] Just to put it in perspective: [code] u32 mrand ( void ) { u32 y, a; int i; /* Refill x if exhausted */ if ( mtwist_next == N ) { mtwist_next = 0; for ( i = 0; i < N - 1; i++ ) { y = ( mtwist_x[i] & U ) | mtwist_x[i + 1] & L; a = ( y & 0x1UL ) ? A : 0x0UL; mtwist_x[i] = mtwist_x[( i + M ) % N] ^ ( y >> 1 ) ^ a; } y = ( mtwist_x[N - 1] & U ) | mtwist_x[0] & L; a = ( y & 0x1UL ) ? A : 0x0UL; mtwist_x[N - 1] = mtwist_x[M - 1] ^ ( y >> 1 ) ^ a; } y = mtwist_x[mtwist_next++]; /* Improve distribution */ y ^= (y >> 11); y ^= (y << 7) & 0x9d2c5680UL; y ^= (y << 15) & 0xefc60000UL; y ^= (y >> 18); return y; } [/code] I haven't the foggiest what this was designed to do, as I've never worked in the file where it crashed. However, the next thing under this on the stack is something about getting Hate/Threat from a mob, so its probably best if we wait it out, I suspect otherwise it'll happen again and you'll be down even longer especially given the popularity and prevalence of combat. Just so you know [b]why[/b] you're waiting. [/quote] Just FYI this is the mersenne twister fast random code. The reason it crashed was (I think) because I had a call to it from inside the sector threads. I think what was happening was that two (or more) sector threads were trying to use the code at the same time, and the array index went out of bounds due to simultaneous usage. I hadn't put a mutex on this code as mutexes are for amateurs, because there's always a better (but more time consuming) solution. Rather than mutexing this code that's meant to be fast I used a thread safe random generator instead. The mersenne twister was needed for fast loot and ore picking under the new optimised weighting system. We needed random numbers that were higher range than the range of the intrinsic 'rand()' command. I just thought it would be fun to use the mersenne twister for some hate calcs, however it turned out not to be such a good idea! fixed now. Oh and PS this isn't a stack overflow, technically it's an uninitialised data section overflow. Stack is used for local variables, whereas the twister data is allocated statically in the program's execution space, because it's declared as a global, but not initialised until it's first used (hence uninitialised data section). Link to comment Share on other sites More sharing options...
c4pta1ntr1ps Posted November 10, 2011 Report Share Posted November 10, 2011 server go splat? Link to comment Share on other sites More sharing options...
Tienbau Posted November 10, 2011 Report Share Posted November 10, 2011 scheduled restart with about 2hrs notice. Link to comment Share on other sites More sharing options...
c4pta1ntr1ps Posted November 10, 2011 Report Share Posted November 10, 2011 Ah... I wasn't online. Thx Link to comment Share on other sites More sharing options...
Tienbau Posted November 10, 2011 Report Share Posted November 10, 2011 eek, I had to do an unscheduled restart, there was a div by zero that I couldn't live patch I spotted it about a minute before the crash, was trying to live patch but the patch wouldn't go through, then I was thinking 'hmmmmmmmmm... how long before it blows??' the answer ... not long. Fixed and restarting! Link to comment Share on other sites More sharing options...
Blacklung[IS] Posted November 10, 2011 Report Share Posted November 10, 2011 00:07:50 [General] Gorkte: Okay, Vaden is here.. the universe has been restored.. then it crashed. 1 Link to comment Share on other sites More sharing options...
GradeAPrime Posted November 10, 2011 Report Share Posted November 10, 2011 How long does it take to restart? My launcher says StARTING... Both Updates are done Hopefully its soon. I gots me some belters to smack around! -Quartermaine Link to comment Share on other sites More sharing options...
Blacklung[IS] Posted November 10, 2011 Report Share Posted November 10, 2011 [quote name='Krumm' timestamp='1320906328' post='48338'] How long does it take to restart? My launcher says StARTING... Both Updates are done Hopefully its soon. I gots me some belters to smack around! -Quartermaine [/quote] already back up Link to comment Share on other sites More sharing options...
Blacklung[IS] Posted November 10, 2011 Report Share Posted November 10, 2011 [quote name='Blacklung' timestamp='1320906426' post='48339'] already back up [/quote] back down Link to comment Share on other sites More sharing options...
Tienbau Posted November 10, 2011 Report Share Posted November 10, 2011 back up! should be the last hickup. Link to comment Share on other sites More sharing options...
Overtkill Posted December 2, 2011 Report Share Posted December 2, 2011 The server appears to be offline. Link to comment Share on other sites More sharing options...
JustRD Posted December 2, 2011 Report Share Posted December 2, 2011 (edited) indeed the new website doesn't have the nifty little server status icon like the old one did. Edited December 2, 2011 by JustRD Link to comment Share on other sites More sharing options...
kahkarot66 Posted December 2, 2011 Report Share Posted December 2, 2011 (edited) It go BOOOMM!! lol i wonder if they've fed the hamster tonight Edited December 2, 2011 by kahkarot66 Link to comment Share on other sites More sharing options...
Ulutia Posted December 2, 2011 Report Share Posted December 2, 2011 [quote name='kahkarot66' timestamp='1322786257' post='49090'] It go BOOOMM!! lol i wonder if they've fed the hamster tonight [/quote] Hopefully Tienbau is fixing that annoying "robot" message. Link to comment Share on other sites More sharing options...
Bleakend Posted December 2, 2011 Report Share Posted December 2, 2011 [quote name='Ulutia' timestamp='1322786336' post='49092'] Hopefully Tienbau is fixing that annoying "robot" message. [/quote] I hope so. I needed a break anyway, which is what I say every time the server goes down. Link to comment Share on other sites More sharing options...
AZdexter Posted December 2, 2011 Report Share Posted December 2, 2011 [quote name='spinal7' timestamp='1322786686' post='49094'] I hope so. I needed a break anyway, which is what I say every time the server goes down. [/quote] I hope they can it back up and fix the message...\0/...I'm starting to freak, am I the only one that does see the weird robot over there???? Link to comment Share on other sites More sharing options...
cmspark73 Posted December 2, 2011 Report Share Posted December 2, 2011 [quote name='AZdexter' timestamp='1322788873' post='49095'] glad to know it was server wide and not just me freaked me out there for a sec I hope they can it back up and fix the message...\0/...I'm starting to freak, am I the only one that does see the weird robot over there???? [/quote] Link to comment Share on other sites More sharing options...
Cruxshadow Posted December 2, 2011 Report Share Posted December 2, 2011 Lol the server was up when I opened the emu and read the message about the new site. When I went to the site the server status was offline. Sorry I broke it Link to comment Share on other sites More sharing options...
Shaun of the dead Posted December 2, 2011 Report Share Posted December 2, 2011 any idea how long it will be till it is back up? Link to comment Share on other sites More sharing options...
Palimow Posted December 2, 2011 Report Share Posted December 2, 2011 comin back up now Link to comment Share on other sites More sharing options...
TooTall Posted December 2, 2011 Report Share Posted December 2, 2011 (edited) [quote name='Shaun of the dead' timestamp='1322789864' post='49099'] any idea how long it will be till it is back up? [/quote] Starting now, EnBNotifier tells me, you can D/L it at www.net-7.org Great little program Edited December 2, 2011 by TooTall Link to comment Share on other sites More sharing options...
Palimow Posted December 2, 2011 Report Share Posted December 2, 2011 [quote name='TooTall' timestamp='1322790074' post='49101'] Starting now, EnBNotifier tells me, you can D/L it at www.net-7.org Great little program [/quote] the best! Link to comment Share on other sites More sharing options...
Shaun of the dead Posted December 2, 2011 Report Share Posted December 2, 2011 [quote name='Palimow' timestamp='1322790205' post='49103'] the best! [/quote] shows should be 5min Link to comment Share on other sites More sharing options...
Tienbau Posted December 2, 2011 Report Share Posted December 2, 2011 oh c'mon the robot message wasn't that bad. Just 'cos Fleer got freaked out a bit by SAM lurking underwater ... But yeah, you should now only see each 'welcome' message a 2-3 times during log-in. The crash was due to a timing issue with message changing I hadn't thought of, but it's fixed now. Link to comment Share on other sites More sharing options...
Palimow Posted December 2, 2011 Report Share Posted December 2, 2011 thnx TB. Link to comment Share on other sites More sharing options...
Recommended Posts