Jump to content
  • 0

[Solved] SegFault C++ Scripts


silent

Question

Posted
Initializing Scripts...

___ _ _ ___ ___

/ __| __ _ _(_)_ __| |_| \ _____ _|_ )

\__ \/ _| '_| | '_ \ _| |) / -_) V // /

|___/\__|_| |_| .__/\__|___/\___|\_//___|

|_|

http://scriptdev2.com/

SD2: Using configuration file /opt/mangos/etc/mangosd.conf

Connected to MySQL database [email protected]:3306/w

MySQL client library: 5.1.73

MySQL server ver: 5.1.73-1+deb6u1

AUTOCOMMIT SUCCESSFULLY SET TO 1

Connected to MySQL database [email protected]:3306/w

MySQL client library: 5.1.73

MySQL server ver: 5.1.73-1+deb6u1

AUTOCOMMIT SUCCESSFULLY SET TO 1

SD2: ScriptDev2 database initialized.

SD2: Loading C++ scripts

[Segmentation fault********************************] 100%

What is this segmentation fault error?

After loading c++ scripts mangosd stops loading

SD2: Loading C++ scripts

[*** glibc detected *** ./mangosd: corrupted double-linked list: 0x00000000037993e0 ***

======= Backtrace: =========

/lib/libc.so.6(+0x71b36)[0x7fd0de305b36]

/lib/libc.so.6(+0x71f6d)[0x7fd0de305f6d]

/lib/libc.so.6(+0x742b4)[0x7fd0de3082b4]

/lib/libc.so.6(__libc_malloc+0x70)[0x7fd0de30a990]

/usr/lib/libstdc++.so.6(_Znwm+0x1d)[0x7fd0ded756bd]

/opt/mangos/lib/libmangosscript.so(InitScriptLibrary+0x42c)[0x7fd0d00755bc]

./mangosd(_ZN9ScriptMgr17LoadScriptLibraryEPKc+0x726)[0x7e69c6]

./mangosd(_ZN5World23SetInitialWorldSettingsEv+0x1131)[0x855a31]

./mangosd(_ZN6Master3RunEv+0x150)[0x518230]

./mangosd(main+0x413)[0x517213]

/lib/libc.so.6(__libc_start_main+0xfd)[0x7fd0de2b2cad]

./mangosd[0x512de9]

======= Memory map: ========

00400000-00b52000 r-xp 00000000 08:11 3550644 /opt/mangos/bin/mangosd

00d51000-00d59000 rw-p 00751000 08:11 3550644 /opt/mangos/bin/mangosd

00d59000-00d64000 rw-p 00000000 00:00 0

019f4000-0801a000 rw-p 00000000 00:00 0 [heap]

7fd0c8000000-7fd0c8021000 rw-p 00000000 00:00 0

7fd0c8021000-7fd0cc000000 ---p 00000000 00:00 0

7fd0cffd6000-7fd0d0150000 r-xp 00000000 08:11 3550656 /opt/mangos/lib/libmangosscript.so

7fd0d0150000-7fd0d0350000 ---p 0017a000 08:11 3550656 /opt/mangos/lib/libmangosscript.so

7fd0d0350000-7fd0d0368000 rw-p 0017a000 08:11 3550656 /opt/mangos/lib/libmangosscript.so

7fd0d0368000-7fd0d9207000 rw-p 00000000 00:00 0

7fd0d9993000-7fd0d9994000 ---p 00000000 00:00 0

7fd0d9994000-7fd0dc22d000 rw-p 00000000 00:00 0

7fd0dc22d000-7fd0dc22e000 ---p 00000000 00:00 0

7fd0dc22e000-7fd0dca2e000 rw-p 00000000 00:00 0

7fd0dca2e000-7fd0dca2f000 ---p 00000000 00:00 0

7fd0dca2f000-7fd0dd22f000 rw-p 00000000 00:00 0

7fd0dd22f000-7fd0dd23b000 r-xp 00000000 08:11 2230393 /lib/libnss_files-2.11.3.so

7fd0dd23b000-7fd0dd43a000 ---p 0000c000 08:11 2230393 /lib/libnss_files-2.11.3.so

7fd0dd43a000-7fd0dd43b000 r--p 0000b000 08:11 2230393 /lib/libnss_files-2.11.3.so

7fd0dd43b000-7fd0dd43c000 rw-p 0000c000 08:11 2230393 /lib/libnss_files-2.11.3.so

7fd0dd43c000-7fd0dd43d000 ---p 00000000 00:00 0

7fd0dd43d000-7fd0ddc3d000 rw-p 00000000 00:00 0

7fd0ddc3d000-7fd0ddc52000 r-xp 00000000 08:11 2230397 /lib/libnsl-2.11.3.so

7fd0ddc52000-7fd0dde51000 ---p 00015000 08:11 2230397 /lib/libnsl-2.11.3.so

7fd0dde51000-7fd0dde52000 r--p 00014000 08:11 2230397 /lib/libnsl-2.11.3.so

7fd0dde52000-7fd0dde53000 rw-p 00015000 08:11 2230397 /lib/libnsl-2.11.3.so

7fd0dde53000-7fd0dde55000 rw-p 00000000 00:00 0

7fd0dde55000-7fd0dde5d000 r-xp 00000000 08:11 2230404 /lib/libcrypt-2.11.3.so

7fd0dde5d000-7fd0de05c000 ---p 00008000 08:11 2230404 /lib/libcrypt-2.11.3.so

7fd0de05c000-7fd0de05d000 r--p 00007000 08:11 2230404 /lib/libcrypt-2.11.3.so

7fd0de05d000-7fd0de05e000 rw-p 00008000 08:11 2230404 /lib/libcrypt-2.11.3.so

7fd0de05e000-7fd0de08c000 rw-p 00000000 00:00 0

7fd0de08c000-7fd0de093000 r-xp 00000000 08:11 2230390 /lib/librt-2.11.3.so

7fd0de093000-7fd0de292000 ---p 00007000 08:11 2230390 /lib/librt-2.11.3.so

7fd0de292000-7fd0de293000 r--p 00006000 08:11 2230390 /lib/librt-2.11.3.so

7fd0de293000-7fd0de294000 rw-p 00007000 08:11 2230390 /lib/librt-2.11.3.so

7fd0de294000-7fd0de3ec000 r-xp 00000000 08:11 2230406 /lib/libc-2.11.3.so

7fd0de3ec000-7fd0de5ec000 ---p 00158000 08:11 2230406 /lib/libc-2.11.3.so

7fd0de5ec000-7fd0de5f0000 r--p 00158000 08:11 2230406 /lib/libc-2.11.3.so

7fd0de5f0000-7fd0de5f1000 rw-p 0015c000 08:11 2230406 /lib/libc-2.11.3.so

7fd0de5f1000-7fd0de5f6000 rw-p 00000000 00:00 0

7fd0de5f6000-7fd0de60d000 r-xp 00000000 08:11 2230395 /lib/libpthread-2.11.3.so

7fd0de60d000-7fd0de80c000 ---p 00017000 08:11 2230395 /lib/libpthread-2.11.3.so

7fd0de80c000-7fd0de80d000 r--p 00016000 08:11 2230395 /lib/libpthread-2.11.3.so

7fd0de80d000-7fd0de80e000 rw-p 00017000 08:11 2230395 /lib/libpthread-2.11.3.so

7fd0de80e000-7fd0de812000 rw-p 00000000 00:00 0

7fd0de812000-7fd0de828000 r-xp 00000000 08:11 2230163 /lib/libgcc_s.so.1

7fd0de828000-7fd0dea27000 ---p 00016000 08:11 2230163 /lib/libgcc_s.so.1

7fd0dea27000-7fd0dea28000 rw-p 00015000 08:11 2230163 /lib/libgcc_s.so.1

7fd0dea28000-7fd0deaa8000 r-xp 00000000 08:11 2230392 /lib/libm-2.11.3.so

7fd0deaa8000-7fd0deca8000 ---p 00080000 08:11 2230392 /lib/libm-2.11.3.so

7fd0deca8000-7fd0deca9000 r--p 00080000 08:11 2230392 /lib/libm-2.11.3.so

7fd0deca9000-7fd0decaa000 rw-p 00081000 08:11 2230392 /lib/libm-2.11.3.so

7fd0decaa000-7fd0deda0000 r-xp 00000000 08:11 2364657 /usr/lib/libstdc++.so.6.0.13

7fd0deda0000-7fd0defa0000 ---p 000f6000 08:11 2364657 /usr/lib/libstdc++.so.6.0.13

7fd0defa0000-7fd0defa7000 r--p 000f6000 08:11 2364657 /usr/lib/libstdc++.so.6.0.13

7fd0defa7000-7fd0defa9000 rw-p 000fd000 08:11 2364657 /usr/lib/libstdc++.so.6.0.13

7fd0defa9000-7fd0defbe000 rw-p 00000000 00:00 0

7fd0defbe000-7fd0defc0000 r-xp 00000000 08:11 2230632 /lib/libdl-2.11.3.so

7fd0defc0000-7fd0df1c0000 ---p 00002000 08:11 2230632 /lib/libdl-2.11.3.so

7fd0df1c0000-7fd0df1c1000 r--p 00002000 08:11 2230632 /lib/libdl-2.11.3.so

7fd0df1c1000-7fd0df1c2000 rw-p 00003000 08:11 2230632 /lib/libdl-2.11.3.so

7fd0df1c2000-7fd0df1d9000 r-xp 00000000 08:11 2364635 /usr/lib/libz.so.1.2.3.4

7fd0df1d9000-7fd0df3d8000 ---p 00017000 08:11 2364635 /usr/lib/libz.so.1.2.3.4

7fd0df3d8000-7fd0df3d9000 rw-p 00016000 08:11 2364635 /usr/lib/libz.so.1.2.3.4

7fd0df3d9000-7fd0df54f000 r-xp 00000000 08:11 2364807 /usr/lib/libcrypto.so.0.9.8

7fd0df54f000-7fd0df74e000 ---p 00176000 08:11 2364807 /usr/lib/libcrypto.so.0.9.8

7fd0df74e000-7fd0df777000 rw-p 00175000 08:11 2364807 /usr/lib/libcrypto.so.0.9.8

7fd0df777000-7fd0df77a000 rw-p 00000000 00:00 0

7fd0df77a000-7fd0df7cb000 r-xp 00000000 08:11 2364806 /usr/lib/libssl.so.0.9.8

7fd0df7cb000-7fd0df9ca000 ---p 00051000 08:11 2364806 /usr/lib/libssl.so.0.9.8

7fd0df9ca000-7fd0df9d1000 rw-p 00050000 08:11 2364806 /usr/lib/libssl.so.0.9.8Aborted

7 answers to this question

Recommended Posts

Posted

Hello, I am also having a similar issue and may not be following the suggestions to fix it propperly and could use help/clairification

This is on MangosZero on a linux/mint operating system

When using the full_db.sql (made from make_full_db.sh) in: mangoscode/database/_tools/ from: git clone --recursive mangoszero/database · GitHub

I get the error:

Loading ScriptDev2 (for MaNGOS Zero Release 0.19+) Revision [Rel0.19] (*) * * (Unix)

SD2: Loading Script Texts...

Loading texts from script_texts, with additional data

[>> Loaded 1316 text templates from script_texts***] 100%

SD2: Loading Custom Texts...

Loading texts from custom_texts, with additional data

[**************************************************] 100%

>> Loaded 0 string templates. DB table `custom_texts` is empty.

SD2: Loading Gossip Texts...

Loading texts from gossip_texts

[>> Loaded 23 string templates from gossip_texts***] 100%

SD2: Loading Script Waypoints for 53 creature(s)...

[>> Loaded 1378 Script Waypoint nodes.*************] 100%

SD2: Loading C++ scripts

[segmentation fault********************************] 100%

hp@hp-PP132AA-ABA-M1270N /home/mangosserver/bin $

Now it appears to be Rel19 from sources I can find in the mangoscode/database/_tools/, though when I use git pull on the 'database' dir it tells me it is up to date.

So I have also tried using the "mangos_full_db.sql" crated by the "make_full_WorldDB.sh" from the "MangosZero_Rel20_BETA_x32_Nov2014.zip"

Here I get a very strange error where it tells be I need to update backwords.. which does not work:

| \/ |__ _| \| |/ __|/ _ \/ __| We Love

| |\/| / _` | .` | (_ | (_) \__ \ Vanilla Wow

|_| |_\__,_|_|\_|\___|\___/|___/

____

For help and support please visit: /_ /___ _ _ ___

Website: https://getmangos.eu / // -_) '_/ _ \

Wiki: MaNGOS Wiki · GitHub /___\___|_| \___/

Using configuration file /home/mangosserver/etc/mangosd.conf.

OpenSSL 1.0.1f 6 Jan 2014 (Library: OpenSSL 1.0.1f 6 Jan 2014)

Using ACE: 6.0.3

World Database total connections: 2

Connected to MySQL database [email protected]:3306/mangos

MySQL client library: 5.5.40

MySQL server ver: 5.5.40-0ubuntu0.14.04.1

AUTOCOMMIT SUCCESSFULLY SET TO 1

Connected to MySQL database [email protected]:3306/mangos

MySQL client library: 5.5.40

MySQL server ver: 5.5.40-0ubuntu0.14.04.1

AUTOCOMMIT SUCCESSFULLY SET TO 1

SQL: SELECT required_19003_02_mangos_command FROM db_version LIMIT 1

query ERROR: Unknown column 'required_19003_02_mangos_command' in 'field list'

The table `db_version` in your [WORLD] database indicates that this database is out of date!

[A] You have: --> `20003_03_mangos_spell_bonus_data.sql`

You need: --> `19003_02_mangos_command.sql`

You must apply all updates after [A] to to use mangos with this database.

These updates are included in the sql/updates folder.

Please read the included [README] in sql/updates for instructions on updating.

*** Error in `./mangosd': free(): corrupted unsorted chunks: 0x0897b5a0 ***

Aborted

hp@hp-PP132AA-ABA-M1270N /home/mangosserver/bin $

As you can see it is asking to update from Rel 20 info back to Rel 19.... of course I tried to be thorough I did try and I get:

hp@hp-PP132AA-ABA-M1270N ~/mangoscode/Database/World/Updates/Rel19 $ mysql -u root -h localhost -p mangos < 19003_02_mangos_command.sql

Enter password:

ERROR 1054 (42S22) at line 1: Unknown column 'required_19003_01_mangos_string' in 'db_version'

Any help would be appreaciated

Thank you

Zander

Posted

You have updated the Database, but not the server code itself

- Please use the Rel20 branch as the current Rel19 (master) is almost a year behind

use:

git clone [url]https://github.com/mangoszero/server.git[/url] --recursive -b Rel20

git clone [url]https://github.com/mangoszero/database.git[/url] --recursive -b Rel20

To get the latest code and database

Archived

This topic is now archived and is 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