Hi, 3.4.0 compiles cleanly with my version of Sun Workshop (5.3), and runs fine with the benchmarks. Please try it out and see what happens.
-- emery -- Emery Berger Assistant Professor Dept. of Computer Science University of Massachusetts, Amherst www.cs.umass.edu/~emery > -----Original Message----- > From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of > singh_dhirendra_kumar > Sent: Wednesday, December 21, 2005 9:07 AM > To: [email protected] > Subject: [hoard] Compilation Error > > Hi, > I am getting below error while compiling hoard version 3.3.0 on > solaris 8. > Compiler version is Sun WorkShop 6 update 2 C++ 5.3 > > snv888!dhirendr:~/dkumar/hoard/heaplayers-3.3.0/allocators/hoard [118] > > ./compile-sunw > Compiling for Solaris, Sun Workshop > Generating 32-bit variant (libhoard_32.so). > "../../heaplayers/fred.h", line 48: Warning (Anachronism): Formal > argument 3 of type extern "C" void*(*)(void*) in call to > pthread_create(unsigned*, const _pthread_attr*, extern "C" void*(*) > (void*), void*) is being passed void*(*)(void*). > "usesimtls.cpp", line 284: Error: Formal argument 1 of type char* in > call to munmap(char*, unsigned) is being passed void*. > "usesimtls.cpp", line 393: Warning (Anachronism): Formal argument > start_func of type void*(*)(void*) is being passed extern "C" void*(*) > (void*). > "../../heaplayers/wrapper.cpp", line 212: Warning (Anachronism): The > prior declaration for operator new(unsigned) has an exception > specification. > "../../heaplayers/wrapper.cpp", line 217: Warning (Anachronism): The > prior declaration for operator delete(void*) has an exception > specification. > "../../heaplayers/wrapper.cpp", line 238: Warning (Anachronism): The > prior declaration for operator delete[](void*) has an exception > specification. > 1 Error(s) and 5 Warning(s) detected. > > > I tried to use the precompiled lib for solaris and got core dump with > the following stack. > > detected a multithreaded program > program terminated by signal BUS (invalid address alignment) > 0xff2eab5c: __add_new_buffer+0x0160: st %g1, [%l5 + 0x8] > (/opt/SUNWspro/bin/../WS6U2/bin/sparcv9/dbx) where > current thread: [EMAIL PROTECTED] > =>[1] > __rwstd::__rb_tree<void*,std::pair<void*const,unsigned>,__rwstd::__sel > ect1st<std::pair<void*const,unsigned>,void*>,std::less<void*>,AlignedM > mapInstance<4096U>::CustomAllocator<std::pair<void*,unsigned> > > >::__add_new_buffer(0xff300398, 0xff30039c, 0xff2ffe14, 0x3fa0, 0x3, > 0x4), at 0xff2eab5c > [2] > __rwstd::__rb_tree<void*,std::pair<void*const,unsigned>,__rwstd::__sel > ect1st<std::pair<void*const,unsigned>,void*>,std::less<void*>,AlignedM > mapInstance<4096U>::CustomAllocator<std::pair<void*,unsigned> > > >::init(0xff300398, 0x0, 0x149c0, 0xff3e66c0, 0xff2ff8b4, 0x3), at > 0xff2eaf44 > [3] > __rwstd::__rb_tree<void*,std::pair<void*const,unsigned>,__rwstd::__sel > ect1st<std::pair<void*const,unsigned>,void*>,std::less<void*>,AlignedM > mapInstance<4096U>::CustomAllocator<std::pair<void*,unsigned> > > >::__rb_tree(0xff300398, 0xffbeb947, 0x0, 0xffbeb940, 0x2cb4c, 0x0), > at 0xff2ea9b4 > [4] ExactlyOne<AlignedMmapInstance<4096U> >::operator()(0xff302390, > 0xff339538, 0xff3e60c8, 0x1, 0xff300058, 0x0), at 0xff2e9ce4 > [5] > HL::LockedHeap<HL::SpinLockType,FixedRequestHeap<4096U,AlignedMmap<409 > 6U> > >::malloc(0xff302390, 0x0, 0x146f8, 0x7, 0xff2ff8b4, > 0xff300058), at 0xff2eb284 > [6] > HoardManager<AlignedSuperblockHeap<HL::SpinLockType,4096U>,ProcessHeap > ,HoardSuperblock<HL::SpinLockType,4096,SmallHeap>,4096U,8,HL::SpinLock > Type,hoardThresholdFunctionClass,SmallHeap>::getAnotherSuperblock > (0xff301cb8, 0x40, 0x47, 0x8, 0x7, 0x151e0), at 0xff2ea810 > [7] > HoardManager<AlignedSuperblockHeap<HL::SpinLockType,4096U>,ProcessHeap > ,HoardSuperblock<HL::SpinLockType,4096,SmallHeap>,4096U,8,HL::SpinLock > Type,hoardThresholdFunctionClass,SmallHeap>::slowPathMalloc(0x0, > 0x40, 0x40, 0x134, 0xff301de0, 0x0), at 0xff2e9dd4 > [8] > HL::HybridHeap<4008,ThreadPoolHeap<1024,128,PerThreadHoardHeap>,BigHea > p>::malloc(0x0, 0x40, 0x8, 0xff300ab4, 0x0, 0xff2ffc98), at 0xff2e9ae8 > [9] malloc(0x0, 0x7, 0xffbebb64, 0xff3399d0, 0xfff00000, > 0xffb00000), at 0xff2e8e58 > [10] operator new(0x40, 0x0, 0x78158, 0xfffffff8, 0x400, 0x4a4), at > 0xff2e93f8 > [11] std::locale::init(0x0, 0x0, 0x400, 0x4a4, 0x0, 0x5d59c), at > 0xff19d41c > [12] std::basic_streambuf<char,std::char_traits<char> > >::basic_streambuf(0xff223548, 0x400, 0xff223550, 0x480, 0xff2154e0, > 0x6f76f0), at 0xff1b7fb0 > [13] std::basic_filebuf<char,std::char_traits<char> >::basic_filebuf > (0xff223548, 0x0, 0x0, 0x0, 0x0, 0x0), at 0xff1ad130 > [14] std::ios_base::Init::Init(0x1, 0xff2154e0, 0x0, 0x400, 0x0, > 0x0), at 0xff198674 > [15] __SUNW_init_iostreams(0x6f7400, 0x6f7494, 0x6f2900, 0x0, 0x1, > 0x6f2800), at 0xff199654 > [16] __Cimpl::cplus_init(0xff382118, 0x1, 0xff3675a8, 0xff3e66c0, > 0xfffee4c0, 0xfffee4c0), at 0x645300 > [17] _init(0x0, 0xff3e66c0, 0xff3e60c8, 0x0, 0x2cafc, 0xff3bc698), > at 0xff370570 > [18] call_init(0xfef11e2c, 0x200000, 0xff3e6228, 0xff3e66c0, > 0xfef11e38, 0xfef11e34), at 0xff3bc6a0 > [19] setup(0xff3e66c0, 0xff3e6158, 0xff3e60c8, 0x0, 0xff3a0218, > 0xfff00000), at 0xff3bbd8c > [20] _setup(0xc5, 0x12f, 0x12f, 0xb00, 0xffffffff, 0xffffffff), at > 0xff3c77cc > [21] _rt_boot(0x0, 0x0, 0x0, 0x0, 0x0, 0x0), at 0xff3b2ac4 > > > > > > > > ------------------------ Yahoo! Groups Sponsor > > > Yahoo! Groups Links > > > > > ------------------------ Yahoo! Groups Sponsor --------------------~--> 1.2 million kids a year are victims of human trafficking. Stop slavery. http://us.click.yahoo.com/.QUssC/izNLAA/TtwFAA/EbFolB/TM --------------------------------------------------------------------~-> Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/hoard/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
