Jump to content

mtmaps (OpenMP)


Recommended Posts

  • Replies 319
  • Created
  • Last Reply

Top Posters In This Topic

Spell::DoAllEffectOnTarget (this=0x7f3e4710e5e0, target=0x18)

at ../../../src/game/Spell.cpp:1000

1000 if (target->processed) // Check target

#0 Spell::DoAllEffectOnTarget (this=0x7f3e4710e5e0, target=0x18)

at ../../../src/game/Spell.cpp:1000

#1 0x0000000000709f5c in Spell::handle_immediate (this=0x7f3e4710e5e0)

at ../../../src/game/Spell.cpp:2998

#2 0x0000000000708930 in Spell::cast (this=0x7f3e4710e5e0, skipCheck=true)

at ../../../src/game/Spell.cpp:2972

#3 0x0000000000758ad9 in Unit::CastSpell (this=0x7f3dc85400d0,

Victim=0x7f3dc85400d0, spellInfo=0x7f3e509d2f30,

triggered=<value optimized out>, castItem=0x0,

triggeredByAura=0x7f3dc8372ef0, originalCaster=0)

at ../../../src/game/Unit.cpp:1028

#4 0x000000000075a74f in Unit::HandleProcTriggerSpell (this=0x7f3dc85400d0,

pVictim=0x7f3dc909acb0, damage=<value optimized out>,

triggeredByAura=0x7f3dc8372ef0, procSpell=0x7f3e4ff98a60,

procFlags=262144, procEx=1, cooldown=0) at ../../../src/game/Unit.cpp:8184

#5 0x0000000000771c16 in Unit::ProcDamageAndSpellFor (this=0x7f3dc85400d0,

isVictim=false, pTarget=0x7f3dc909acb0, procFlag=262144, procExtra=1,

attType=BASE_ATTACK, procSpell=0x7f3e4ff98a60, damage=704)

at ../../../src/game/Unit.cpp:13017

#6 0x000000000077249d in Unit::ProcDamageAndSpell (this=0x7f3dc85400d0,

pVictim=0x7f3dc909acb0, procAttacker=<value optimized out>,

procVictim=<value optimized out>, procExtra=1, amount=704,

attType=BASE_ATTACK, procSpell=0x7f3e4ff98a60)

at ../../../src/game/Unit.cpp:4910

#7 0x00000000006ed424 in Aura::PeriodicTick (this=0x1081e660)

at ../../../src/game/SpellAuras.cpp:7529

#8 0x00000000006eed6a in Aura::Update (this=0x1081e660, diff=1857)

at ../../../src/game/SpellAuras.cpp:738

#9 0x000000000075cbce in Unit::_UpdateSpells (this=0x7f3dc909acb0, time=1857)

at ../../../src/game/SpellAuras.h:333

#10 0x0000000000769687 in Unit::Update (this=0x7f3dc909acb0, p_time=1857)

at ../../../src/game/Unit.cpp:214

#11 0x00000000006be893 in Player::Update (this=0x7f3dc909acb0, p_time=1857)

at ../../../src/game/Player.cpp:1137

#12 0x0000000000600a60 in Map::Update (this=0x7f3dd283e4d0, t_diff=@0x49c140a4)

at ../../../src/game/Map.cpp:688

#13 0x0000000000601d99 in InstanceMap::Update (this=0x7f3e4710e5e0,

t_diff=@0x18) at ../../../src/game/Map.cpp:2741

#14 0x00000000007e61f9 in MapInstanced::Update (this=0x7f3e386d6710,

t=@0x49c140a4) at ../../../src/game/MapInstanced.cpp:73

#15 0x00000000006124d8 in MapManager::Update (.omp_data_i=0x43c07ba0)

at ../../../src/game/MapManager.cpp:278

#16 0x00007f3e5b9f0b55 in ?? () from /usr/lib/libgomp.so.1

#17 0x00007f3e5b238fc7 in start_thread () from /lib/libpthread.so.0

#18 0x00007f3e5a8085ad in clone () from /lib/libc.so.6

#19 0x0000000000000000 in ?? ()

Target not null xD

Link to comment
Share on other sites

Sorry for telling my problems, but I'm not friends with linux libs :).
- TBB

cd /root

wget http://www.threadingbuildingblocks.o...809oss_src.tgz

tar xvfz tbb22_20090809oss_src.tgz

mv tbb22_20090809oss tbb

cd tbb/src

make

