Segmentation fault

Статус
В этой теме нельзя размещать новые ответы.
Сообщения
384
Реакции
279
Помог
3 раз(а)
Ошибка
Segmentation fault
ОС
Linux
Amx Mod X
AMX Mod X 1.9.0.5221
Билд
Exe version 1.1.2.7/Stdio (cstrike)
ReHLDS version: 3.4.0.664-dev
Build date: 10:46:45 Sep 19 2018 (1621)
ReGamedll
ReGameDLL version: 5.7.0.313-dev
Build date: 08:39:22 Sep 9 2018
Версия Metamod
Metamod-r v1.3.0.128, API (5:13)
Metamod-r build: 17:47:54 Aug 24 2018
Список метамодулей
[ 1] AMX Mod X        RUN   -    amxmodx_mm_i386.so        v1.9.0.5221     ini  Start ANY
[ 2] VoiceTranscoder RUN - VoiceTranscoder.so v2017RC3 ini ANY ANY
[ 3] Rechecker RUN - rechecker_mm_i386.so v2.5 ini Chlvl ANY
[ 4] Reunion RUN - reunion_mm_i386.so v0.1.0.92 ini Start Never
[ 5] ReSRDetector RUN - resrdetector_mm_i386.so v0.1.0 ini Chlvl ANY
[ 6] ReAuthCheck RUN - reauthcheck_mm_i386.so v0.1.6 ini Start Never
[ 7] WHBlocker RUN - whblocker_mm_i386.so v1.5.695 ini Chlvl ANY
[ 8] FakeMeta RUN - fakemeta_amxx_i386.so v1.9.0.5221 pl1 ANY ANY
[ 9] MySQL RUN - mysql_amxx_i386.so v1.9.0.5221 pl1 ANY ANY
[10] ReAPI RUN - reapi_amxx_i386.so v5.6.0.158-dev pl1 ANY Never
[11] Ham Sandwich RUN - hamsandwich_amxx_i386.so v1.9.0.5221 pl1 ANY ANY
Список плагинов
Currently loaded plugins:
name version author file status
[ 1] FreshBans 1.4.0b kanagava fresh_bans_140_ running
[ 2] WebHS 0.1 kanagava fb_web_online.a running
[ 3] Admin Load 3.9.3 Dev F@nt0M adminload.amxx running
[ 4] Admin Commands 1.8.2 AMXX Dev Team admincmd.amxx running
[ 5] Multi-Lingual System 1.9.0.5221 AMXX Dev Team multilingual.am running
[ 6] Menus Front-End 1.9.0.5221 AMXX Dev Team menufront.amxx running
[ 7] Commands Menu 1.9.0.5221 AMXX Dev Team cmdmenu.amxx running
[ 8] Players Menu 1.8.2 AMXX Dev Team plmenu.amxx running
[ 9] Teleport Menu 1.9.0.5221 AMXX Dev Team telemenu.amxx running
[ 10] Maps Menu 1.4.1 neugomon mapsmenu.amxx running
[ 11] Plugin Menu 1.9.0.5221 AMXX Dev Team pluginmenu.amxx running
[ 12] Anti Flood 1.9.0.5221 AMXX Dev Team antiflood.amxx running
[ 13] Pause Plugins 1.9.0.5221 AMXX Dev Team pausecfg.amxx running
[ 14] Ultimate Chats Control 4.5 neygomon ucc.amxx running
[ 15] Lite Translit 2.8 [AW] neygomon liteTranslit.am running
[ 16] Map Manager: Core 3.0.0-Beta Mistrick map_manager_cor running
[ 17] Map Manager: Scheduler 0.0.8 Mistrick map_manager_sch running
[ 18] Map Manager: Rtv 0.0.3 Mistrick map_manager_rtv running
[ 19] Map Manager: Nominatio 0.0.6 Mistrick map_manager_nom running
[ 20] Map Manager: BlockList 0.0.3 Mistrick map_manager_blo running
[ 21] Map Manager: Effects 0.0.6 Mistrick map_manager_eff running
[ 22] Map Manager: Informer 0.0.4 Mistrick map_manager_inf running
22 plugins, 22 running

