Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[10599] Attempt fix data corruption for some localization structures …
…with GCC use. By unknown reason GCC generate wrong code for locale structures declared in header after pack pragma. Signed-off-by: VladimirMangos <vladimir@getmangos.com>
- Loading branch information
cyberbrest2
authored and
VladimirMangos
committed
Oct 9, 2010
1 parent
9c0d767
commit 4144e06
Showing
4 changed files
with
23 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#ifndef __REVISION_NR_H__ | ||
#define __REVISION_NR_H__ | ||
#define REVISION_NR "10598" | ||
#define REVISION_NR "10599" | ||
#endif // __REVISION_NR_H__ |
4144e06
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks u so much!!
4144e06
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What kind of problem do you speak about?
I haven't had any problems with GCC 4.1.
4144e06
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Its related to locales_gameobject an locales_pagetext tables. Not affect if u are using english or russian as default language.
4144e06
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool!, finally crash in esES locales fixed ;-)
4144e06
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This only affect servers with localization data... and possible not all GCC versions have problem.
4144e06
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot ^^
4144e06
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why english or russian? Are we special? :P
4144e06
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One missing case with Gossip Locales. http://pastebin.com/izfbZNZp crashdump. Not clean source but we know where the problem is.
4144e06
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we need move Gossip locales too...
4144e06
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
kero99, +1.
My backtrace: http://gist.github.com/619376
4144e06
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
revert this commit fix ^ http://gist.github.com/619376 crash. very strange.
4144e06
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you and any who have locale related crashes before test this patch: http://gist.github.com/619398
If i understand problem right (mixed code use in packed/unpacked libstdc++ structures) then this resolve old and new porbelms
4144e06
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
May be version of GCC related? I also has crushes after this commit...
4144e06
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi Vlad, patch http://gist.github.com/619398 work perfect, no locales crashes for client esES, Gameobject Ok, Items OK, PageText OK and Gossip OK. (GCC version 4.4.1)
Thanks soo much.
4144e06
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for testing :)