cd /root/tbb/build/linux*release

chmod 777 tbbvars.sh

./tbbvars.sh

cd /root/tbb/build/linux*release

cp *.2 /usr/lib

cd /usr/lib

ln -s libtbb.so.2 libtbb.so

ln -s libtbbmalloc.so.2 libtbbmalloc.so

ln -s libtbbmalloc_proxy.so.2 libtbbmalloc_proxy.so

// --------------------------------------

- ACE

wget http://download.dre.vanderbilt.edu/previous_versions/ACE-5.7.6.tar.gz

tar xvzf ACE-5.7.6.tar.gz

mv ACE_wrappers ACE

cd ~/ACE/

mkdir build

cd build

../configure

make

make install

ls -s /path/to_ACCE/libACE-5.7.6.so /usr/lib/libACE-5.7.6.so

you have used command make install ?

Link to comment
Share on other sites

Hey i get error

g++ -g -DMANGOS_DEBUG -DDO_MYSQL -g -O2 -o mangos-realmd AuthSocket.o Main.o RealmList.o -L/root/mangos/objdir/dep/src/sockets -L/root/shadow-wow/lib -L/usr/local//lib /usr/local//lib/libACE.so -lrt -ldl -L/usr/lib/mysql /usr/lib/libmysqlclient_r.so -lz -lssl -lcrypto -ltbb ../shared/Database/libmangosdatabase.a ../shared/Config/libmangosconfig.a ../shared/Auth/libmangosauth.a ../shared/libmangosshared.a ../framework/libmangosframework.a ../../dep/src/sockets/libmangossockets.a -lpthread -Wl,--rpath -Wl,/usr/local//lib -Wl,--rpath -Wl,/usr/local//lib

/usr/bin/ld: cannot find -ltbb

How to fix , i have installed tbb correclty i think :S

Link to comment
Share on other sites

