2025-07-18 04:30 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0001585Spring engineLinuxpublic2009-08-27 23:28
ReporterSirMaverick 
Assigned Totvo 
PrioritynormalSeveritycrashReproducibilityalways
StatusresolvedResolutionfixed 
Product Version0.80.2.0 
Target VersionFixed in Version0.80.2.0+git 
Summary0001585: unitsync crashes with insufficient read rights
Description$ cd <spring-dir>
$ rm ArchiveCacheV7.lua
$ cd mods
$ touch test.sd7
$ chmod 000 test.sd7

Springlobby will crash due to unitsync library.
Additional InformationProgram received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb65d9970 (LWP 24277)]
0x00000000 in ?? ()
(gdb) bt
#0 0x00000000 in ?? ()
#1 0xb533aa64 in ~CArchive7Zip (this=0x86bbf00) at /home/spring/spring/spring/debug/spring_0.80.2/rts/System/FileSystem/Archive7Zip.cpp:107
#2 0xb534e5cf in CArchiveFactory::OpenArchive (fileName=@0xbfe5e0a4, type=@0xbfe5df94) at /home/spring/spring/spring/debug/spring_0.80.2/rts/System/FileSystem/ArchiveFactory.cpp:67
0000003 0xb534696c in CArchiveScanner::ScanArchive (this=0x86a8470, fullName=@0xbfe5e0a4, doChecksum=true) at /home/spring/spring/spring/debug/spring_0.80.2/rts/System/FileSystem/ArchiveScanner.cpp:352
0000004 0xb53474ef in CArchiveScanner::Scan (this=0x86a8470, curPath=@0x86a3c40, doChecksum=true) at /home/spring/spring/spring/debug/spring_0.80.2/rts/System/FileSystem/ArchiveScanner.cpp:256
0000005 0xb5347ffa in CArchiveScanner::ScanDirs (this=0x86a8470, scanDirs=@0xbfe5e1c4, doChecksum=true) at /home/spring/spring/spring/debug/spring_0.80.2/rts/System/FileSystem/ArchiveScanner.cpp:217
#6 0xb531ca25 in FileSystemHandler::InitVFS (this=0x86a83f0) at /home/spring/spring/spring/debug/spring_0.80.2/rts/System/FileSystem/FileSystem.cpp:500
#7 0xb531d8af in FileSystemHandler::Initialize (verbose=false) at /home/spring/spring/spring/debug/spring_0.80.2/rts/System/FileSystem/FileSystem.cpp:88
#8 0xb5375371 in Init (isServer=true, id=1) at /home/spring/spring/spring/debug/spring_0.80.2/tools/unitsync/unitsync.cpp:277
#9 0x080971df in SpringUnitSyncLib::_Init (this=0x868a428) at src/springunitsynclib.cpp:290
0000010 0x080a0b6b in SpringUnitSyncLib::Load (this=0x868a428, path=@0xbfe5e488, ForceConfigFilePath=@0xbfe5e3fc) at src/springunitsynclib.cpp:62
#11 0x0823a757 in SpringUnitSync::_LoadUnitSyncLib (this=0x86a3d80, unitsyncloc=@0xbfe5e488) at src/springunitsync.cpp:149
0000012 0x08243a6e in SpringUnitSync::LoadUnitSyncLib (this=0x86a3d80, unitsyncloc=@0xbfe5e488) at src/springunitsync.cpp:70
0000013 0x0823a6ca in SpringUnitSync::ReloadUnitSyncLib (this=0x86a3d80) at src/springunitsync.cpp:841
0000014 0x0822ee55 in SpringLobbyApp::OnInit (this=0x861e4f8) at src/springlobbyapp.cpp:146
#15 0xb7e5f000 in wxEntry () from /usr/lib/libwx_baseu-2.8.so.0
#16 0xb7e5f227 in wxEntry () from /usr/lib/libwx_baseu-2.8.so.0
#17 0x0822bfa0 in main (argc=Cannot access memory at address 0x0
) at src/springlobbyapp.cpp:79
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files