jbm_core.amxx <- Из за него краш
Автор плагина
AlexandrFiner
Версия плагина
10.0
Исходный код
Прикреплён
Код:
L 09/26/2018 - 08:34:16: -------- Mapchange to jail_xmf --------
L 09/26/2018 - 08:34:16: [META] dll: Loaded plugin 'Fun': Fun v1.9.0.5221 Sep 10 2018, AMX Mod X Dev Team
L 09/26/2018 - 08:34:16: [META] dll: Begin scan to collect callback fix data...
L 09/26/2018 - 08:34:16: [META] dll: Rebuilding callbacks...
L 09/26/2018 - 08:34:16: [META] dll: Begin callbacks fixing...
L 09/26/2018 - 08:34:16: [META] dll: Callbacks rebuilded.
L 09/26/2018 - 08:34:16: [META] dll: Loaded plugin 'Engine': Engine v1.9.0.5221 Sep 10 2018, AMX Mod X Dev Team
L 09/26/2018 - 08:34:16: [META] dll: Begin scan to collect callback fix data...
L 09/26/2018 - 08:34:16: [META] dll: Rebuilding callbacks...
L 09/26/2018 - 08:34:16: [META] dll: Begin callbacks fixing...
L 09/26/2018 - 08:34:16: [META] dll: Callbacks rebuilded.
Segmentation fault
26 Сен 2018
В чём может быть ошибка? Хотя бы примерно где искать?
 
В этой теме было размещено решение! Перейти к решению.

Вложения

Последнее редактирование:
Сообщения
496
Реакции
618
Помог
16 раз(а)
Вам следует запросить ваш хостинг дамп падения.
 
Сообщения
384
Реакции
279
Помог
3 раз(а)
Gudaus, Добавил параметр -debug...
Добавилась надпись (core dumped)

И вот всё что в консоли при запуске

Код:
Console initialized.
Using breakpad crash handler
Setting breakpad minidump AppID = 10
Forcing breakpad minidump interfaces to load
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
Console initialized.
Base networking initialized.
"sv_cheats" changed to "1"
Initializing deltas
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
Exe build: 10:46:45 Sep 19 2018 (1621)
"sv_version" changed to "1.1.2.7/Stdio,48,1621"
40.0 Mb heap
STEAM Auth Server
execing valve.rc
execing language.cfg
execing autoexec.cfg
execing violence.cfg
Server IP address 10.223.15.240:27015

Adding:  cstrike/addons/metamod/metamod_i386.so

   Metamod-r version 1.3.0.128 Copyright (c) 2016-2018 ReHLDS Team (rebuild of original Metamod by Will Day and Jussi Kivilinna)
   Metamod-r comes with ABSOLUTELY NO WARRANTY; for details type `meta gpl'.
   This is free software, and you are welcome to redistribute it
   under certain conditions; type `meta gpl' for details.

