Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash when enabling mercenaries on new install #4596

Open
yaroto98 opened this issue Jan 16, 2025 · 3 comments
Open

Crash when enabling mercenaries on new install #4596

yaroto98 opened this issue Jan 16, 2025 · 3 comments

Comments

@yaroto98
Copy link

yaroto98 commented Jan 16, 2025

I have an Ubuntu 24.04.1 brand new VM. I installed docker during VM install. Then following the instructions:
https://docs.eqemu.io/akk-stack/installation/

I installed docker-compose and the akk-stack. Following install, I enabled bots. So far everything has gone well and no noticable errors. When I install mercs, I get the following error:

b093cf0164de:~/server/bin$ ./world mercenaries:enable

World | Info | LoadPaths ----------------------------------------------------------------------
World | Info | LoadPaths server > [/home/eqemu/server]
World | Info | LoadPaths logs > [logs]
World | Info | LoadPaths lua mods > [mods]
World | Info | LoadPaths lua_modules > [quests/lua_modules]
World | Info | LoadPaths maps > [maps]
World | Info | LoadPaths patches > [assets/patches]
World | Info | LoadPaths opcode > [assets/opcodes]
World | Info | LoadPaths plugins > [quests/plugins]
World | Info | LoadPaths quests > [quests]
World | Info | LoadPaths shared_memory > [shared]
World | Info | LoadPaths ----------------------------------------------------------------------
World | Info | LoadServerConfig Loading server configuration
World | Info | main CURRENT_VERSION [22.61.0]
World | Info | RegisterLoginservers Added loginserver [login.projecteq.net:5998]
World | Info | RegisterLoginservers Added loginserver [127.0.0.1:5998]
World | Info | RegisterLoginservers Added loginserver [login.eqemulator.net:5998]
World | Info | LoadDatabaseConnections Connecting to MySQL [eqemu@mariadb:3306]
World | Info | Connect Connected to database [default] [peq] @ [mariadb:3306]
free(): double free detected in tcache 2
30 ../sysdeps/unix/sysv/linux/wait4.c: No such file or directory.
World | Crash | print_trace stack trace for /home/eqemu/code/build/bin/world pid=665
World | Crash | print_trace [New LWP 666]
World | Crash | print_trace [New LWP 667]
World | Crash | print_trace [New LWP 668]
World | Crash | print_trace [New LWP 669]
World | Crash | print_trace [Thread debugging using libthread_db enabled]
World | Crash | print_trace Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
World | Crash | print_trace 0x000079140d80ab57 in __GI___wait4 (pid=685, stat_loc=0x0, options=0, usage=0x0) at ../sysdeps/unix/sysv/linux/wait4.c:30
World | Crash | print_trace [Current thread is 1 (Thread 0x79140d6f6ec0 (LWP 665))]
World | Crash | print_trace #0 0x000079140d80ab57 in __GI___wait4 (pid=685, stat_loc=0x0, options=0, usage=0x0) at ../sysdeps/unix/sysv/linux/wait4.c:30
World | Crash | print_trace #1 0x000064143e7108db in print_trace () at /drone/src/common/crash.cpp:281
World | Crash | print_trace #2
World | Crash | print_trace #3 __pthread_kill_implementation (threadid=, signo=signo@entry=6, no_tid=no_tid@entry=0) at ./nptl/pthread_kill.c:44
World | Crash | print_trace #4 0x000079140d7c1e9f in __pthread_kill_internal (signo=6, threadid=) at ./nptl/pthread_kill.c:78
World | Crash | print_trace #5 0x000079140d772fb2 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
World | Crash | print_trace #6 0x000079140d75d472 in __GI_abort () at ./stdlib/abort.c:79
World | Crash | print_trace #7 0x000079140d7b6430 in __libc_message (action=action@entry=do_abort, fmt=fmt@entry=0x79140d8d0459 "H�L���\n") at ../sysdeps/posix/libc_fatal.c:155
World | Crash | print_trace #8 0x000079140d7cb7ba in malloc_printerr (str=str@entry=0x79140d8d3098 "free(): double free detected in tcache 2") at ./malloc/malloc.c:5660
World | Crash | print_trace #9 0x000079140d7cda46 in _int_free (av=0x79140d909c60 <main_arena>, p=0x6414478ecdb0, have_lock=have_lock@entry=0) at ./malloc/malloc.c:4469
World | Crash | print_trace #10 0x000079140d7cfe9f in __GI___libc_free (mem=) at ./malloc/malloc.c:3385
World | Crash | print_trace #11 0x000064143e788254 in DBcore::SetMutex (this=0x64143f09a650 <content_db+8>, mutex=0x6414478ecdc0) at /drone/src/common/dbcore.cpp:305
World | Crash | print_trace #12 0x000064143e6c4db6 in WorldBoot::LoadDatabaseConnections () at /drone/src/world/world_boot.cpp:162
World | Crash | print_trace #13 0x000064143e6621c3 in main (argc=2, argv=0x7fffaef323b8) at /drone/src/world/main.cpp:170
World | Crash | print_trace [Inferior 1 (process 665) detached]
World | Info | SendCrashReport Sent crash report