I always get this error, i follow the How-to use custom ACE and TBB libs guid and it still dont work :(

../shared/libmangosshared.a(DelayExecutor.o): In function `ACE_Object_Manager::remove_at_exit(void*)':

/home/Luwow/opt/include/ace/Object_Manager.inl:38: undefined reference to `ACE_Object_Manager::remove_at_exit_i(void*)'

../shared/libmangosshared.a(DelayExecutor.o): In function `ACE_Object_Manager::at_exit(ACE_Cleanup*, void*, char const*)':

/home/Luwow/opt/include/ace/Object_Manager.inl:17: undefined reference to `ACE_Object_Manager::at_exit_i(void*, void (*)(void*, void*), void*, char const*)

Really need help :(

I use ACE 5.7.6

Link to comment
Share on other sites

I always get this error, i follow the How-to use custom ACE and TBB libs guid and it still dont work :(

Really need help :(

I use ACE 5.7.6

Try to remove the current libs located in the install dir of the server.

mv ~/server ~/server_old

mkdir -p ~/server/lib

And restart the compilation from scratch.

Sometime existing libs from an older mangos install can cause this problem, so you have to delete them.

HowTo updated.

Link to comment
Share on other sites

I will try , but i can run still the server if gonna do that?

You cannot run the server if you delete the libs.

But if it is running, it should be safe to keep it running without the libs. But take care, in case of a crash, the server cannot be restarted because the libs will be missing. So it is better to move the full install path where you have all your server files and recreate /home/user/server/lib and compile and install.

You can also configure and install in /home/user/server2 to avoid this problem. Etc...

Link to comment
Share on other sites

I have crash

[New Thread 2485]

[New Thread 2484]

[New Thread 2483]

[New Thread 2482]

[New Thread 2480]

[New Thread 2469]

[New Thread 2478]

[New Thread 2477]

[New Thread 2476]

[New Thread 2475]

[New Thread 2473]

[New Thread 2472]

[New Thread 2471]

Core was generated by `/home/Luwow/server/bin/funserver -c ../etc/mangosd.conf'.

Program terminated with signal 11, Segmentation fault.

#0 0xb76890df in ?? () from /lib/i686/cmov/libc.so.6

#0 0xb76890df in ?? () from /lib/i686/cmov/libc.so.6

No symbol table info available.

#1 0x00000020 in ?? ()

No symbol table info available.

#2 0xb768a655 in malloc () from /lib/i686/cmov/libc.so.6

No symbol table info available.

#3 0xb7861087 in operator new(unsigned int, std::nothrow_t const&) ()

from /usr/lib/libstdc++.so.6

No symbol table info available.

#4 0xb7861164 in operator new[](unsigned int, std::nothrow_t const&) ()

from /usr/lib/libstdc++.so.6

No symbol table info available.

#5 0xb7e9491a in ACE_New_Allocator::malloc (this=0xb7f5bb20,

nbytes=2858418288) at ../../ace/Malloc_Allocator.cpp:118

No locals.

#6 0xb7e9682e in ACE_Message_Block::init_i (this=0xa7b119e8, size=8,

msg_type=1, msg_cont=0x0, msg_data=0x9e6de920 "h\\224K\\b",

allocator_strategy=0x0, locking_strategy=0x0, flags=1, priority=0,

execution_time=..., deadline_time=..., db=0x0,

data_block_allocator=0xb7f5bb20, message_block_allocator=0xb7f5bb20)

at ../../ace/Message_Block.cpp:727

No locals.

#7 0xb7e96ea8 in ACE_Message_Block (this=0xa7b119e8, size=8, msg_type=1,

msg_cont=0x0, msg_data=0x9e6de920 "h\\224K\\b", allocator_strategy=0x0,

locking_strategy=0x0, priority=0, execution_time=..., deadline_time=...,

data_block_allocator=0x0, message_block_allocator=0xb7f5bb20)

at ../../ace/Message_Block.cpp:453

No locals.

#8 0xb7e4851c in ACE_Activation_Queue::enqueue (this=0xe592e14,

mr=0x9e6de920, tv=0x856cc20) at ../../ace/Activation_Queue.cpp:113

mb = <value optimized out>

result = <value optimized out>

#9 0x08451412 in DelayExecutor::execute (this=0xe592dc8, new_req=0x9e6de920)

at ../../../src/shared/DelayExecutor.cpp:108

No locals.

#10 0x08243210 in MapUpdater::schedule_update (this=0xe592dc4, map=...,

diff=151) at ../../../src/game/MapUpdater.cpp:101

guard = {lock_ = 0xe592e6c, owner_ = 0}

#11 0x08241e36 in MapManager::Update (this=0xe592d50, diff=52)

at ../../../src/game/MapManager.cpp:271

No locals.

#12 0x083b192a in World::Update (this=0xb6c0a930, diff=52)

at ../../../src/game/World.cpp:1409

No locals.

#13 0x081235e8 in WorldRunnable::run (this=0xb4af75b0)

at ../../../src/mangosd/WorldRunnable.cpp:60

diff = 52

realCurrTime = 4267529657

realPrevTime = <value optimized out>

prevSleepTime = 50

#14 0x084545da in ACE_Based::Thread::ThreadTask (param=0xb4af75b0)

at ../../../src/shared/Threading.cpp:183

No locals.

#15 0xb7eb071e in ACE_OS_Thread_Adapter::invoke (this=0xb4af75e0)

at ../../ace/OS_Thread_Adapter.cpp:90

hook = 0xaa600070

func = 0x84545c0 <ACE_Based::Thread::ThreadTask(void*)>

arg = 0xb4af75b0

status = 0x4fe

#16 0xb7e5a0d1 in ace_thread_adapter (args=0xb4af75e0)

at ../../ace/Base_Thread_Adapter.cpp:124

status = 0x4fe

#17 0xb789b4c0 in start_thread () from /lib/i686/cmov/libpthread.so.0

No symbol table info available.

#18 0xb76f86de in clone () from /lib/i686/cmov/libc.so.6

No symbol table info available.

BTW how to read exactly those crashfiles?

Link to comment
Share on other sites

With the patch of infinity, yeah i haven't crash like "if(!spell->target)", but a lot of crash appear with the patch (with delete pointer i think).

Some crashlog :

- http://paste2.org/p/688254

- http://paste2.org/p/688257

- http://paste2.org/p/688258

So, for the moment i add a #omp pragma critial(blk) and no crash, but performance is better without lock.

Link to comment
Share on other sites

With the patch of infinity, yeah i haven't crash like "if(!spell->target)", but a lot of crash appear with the patch (with delete pointer i think).

Some crashlog :

- http://paste2.org/p/688254

- http://paste2.org/p/688257

- http://paste2.org/p/688258

So, for the moment i add a #omp pragma critial(blk) and no crash, but performance is better without lock.

Can you post your rev. , avg. online, avg. uptime and locked code points please.

I asked this because of that i have lots of crashes with online ~ 500

Best Regards

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use