Metamod-r v1.3.0.128, API (5:13)
Metamod-r build: 17:47:48 Aug 24 2018
Metamod-r from: https://github.com/theAsmodai/metamod-r/commit/0cf2f70
execing addons/VoiceTranscoder/VoiceTranscoder.cfg
[ReSRDetector] Version: 0.1.0 Linux 'Counter-Strike 1.6'
[ReSRDetector] Success: Configuration executed.
[ReSRDetector] Success: Build ReHLDS version defined Linux '1621'
[ReAuthCheck] Version: 0.1.6 Linux 'Counter-Strike 1.6'
[ReAuthCheck] Success: Configuration executed.
[ReAuthCheck] Success: Build ReHLDS version defined Linux '1621'
[WHB] Version: 1.5.695 Linux (Usage SSE 4.1)
[WHB] Success: Build ReHLDS version defined Linux '1621'
[WHB] Success: Configuration executed.

   AMX Mod X version 1.9.0.5221 Copyright (c) 2004-2015 AMX Mod X Development Team
   AMX Mod X comes with ABSOLUTELY NO WARRANTY; for details type `amxx gpl'.
   This is free software and you are welcome to redistribute it under
   certain conditions; type 'amxx gpl' for details.

Dll loaded for mod Counter-Strike
ReGameDLL version: 5.7.0.313-dev
Spawn Server jail_xmf
Clearing memory
Using WAD File: decals.wad
Using WAD File: halflife.wad
Texture load:    5.1ms
Building PAS...
Average leaves visible / audible / total: 218 / 1309 / 2073
"amxmodx_version" changed to "1.9.0.5221"
Segmentation fault (core dumped)
./hlds_run: 201: ./hlds_run: gdb: not found
email debug.log to [email protected]
Wed Sep 26 21:31:38 MSK 2018: Server restart in 10 seconds
Вот дебаг лог который в корне сервера
Код:
----------------------------------------------
CRASH: Wed Sep 26 21:31:38 MSK 2018
Start Line: ./hlds_linux -game cstrike -strictportbind +ip 10.223.15.240 -port 27015 +clientport 27005 +map jail_xmf +servercfgfile csserver.cfg -maxplayers 28 -pingboost 1 -debug -dev -pidfile hlds.30264.pid
End of crash report
----------------------------------------------
 
Сообщения
384
Реакции
279
Помог
3 раз(а)
Arkshine, thx

Gudaus,
Консоль
Код:
Segmentation fault (core dumped)
BFD: Warning: /home/srv/serverfiles/core is truncated: expected core file size >= 142143488, found: 3014656.
Cannot access memory at address 0xf771a908
Cannot access memory at address 0xf771a904
Failed to read a valid object file image from memory.
Cannot access memory at address 0xf771a908
Cannot access memory at address 0xf771a904
debug.cmds:4: Error in sourced command file:
Cannot access memory at address 0xff9a8b54
email debug.log to [email protected]
Wed Sep 26 21:50:18 MSK 2018: Server restart in 10 seconds
Дебаг лог
Код:
----------------------------------------------
CRASH: Wed Sep 26 21:53:31 MSK 2018
Start Line: ./hlds_linux -game cstrike -strictportbind +ip 10.223.15.240 -port 27015 +clientport 27005 +map jail_xmf +servercfgfile csserver.cfg -maxplayers 28 -pingboost 1 -debug -dev -pidfile hlds.32723.pid
[New LWP 889]
[New LWP 890]
[New LWP 891]
[New LWP 892]
Core was generated by `./hlds_linux -game cstrike -strictportbind +ip 10.223.15.240 -port 27015 +clien'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0xf6e363d0 in ?? ()
[Current thread is 1 (LWP 889)]
#0  0xf6e363d0 in ?? ()
Backtrace stopped: Cannot access memory at address 0xff924ad4
No symbol table info available.
No shared libraries loaded at this time.
Stack level 0, frame at 0xff924ad8:
eip = 0xf6e363d0; saved eip = <not saved>
Outermost frame: Cannot access memory at address 0xff924ad4
Arglist at 0xff924ad0, args:
Locals at 0xff924ad0, Previous frame's sp is 0xff924ad8
End of crash report
----------------------------------------------
 
Сообщения
23
Реакции
84
Помог
1 раз(а)
Is the crash reproducible? You said it happens because of jbm_core.sma.
 
Сообщения
384
Реакции
279
Помог
3 раз(а)
он спросил, можешь ли ты воспроизвести краш сам?
Это я понял... Но в каком плане воспроизвести? Вызвать специально? Или как? Если да, то для этого мне достаточно включить тот плагин... А вот что этот плагин делает не так... Самому бы узнать... 11к(или больше) строк... И даже близко не знаю что именно искать надо

Кстати ещё в файле hlds_run сделай так:
Вместо ulimit -c 2000
это
Завтра попробую... А что это изменит?
 
Сообщения
23
Реакции
84
Помог
1 раз(а)
I asked if you can reproduce because it seems you can make it crash easily. If you know how you should give the steps, or at least after what actions or events it happens. I tried to run the plugin but it misses config files and others things, so I can't really help unless you provide (by PM) your whole addon in a ZIP, so I can test as it is on my test server.
 
Сообщения
2,713
Реакции
2,993
Помог
59 раз(а)
Simple send "addons/amxmodx/" zipped dir to Arkshine PM.
 