-Relationships
+Relationships

-Notes

~0003996

SirMaverick (reporter)

Spring itself will crash too.

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb536b9c0 (LWP 28247)]
0x00000000 in ?? ()
(gdb) bt
#0 0x00000000 in ?? ()
#1 0x088fa520 in ~CArchive7Zip (this=0x9afd660) at /home/spring/spring/spring/debug/spring_0.80.2/rts/System/FileSystem/Archive7Zip.cpp:107
#2 0x0890bcd9 in CArchiveFactory::OpenArchive (fileName=@0xbfff51f8, type=@0xbfff50e8)
    at /home/spring/spring/spring/debug/spring_0.80.2/rts/System/FileSystem/ArchiveFactory.cpp:67
0000003 0x08905a68 in CArchiveScanner::ScanArchive (this=0x9ac23f0, fullName=@0xbfff51f8, doChecksum=true)
    at /home/spring/spring/spring/debug/spring_0.80.2/rts/System/FileSystem/ArchiveScanner.cpp:352
0000004 0x089065c9 in CArchiveScanner::Scan (this=0x9ac23f0, curPath=@0x9ac2c18, doChecksum=true)
    at /home/spring/spring/spring/debug/spring_0.80.2/rts/System/FileSystem/ArchiveScanner.cpp:256
0000005 0x089070ac in CArchiveScanner::ScanDirs (this=0x9ac23f0, scanDirs=@0xbfff5308, doChecksum=true)
    at /home/spring/spring/spring/debug/spring_0.80.2/rts/System/FileSystem/ArchiveScanner.cpp:217
#6 0x088e07cf in FileSystemHandler::InitVFS (this=0x9ac2c78)
    at /home/spring/spring/spring/debug/spring_0.80.2/rts/System/FileSystem/FileSystem.cpp:500
#7 0x088e1539 in FileSystemHandler::Initialize (verbose=true)
    at /home/spring/spring/spring/debug/spring_0.80.2/rts/System/FileSystem/FileSystem.cpp:88
#8 0x08894ed5 in SpringApp::Initialize (this=0xbfff5580) at /home/spring/spring/spring/debug/spring_0.80.2/rts/System/SpringApp.cpp:139
#9 0x088956a5 in SpringApp::Run (this=0xbfff5580, argc=1, argv=0xbfff5664)
    at /home/spring/spring/spring/debug/spring_0.80.2/rts/System/SpringApp.cpp:920
0000010 0x088c240e in Run (argc=1, argv=0xbfff5664) at /home/spring/spring/spring/debug/spring_0.80.2/rts/System/Main.cpp:115
#11 0x088c2471 in main (argc=1, argv=0xbfff5664) at /home/spring/spring/spring/debug/spring_0.80.2/rts/System/Main.cpp:132

~0004001

imbaczek (reporter)

this is a bigger problem than it seems - windows locks the file during writing by default, which should cause the crash, too (in fact, it could be the 'partial download' problem reported earlier.)

~0004011

tvo (reporter)

fixed in http://github.com/spring/spring/commit/44030ac046a617fd637efd05e7986cab35d1325c
+Notes

-Issue History
Date Modified Username Field Change
2009-08-25 01:32 SirMaverick New Issue
2009-08-25 15:06 SirMaverick Note Added: 0003996
2009-08-26 13:52 imbaczek Note Added: 0004001
2009-08-27 22:54 tvo Status new => assigned
2009-08-27 22:54 tvo Assigned To => tvo
2009-08-27 23:28 tvo Note Added: 0004011
2009-08-27 23:28 tvo Status assigned => resolved
2009-08-27 23:28 tvo Fixed in Version => 0.80.2.0+git
2009-08-27 23:28 tvo Resolution open => fixed
+Issue History