Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 111113

Summary: gcc-4.0.2-r1 failed to compile arts(svn) with visibility flags
Product: Gentoo Linux Reporter: Lu Ran <hephooey>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Lu Ran 2005-11-01 03:10:57 UTC
I just updated to gcc-4.0.2-r1 today, then tried to compile the svn snapshot  
of arts, and since this version patched libstdc++ with visibility push/pop,  
the configure enabled visibility flags, however, the compilation failed with a  
segfault of mcopidl, and the backtrack seems indicated some libstdc++ problem: 
 
 Program received signal SIGSEGV, Segmentation fault. 
[Switching to Thread -1212954960 (LWP 16888)] 
0x0805c31f in __gnu_cxx::__pool_base::_M_get_binmap () 
(gdb) bt 
#0  0x0805c31f in __gnu_cxx::__pool_base::_M_get_binmap () 
#1  0x08062ff5 in __gnu_cxx::__mt_alloc<std::pair<int, std::string>*, 
__gnu_cxx::__common_pool_policy<__gnu_cxx::__pool, true> >::allocate () 
#2  0x08067602 in std::_Deque_base<std::pair<int, std::string>, 
std::allocator<std::pair<int, std::string> > >::_M_allocate_map () 
#3  0x080676bc in std::_Deque_base<std::pair<int, std::string>, 
std::allocator<std::pair<int, std::string> > >::_M_initialize_map () 
#4  0x08067798 in std::_Deque_base<std::pair<int, std::string>, 
std::allocator<std::pair<int, std::string> > >::_Deque_base () 
#5  0x08067816 in std::deque<std::pair<int, std::string>, 
std::allocator<std::pair<int, std::string> > >::deque () 
#6  0x0805bf1c in __static_initialization_and_destruction_0 () 
#7  0x0805c263 in global constructors keyed to idl_in_include () 
#8  0x08072c12 in __do_global_ctors_aux () 
#9  0x0804a2d1 in _init () 
#10 0x08072b4f in __libc_csu_init () 
#11 0xb7b52ec5 in __libc_start_main () from /lib/libc.so.6 
#12 0x0804aa31 in _start () 
 
and amarok(svn) with visibility crashed every time I try to start it, here is  
a bt of amarok:  
  
Using host libthread_db library "/lib/libthread_db.so.1".   
 `system-supplied DSO at 0xffffe000' has disappeared; keeping its symbols.   
 [Thread debugging using libthread_db enabled]   
 [New Thread -1244100912 (LWP 6374)]   
 [KCrash handler]   
 #4  0x081b8140 in __gnu_cxx::__mt_alloc<PluginManager::StoreItem,   
 __gnu_cxx::__common_pool_policy<__gnu_cxx::__pool, true> >::allocate ()   
 #5  0x081b864a in std::vector<PluginManager::StoreItem,   
 std::allocator<PluginManager::StoreItem> >::_M_insert_aux ()   
 #6  0x081b6ef1 in PluginManager::createFromService ()   
 #7  0x0811d31a in EngineController::loadEngine ()   
 #8  0x0811dff5 in EngineController::loadEngine ()   
 #9  0x0808b695 in App::applySettings ()   
 #10 0x0808e118 in App::App ()   
 #11 0x0821ec34 in main ()   
  
  

Reproducible: Always
Steps to Reproduce:
1.checkout a arts-1.5 branch from anonsvn.kde.org   
2.compile it with visibility flags, actually, it will be better if you use a 
patched qt-3.3.5 compiled with visibility, then the visibility will be 
automatically enabled. 
  
   
Actual Results:  
mcopidl segfault when try to compile flow 

Expected Results:  
mcopidl should work
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-11-01 03:14:54 UTC
Visibility stuff in KDE is known to be FUBAR. Don't do this and if you do, then
don't report any bugs about things not working to Gentoo bugzilla. 

Marking as a dupe of Bug 110959.

*** This bug has been marked as a duplicate of 110959 ***