Сообщения
384
Реакции
279
Помог
3 раз(а)
Кстати ещё в файле hlds_run сделай так:
Вместо ulimit -c 2000
это
ulimit -c unlimited
Дебаг лог
Код:
----------------------------------------------
CRASH: Thu Sep 27 12:50:59 MSK 2018
Start Line: ./hlds_linux -game cstrike -strictportbind +ip 10.223.15.240 -port 27015 +clientport 27005 +map jail_xmf +servercfgfile csserver.cfg -maxplayers 28 -pingboost 1 -debug -dev -pidfile hlds.23974.pid
[New LWP 23999]
[New LWP 24000]
[New LWP 24013]
[New LWP 24014]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `./hlds_linux -game cstrike -strictportbind +ip 10.223.15.240 -port 27015 +clien'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0xf6e4b3d0 in I3110 () from /home/srv/serverfiles/engine_i486.so
[Current thread is 1 (Thread 0xf743da80 (LWP 23999))]
#0  0xf6e4b3d0 in I3110 () from /home/srv/serverfiles/engine_i486.so
#1  0xe0dcd804 in ?? ()
#2  0xf424ffd4 in ?? ()
#3  0xf6dbf7fc in Mod_LoadStudioModel () from /home/srv/serverfiles/engine_i486.so
#4  0xf73cb940 in mod_known () from /home/srv/serverfiles/engine_i486.so
#5  0x09ab4680 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
No symbol table info available.
From        To          Syms Read   Shared Object Library
0xf7733a30  0xf7734921  Yes (*)     /lib/i386-linux-gnu/libdl.so.2
0xf76a6914  0xf76ecc78  Yes         ./libstdc++.so.6
0xf760f6e0  0xf7646fcb  Yes (*)     /lib/i386-linux-gnu/libm.so.6
0xf746b800  0xf759852f  Yes (*)     /lib/i386-linux-gnu/libc.so.6
0xf7747860  0xf776103d  Yes (*)     /lib/ld-linux.so.2
0xf7440e04  0xf7450490  Yes         ./libgcc_s.so.1
0xf6d74400  0xf6e584f0  Yes (*)     /home/srv/serverfiles/engine_i486.so
0xf6d39840  0xf6d3cdfc  Yes (*)     /lib/i386-linux-gnu/librt.so.1
0xf6d275c0  0xf6d31d74  Yes (*)     ./libsteam_api.so
0xf6d0c8c0  0xf6d19eb1  Yes (*)     /lib/i386-linux-gnu/libpthread.so.0
0xf6ceff40  0xf6d013f8  Yes (*)     /home/srv/serverfiles/filesystem_stdio.so
0xf58b9200  0xf67523c4  Yes (*)     /home/srv/.steam/sdk32/steamclient.so
0xf2f9a6a0  0xf2fdcf70  Yes (*)     /home/srv/serverfiles/./cstrike/addons/metamod/metamod_i386.so
0xf2d6d650  0xf2ee7540  Yes (*)     /home/srv/serverfiles/cstrike/dlls/cs.so
0xf2a528c0  0xf2c00571  Yes (*)     /home/srv/serverfiles/cstrike/addons/VoiceTranscoder/VoiceTranscoder.so
0xf29d7200  0xf29ea120  Yes (*)     /home/srv/serverfiles/cstrike/addons/rechecker/rechecker_mm_i386.so
0xf29ae3a0  0xf29c4370  Yes (*)     /home/srv/serverfiles/cstrike/addons/reunion/reunion_mm_i386.so
0xf2994980  0xf29a0d30  Yes (*)     /home/srv/serverfiles/cstrike/addons/resrdetector/resrdetector_mm_i386.so
0xf296bb40  0xf29750b0  Yes (*)     /home/srv/serverfiles/cstrike/addons/reauthcheck/reauthcheck_mm_i386.so
0xf28b0db0  0xf28ccec0  Yes (*)     /home/srv/serverfiles/cstrike/addons/whblocker/whblocker_mm_i386.so
0xf26d58f0  0xf2738937  Yes (*)     /home/srv/serverfiles/cstrike/addons/amxmodx/dlls/amxmodx_mm_i386.so
0xf17d6790  0xf186efc5  Yes (*)     cstrike/addons/amxmodx/modules/mysql_amxx_i386.so
0xf25b52d0  0xf2696980  Yes (*)     cstrike/addons/amxmodx/modules/sqlite_amxx_i386.so
0xf258c660  0xf2590f94  Yes (*)     cstrike/addons/amxmodx/modules/fun_amxx_i386.so
0xf2573290  0xf257f80c  Yes (*)     cstrike/addons/amxmodx/modules/engine_amxx_i386.so
0xf25339e0  0xf255fdbc  Yes (*)     cstrike/addons/amxmodx/modules/fakemeta_amxx_i386.so
0xf25099f0  0xf250f7b4  Yes (*)     cstrike/addons/amxmodx/modules/geoip_amxx_i386.so
0xf24fcf60  0xf24fe24c  Yes (*)     cstrike/addons/amxmodx/modules/sockets_amxx_i386.so
0xf24955d0  0xf24de548  Yes (*)     cstrike/addons/amxmodx/modules/regex_amxx_i386.so
0xf24859b0  0xf2489a08  Yes (*)     cstrike/addons/amxmodx/modules/nvault_amxx_i386.so
0xf246fd50  0xf247f460  Yes (*)     cstrike/addons/amxmodx/modules/cstrike_amxx_i386.so
0xf23f1120  0xf23f7404  Yes (*)     cstrike/addons/amxmodx/modules/csx_amxx_i386.so
0xf1766b60  0xf17ae624  Yes (*)     cstrike/addons/amxmodx/modules/hamsandwich_amxx_i386.so
0xf1702740  0xf17317e0  Yes (*)     cstrike/addons/amxmodx/modules/reapi_amxx_i386.so
0xf16d5720  0xf16de1ac  Yes (*)     cstrike/addons/amxmodx/modules/json_amxx_i386.so
(*): Shared library is missing debugging information.
Stack level 0, frame at 0xffb16dd8:
 eip = 0xf6e4b3d0 in I3110; saved eip = 0xe0dcd804
 called by frame at 0xffb16ddc
 Arglist at 0xffb16dd0, args:
 Locals at 0xffb16dd0, Previous frame's sp is 0xffb16dd8
 Saved registers:
  eip at 0xffb16dd4
End of crash report
----------------------------------------------
 
Сообщения
23
Реакции
84
Помог
1 раз(а)
I tried to run your plugin with your config, and you get a crash because of the Russian text you're using.
For example, in config.ini; there is:
Форматирование (BB-код):
[GAME RESTART TEXT]
Добро пожаловать на сервер!
...
or in trail_settings.ini
Форматирование (BB-код):
[SPRITES]
"Биозард" "sprites/jbe_trail/Biohazard.spr"
...
But the plugin uses parse to read the line, and that's the issue, it's not UTF-8 safe. Internally it checks space with the C isspace function, and it will throw an assertion like that:

1538042624705.png


Also, some of your config files use UTF-8 with BOM. It should be without BOM.
It's probably possible to fix by using a different way to get the string.

That's said, I'm confused, is it the first time you're using this plugin? If not, was it working as it is in a previous AMXX version, like 1.8.2?
 
Последнее редактирование:
Сообщения
23
Реакции
84
Помог
1 раз(а)
Will see if I can make such natives UTF-8 safe because they are often used and they use `isspace`.

The plugin can be probably fixed, but if it's really urgent, in the meantime, you can just make sure that all the files are in UTF-8 without BOM, and avoiding using Russian in the config files.
 
Сообщения
384
Реакции
279
Помог
3 раз(а)
Последнее редактирование:
Сообщения
384
Реакции
279
Помог
3 раз(а)
Чёт забыл про эту тему... В общем решение я нашёл...

В исходнике заменил
C++:
#define fm_EmitSound(%1,%2,%3,%4,%5,%6,%7) engfunc( EngFunc_EmitSound, %1, %2, %3, %4, %5, %6, %7 )
на
C++:
#define fm_EmitSound(%1,%2,%3,%4,%5,%6,%7) emit_sound(%1, %2, %3, %4, %5, %6, %7)
И вроде всё нормально стало
 
Статус
В этой теме нельзя размещать новые ответы.

Пользователи, просматривающие эту тему

Сейчас на форуме нет ни одного пользователя.
Сверху Снизу