Crashing after Shutdown

Beatrix Willius bwillius at gmx.de
Sat Jan 27 04:11:09 CST 2007


Hello,

when trying to fix an OutOfBoundsException I found - not for the  
first time - that Valentina crashes after this exception. What do I  
need to do to circumvent this?

Buggy code:
theDatabase.Table("Attachment").SetBlank
...
theDatabase.Table("Attachment").Field 
("AttachmentFileEnding").SetString FileEndings(currentAttachment)
'OutOfBounds occurs in the last row because of "FileEndings 
(currentAttachment)".

This calls the ExceptionHandler, which calls Valentina.Shutdown. And  
then the application crashes with

Thread 0 Crashed:
0   libvkernel_fat_release.dylib   	0x07262128  
fbl::SegmentFile::get_LastSegment() + 20 (icplusplus.c:27)
1   dyld                           	0x8fe15678  
stub_binding_helper_interface + 56
2   libvkernel_fat_release.dylib   	0x07260f74  
fbl::SegmentFile::DeleteRecord(unsigned long) + 32 (icplusplus.c:27)
3   libvkernel_fat_release.dylib   	0x07225800 fbl::VBlob::~VBlob  
[unified]() + 152 (icplusplus.c:27)
4   libvkernel_fat_release.dylib   	0x075c8ccc fbl::VBlob::Release()  
const + 64 (String.cpp:68)
5   libvkernel_fat_release.dylib   	0x075a7f04  
fbl::Array<fbl::smart_ptr<fbl::I_FieldEx>,  
fbl::SmartPtrItems<fbl::smart_ptr<fbl::I_FieldEx> >,  
fbl::RPSetZero<fbl::smart_ptr<fbl::I_FieldEx> > >::DisposeItems() +  
104 (String.cpp:68)
6   libvkernel_fat_release.dylib   	0x075c3ae4  
fbl::Array<fbl::smart_ptr<fbl::I_FieldEx>,  
fbl::SmartPtrItems<fbl::smart_ptr<fbl::I_FieldEx> >,  
fbl::RPSetZero<fbl::smart_ptr<fbl::I_FieldEx> > >::~Array [unified]()  
+ 64 (String.cpp:68)
7   libvkernel_fat_release.dylib   	0x075c3a20  
fbl::ArrayOfSmartPtrs<fbl::smart_ptr<fbl::I_FieldEx>  
 >::~ArrayOfSmartPtrs [unified]() + 56 (String.cpp:68)
8   libvkernel_fat_release.dylib   	0x075c36a0  
fbl::Array<fbl::smart_ptr<fbl::I_FieldEx>,  
fbl::SmartPtrItems<fbl::smart_ptr<fbl::I_FieldEx> >,  
fbl::RPSetZero<fbl::smart_ptr<fbl::I_FieldEx> > >::Release() const +  
64 (String.cpp:68)
9   libvkernel_fat_release.dylib   	0x0725e678  
fbl::Record_Imp::~Record_Imp [unified]() + 156 (icplusplus.c:27)
10  libvkernel_fat_release.dylib   	0x075d09fc  
fbl::Record_Separate::~Record_Separate [in-charge deleting]() + 60  
(String.cpp:68)
11  libvkernel_fat_release.dylib   	0x075d0488  
fbl::Record_Imp::Release() const + 64 (String.cpp:68)
12  libvkernel_fat_release.dylib   	0x0726dfb8 fbl::Table::~Table  
[unified]() + 588 (icplusplus.c:27)
13  libvkernel_fat_release.dylib   	0x075d2214 fbl::Table::Release()  
const + 64 (String.cpp:68)
14  libvkernel_fat_release.dylib   	0x074f8348  
fbl::Database_imp::DestroyNonStaticTables() + 320 (icplusplus.c:27)
15  libvkernel_fat_release.dylib   	0x0720bbe0 fbl::DbStorage::Close 
(bool) + 252 (icplusplus.c:27)
16  libvkernel_fat_release.dylib   	0x074ed5bc  
fbl::Database_imp::Close() + 308 (icplusplus.c:27)
17  libvshared_fat_release.dylib   	0x02821a84  
fbl::DatabaseManager::Destroy_Databases(bool) + 132 (icplusplus.c:27)
18  libvkernel_fat_release.dylib   	0x071389d4 fbl::ValentinaShutDown 
() + 64 (icplusplus.c:27)
19  V4RB-macho.rbx_0.172.dylib     	0x01e41e84 Valentina_ShutDown() +  
84 (icplusplus.c:27)
20                                 	0x00616b8c Valentina.ShutDown + 60
21                                 	0x000e82f8  
EmergencyShutdown.doEmergencyShutdown%%o<EmergencyShutdown> + 80
22                                 	0x0000d4b4  
ErrorException.ErrorException%% 
o<ErrorException>o<RuntimeException>sss + 1412
23                                 	0x002fb908  
AttachmentsAndMimeCleaner.saveAttachments%% 
o<AttachmentsAndMimeCleaner> + 11580
24                                 	0x00301f14  
AttachmentsAndMimeCleaner.DecodeBase64Attachment%b% 
o<AttachmentsAndMimeCleaner>s + 11556
25                                 	0x002e587c  
AttachmentsAndMimeCleaner.execute%%o<AttachmentsAndMimeCleaner> + 2260
26                                 	0x002e32f0  
MailCleaners.Constructor%%

I just checked that I don't close the currently open database, but  
this is also not done when quitting normally.

System: V4RB 2.5.2, RB 2007R1, Mac OS 10.4.7 on PowerPC.




Mit freundlichen Grüßen/Regards

Trixi Willius

http://www.mothsoftware.com
Mail Archiver X: archive, clean and search email
http://www.beatrixwillius.de
Fractals, 3d landscapes etc.



More information about the Valentina mailing list