I believe it's due to the line: ../sysdeps/unix/sysv/linux/wait4.c: No such file or directory. Googled around, but didn't find anything helpful to fix.

@fryguy503
Copy link
Contributor

You need to run it from the /server/ folder not the bin folder e.g. ./bin/world mercenaries:enable

@yaroto98
Copy link
Author

I will try that, but if that is the case then the install docs should be updated to reflect that.

https://docs.eqemu.io/akk-stack/installation/#deploying-mercenaries

@yaroto98
Copy link
Author

You need to run it from the /server/ folder not the bin folder e.g. ./bin/world mercenaries:enable

Same thing:

b093cf0164de:~/server$ ./bin/world mercenaries:enable

World | Info | LoadPaths ----------------------------------------------------------------------
World | Info | LoadPaths server > [/home/eqemu/server]
World | Info | LoadPaths logs > [logs]
World | Info | LoadPaths lua mods > [mods]
World | Info | LoadPaths lua_modules > [quests/lua_modules]
World | Info | LoadPaths maps > [maps]
World | Info | LoadPaths patches > [assets/patches]
World | Info | LoadPaths opcode > [assets/opcodes]
World | Info | LoadPaths plugins > [quests/plugins]
World | Info | LoadPaths quests > [quests]
World | Info | LoadPaths shared_memory > [shared]
World | Info | LoadPaths ----------------------------------------------------------------------
World | Info | LoadServerConfig Loading server configuration
World | Info | main CURRENT_VERSION [22.61.0]
World | Info | RegisterLoginservers Added loginserver [login.projecteq.net:5998]
World | Info | RegisterLoginservers Added loginserver [127.0.0.1:5998]
World | Info | RegisterLoginservers Added loginserver [login.eqemulator.net:5998]
World | Info | LoadDatabaseConnections Connecting to MySQL [eqemu@mariadb:3306]
World | Info | Connect Connected to database [default] [peq] @ [mariadb:3306]
free(): double free detected in tcache 2
30 ../sysdeps/unix/sysv/linux/wait4.c: No such file or directory.
World | Crash | print_trace stack trace for /home/eqemu/code/build/bin/world pid=3741
World | Crash | print_trace [New LWP 3742]
World | Crash | print_trace [New LWP 3743]
World | Crash | print_trace [New LWP 3744]
World | Crash | print_trace [New LWP 3745]
World | Crash | print_trace [Thread debugging using libthread_db enabled]
World | Crash | print_trace Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
World | Crash | print_trace 0x000076754a2deb57 in __GI___wait4 (pid=3757, stat_loc=0x0, options=0, usage=0x0) at ../sysdeps/unix/sysv/linux/wait4.c:30
World | Crash | print_trace [Current thread is 1 (Thread 0x76754a1caec0 (LWP 3741))]
World | Crash | print_trace #0 0x000076754a2deb57 in __GI___wait4 (pid=3757, stat_loc=0x0, options=0, usage=0x0) at ../sysdeps/unix/sysv/linux/wait4.c:30
World | Crash | print_trace #1 0x0000610490e048db in print_trace () at /drone/src/common/crash.cpp:281
World | Crash | print_trace #2
World | Crash | print_trace #3 __pthread_kill_implementation (threadid=, signo=signo@entry=6, no_tid=no_tid@entry=0) at ./nptl/pthread_kill.c:44
World | Crash | print_trace #4 0x000076754a295e9f in __pthread_kill_internal (signo=6, threadid=) at ./nptl/pthread_kill.c:78
World | Crash | print_trace #5 0x000076754a246fb2 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
World | Crash | print_trace #6 0x000076754a231472 in __GI_abort () at ./stdlib/abort.c:79
World | Crash | print_trace #7 0x000076754a28a430 in __libc_message (action=action@entry=do_abort, fmt=fmt@entry=0x76754a3a4459 "H�L���\n") at ../sysdeps/posix/libc_fatal.c:155
World | Crash | print_trace #8 0x000076754a29f7ba in malloc_printerr (str=str@entry=0x76754a3a7098 "free(): double free detected in tcache 2") at ./malloc/malloc.c:5660
World | Crash | print_trace #9 0x000076754a2a1a46 in _int_free (av=0x76754a3ddc60 <main_arena>, p=0x6104cc3a3db0, have_lock=have_lock@entry=0) at ./malloc/malloc.c:4469
World | Crash | print_trace #10 0x000076754a2a3e9f in __GI___libc_free (mem=) at ./malloc/malloc.c:3385
World | Crash | print_trace #11 0x0000610490e7c254 in DBcore::SetMutex (this=0x61049178e650 <content_db+8>, mutex=0x6104cc3a3dc0) at /drone/src/common/dbcore.cpp:305
World | Crash | print_trace #12 0x0000610490db8db6 in WorldBoot::LoadDatabaseConnections () at /drone/src/world/world_boot.cpp:162
World | Crash | print_trace #13 0x0000610490d561c3 in main (argc=2, argv=0x7ffcc899ac38) at /drone/src/world/main.cpp:170
World | Crash | print_trace [Inferior 1 (process 3741) detached]
World | Info | SendCrashReport Sent crash report

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants