Syllable Forum Index Syllable
Syllable Forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

0.6.6: rescopy segfaults

 
Post new topic   Reply to topic    Syllable Forum Index -> Bugs - Fixed
View previous topic :: View next topic  
Author Message
Vanders
The Knights of Syllable


Joined: 14 Sep 2007
Posts: 849

PostPosted: Sat Aug 30, 2008 1:27 pm    Post subject: 0.6.6: rescopy segfaults Reply with quote

rescopy segfaults during an add or replace operation. The kernel stacktrace is

1:rescopy::rescopy : 0 -> a02730b3
1:rescopy::rescopy : libstdc++.so.6 + 000a70b3 -> _ZNSsC1ERKSs + 00000053
1:rescopy::rescopy : 1 -> 8000b9fc
1:rescopy::rescopy : rescopy + 0000b9fc -> _ZNSt6vectorI12ResourceDescSaIS0_EE13_M_insert_auxEN9__gnu_cxx17__n
ormal_iteratorIPS0_S2_EERKS0_ + 0000041c
1:rescopy::rescopy : 2 -> a0138a03
1:rescopy::rescopy : libsyllable.so.7 + 00138a03 -> _ZN2os9Resources14CreateResourceERKNS_6StringES3_i + 00000
4c3
1:rescopy::rescopy : 3 -> 8000325c
1:rescopy::rescopy : rescopy + 0000325c -> _start + 0000078c
1:rescopy::rescopy : 4 -> 80006f8c
1:rescopy::rescopy : rescopy + 00006f8c -> _Z5usageRN2os12OptionParserEb + 0000327c
1:rescopy::rescopy : 5 -> 8000933e
1:rescopy::rescopy : rescopy + 0000933e -> main + 000003ce
1:rescopy::rescopy : 6 -> a02eaca9
1:rescopy::rescopy : libc.so.2 + 00014ca9 -> __libc_start_main + 000000b9
1:rescopy::rescopy : 7 -> 80002af5
1:rescopy::rescopy : rescopy + 00002af5 -> _start + 00000025
1:rescopy::rescopy : verify_area() got kernel address 00000000

This is currently blocking my ability to perform a complete development build of 0.6.6
Back to top
View user's profile Send private message Send e-mail
Vanders
The Knights of Syllable


Joined: 14 Sep 2007
Posts: 849

PostPosted: Tue Sep 02, 2008 7:27 am    Post subject: Reply with quote

This is only an issue during the Build I.e. "rescopy" on a file when not invoked by Builder works fine. Switching off 'bootstrap' in the Builder settings seems to have fixed the issue, which may reveal a deeper underlying issue such as a binary incompatibility in the system libraries.
Back to top
View user's profile Send private message Send e-mail
Morph
The Knights of Syllable


Joined: 18 Oct 2007
Posts: 316
Location: Australia

PostPosted: Sun Nov 30, 2008 5:55 am    Post subject: Reply with quote

See also [url=http://forum.syllable.org/viewtopic.php?p=4624#4624]this thread[/url].
Back to top
View user's profile Send private message Visit poster's website
Kaj
The Knights of Syllable


Joined: 14 Sep 2007
Posts: 2200
Location: Friesland

PostPosted: Sun Nov 30, 2008 10:25 am    Post subject: Reply with quote

I think this may be a more or less legitimate interface incompatibility between GLibC and LibStdC++, that however requires that the chain of system libraries is recompiled. Normally, LibStdC++ shields C++ programs to some degree from incompatibilities in GLiBC and LibSyllable shields Syllable programs to some degree from incompatibilities in LibStdC++. This doesn't happen now because bootstrapping is turned off during building, so the libraries are linked to now partly incompatible libraries in the system. Those aren't there when you install the new dev build, so some interfaces break. So far, this affects the os::Resource interface in rescopy and sIDE.

Linking LibStdC++ on top of the freshly compiled GLibC and LibSyllable on top of the fresh LibStdC++ should fix this LibSyllable interface. It's not happening now because the GNU toolchain is braindead and actually runs libraries on the build host when you try to tell it just to link them at compile time. Hence the need to switch off bootstrapping when a bootstrap problem affects the build host. The solution is to switch bootstrapping back on and complete it for this situation by doing a full bootstrapping on rescopy, too, during the build.

Anthony's workaround fixes this issue for builds on future builds, but not for the first bootstrapping, so I have rearranged rescopy in Builder to bootstrap it.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Syllable Forum Index -> Bugs - Fixed All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group