Anonymous | Login | Signup for a new account | 2024-04-20 03:06 UTC |
My View | View Issues | Change Log | Roadmap | Zandronum Issue Support Ranking | Rules | My Account |
View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0002741 | Zandronum | [All Projects] Bug | public | 2016-05-26 00:57 | 2018-09-30 21:43 | ||||
Reporter | Catastrophe | ||||||||
Assigned To | Dusk | ||||||||
Priority | normal | Severity | crash | Reproducibility | always | ||||
Status | closed | Resolution | fixed | ||||||
Platform | Microsoft | OS | Windows | OS Version | XP/Vista/7 | ||||
Product Version | 2.1 | ||||||||
Target Version | 3.0 | Fixed in Version | 3.0 | ||||||
Summary | 0002741: Database mod crash | ||||||||
Description | Load up these files on ctf in order 'http://static.allfearthesentinel.net/wads/idl201x_b.pk3 [^]' 'http://gam.thewaitingroom.org/be_wads/fnf-stats-test.pk3 [^]' join server crash! | ||||||||
Attached Files | |||||||||
Notes | |
(0014984) Catastrophe (reporter) 2016-05-26 00:59 edited on: 2016-05-26 01:01 |
this is the script that is causing it.'http://hastebin.com/basomihura.vhdl [^]' |
(0014985) Catastrophe (reporter) 2016-05-26 04:58 |
After more testing, I've figured it out, it is this line. key = strParam(s:FNF_LONGESTFRAGSTREAK_NAME_, d:i); setDBEntryString(FNF_SERVER_TOTALS, key, 0); It appears doing setDBEntryString with an integer, such as 0, causes Zandronum to crash. Since you're only supposed to put strings in here, perhaps the ACS compiler should give an error if it isn't? |
(0015013) Dusk (developer) 2016-06-04 20:37 |
The crash appears to happen when the const char *-type string pointers get nulled as a result of this. If I change the database code to use FStrings, the crashing goes away. Is this a good approach? |
(0017791) Catastrophe (reporter) 2017-05-30 23:33 |
Is this being fixed? Ran into it again and I daresay it'll drive people insane trying to debug their mods. |
(0017793) Torr Samaho (administrator) 2017-06-04 08:45 |
Should definitely be fixed, but I'm not sure that we should change the database code from const char * to FString for this. A few sanity checks on the pointers should be enough. I'll have a look. |
(0017795) Torr Samaho (administrator) 2017-06-04 08:53 |
Can you check if this fixes the problem? |
(0017812) Ru5tK1ng (updater) 2017-06-10 04:50 |
-Updated the example wad links- That build seemed to fix the issue, the server didn't crash. |
(0017838) Ru5tK1ng (updater) 2017-06-18 19:14 |
Pulled the latest changes and I didn't get any crash online. |
This issue is already marked as resolved. If you feel that is not the case, please reopen it and explain why. |
|
Supporters: | Korshun |
Opponents: | No one explicitly opposes this issue yet. |
Issue History | |||
Date Modified | Username | Field | Change |
2016-05-26 00:57 | Catastrophe | New Issue | |
2016-05-26 00:59 | Catastrophe | Note Added: 0014984 | |
2016-05-26 01:01 | Catastrophe | Note Edited: 0014984 | View Revisions |
2016-05-26 04:58 | Catastrophe | Note Added: 0014985 | |
2016-06-04 19:45 | Dusk | Assigned To | => Dusk |
2016-06-04 19:45 | Dusk | Status | new => assigned |
2016-06-04 20:37 | Dusk | Note Added: 0015013 | |
2016-06-04 20:37 | Dusk | Status | assigned => needs review |
2016-06-04 20:38 | Dusk | View Status | private => public |
2017-05-30 23:33 | Catastrophe | Note Added: 0017791 | |
2017-06-04 08:45 | Torr Samaho | Note Added: 0017793 | |
2017-06-04 08:53 | Torr Samaho | Note Added: 0017795 | |
2017-06-04 08:53 | Torr Samaho | Status | needs review => needs testing |
2017-06-10 04:50 | Ru5tK1ng | Note Added: 0017812 | |
2017-06-10 04:50 | Ru5tK1ng | Description Updated | View Revisions |
2017-06-18 19:14 | Ru5tK1ng | Note Added: 0017838 | |
2017-06-18 19:14 | Ru5tK1ng | Status | needs testing => resolved |
2017-06-18 19:14 | Ru5tK1ng | Resolution | open => fixed |
2017-06-18 19:14 | Ru5tK1ng | Fixed in Version | => 3.0 |
2017-06-18 19:14 | Ru5tK1ng | Target Version | => 3.0 |
2018-09-30 21:43 | Blzut3 | Status | resolved => closed |
Copyright © 2000 - 2024 MantisBT Team |