SmileYzn / MatchBot

Counter-Strike 1.6 Match Plugin for ReHLDS and ReGameDLL_CS
GNU General Public License v3.0
28 stars 14 forks source link

<matchbot_mm.so> badf load matchbot_mm.so #100

Closed that-is-not-great closed 12 months ago

that-is-not-great commented 12 months ago

sorry me again. I setup a new clean server, and tried the latest builds from you https://github.com/SmileYzn/MatchBot/actions/runs/6040384960 https://github.com/SmileYzn/MatchBot/actions/runs/6001682898

both get error badf load

ubuntu 20.04

meta list
Currently loaded plugins:
      description       stat pend  file                    vers      src  load  unload
 [ 1] SafeNameAndChat   RUN   -    SafeNameAndChat_1.1.so  v1.1      ini  ANY   ANY  
 [ 2] Reunion           RUN   -    reunion_mm_i386.so      v0.1.92d  ini  Start Never
 [ 3] ReAuthCheck       RUN   -    reauthcheck_mm_i386.so  v0.1.6    ini  Start Never
 [ 4] <matchbot_mm.so>  badf load  matchbot_mm.so          v -       ini   -     -   
 [ 5] HitBox Fix        RUN   -    hitbox_fix_mm_i386.so   v1.1.4    ini  Start ANY  
 [ 6] Accuracy Fix      RUN   -    accuracyfix_mm.so       v1.0.2    ini  ANY   ANY  
6 plugins, 5 running
version
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
ReHLDS version: 3.13.0.788-dev
Build date: 07:36:33 Jul 12 2023 (3378)
Build from: https://github.com/dreamstalker/rehlds/commit/f955b07
game version
ReGameDLL version: 5.22.0.593-dev
Build date: 03:10:30 Jul 11 2023
Build from: https://github.com/s1lentq/ReGameDLL_CS/commit/e1d1c11
meta version
Metamod-r v1.3.0.131, API (5:13)
Metamod-r build: 18:51:02 Jul 11 2022
Metamod-r from: https://github.com/theAsmodai/metamod-r/commit/adc9414

how can I debug this further? I put log on, debuglevel 9, what else?

the only version that worked on this same server now was the release v1.0.0

Currently loaded plugins:
      description      stat pend  file                    vers      src  load  unload
 [ 1] SafeNameAndChat  RUN   -    SafeNameAndChat_1.1.so  v1.1      ini  ANY   ANY  
 [ 2] Reunion          RUN   -    reunion_mm_i386.so      v0.1.92d  ini  Start Never
 [ 3] ReAuthCheck      RUN   -    reauthcheck_mm_i386.so  v0.1.6    ini  Start Never
 [ 4] Match Bot        RUN   -    matchbot_mm.so          v1.0.0    ini  ANY   ANY  
 [ 5] HitBox Fix       RUN   -    hitbox_fix_mm_i386.so   v1.1.4    ini  Start ANY  
 [ 6] Accuracy Fix     RUN   -    accuracyfix_mm.so       v1.0.2    ini  ANY   ANY  
6 plugins, 6 running
axl303 commented 12 months ago

Try with debuglevel 42 (metamod) and +log on in startup console parameters (when starting server) and see what it gives.

that-is-not-great commented 12 months ago

okay the log was missing, now same error i had once before:

[META] ERROR: dll: Failed query plugin '<matchbot_mm.so>'; Couldn't open file '/home/xxx/serverfiles/cstrike/addons/matchbot/dlls/matchbot_mm.so': ./libstdc++.so.6: version `GLIBCXX_3.4.18' not found (required by /home/xxx/serverfiles/cstrike/addons/matchbot/dlls/matchbot_mm.so)

its not clear why I have issues with this lib all the time. Im using 5.15.0-83-generic #92~20.04.1-Ubuntu

$ strings serverfiles/libstdc++.so.6  | grep GLIBCXX
GLIBCXX_3.4
GLIBCXX_3.4.1
GLIBCXX_3.4.2
GLIBCXX_3.4.3
GLIBCXX_3.4.4
GLIBCXX_3.4.5
GLIBCXX_3.4.6
GLIBCXX_3.4.7
GLIBCXX_3.4.8
GLIBCXX_3.4.9
GLIBCXX_3.4.10
GLIBCXX_3.4.11
GLIBCXX_3.4.12
GLIBCXX_3.4.13
GLIBCXX_3.4.14
GLIBCXX_3.4.15
GLIBCXX_3.4.16
GLIBCXX_FORCE_NEW
GLIBCXX_DEBUG_MESSAGE_LENGTH
_ZNKSt14basic_ifstreamIcSt11char_traitsIcEE7is_openEv@GLIBCXX_3.4
_ZNSt13basic_istreamIwSt11char_traitsIwEE6ignoreEi@@GLIBCXX_3.4.5
_ZNSi6ignoreEi@@GLIBCXX_3.4.5
_ZNSt13basic_istreamIwSt11char_traitsIwEE6ignoreEv@@GLIBCXX_3.4.5
_ZNSs7_M_copyEPcPKcj@@GLIBCXX_3.4.5
_ZNKSbIwSt11char_traitsIwESaIwEE11_M_disjunctEPKw@GLIBCXX_3.4
_ZNKSt14basic_ifstreamIwSt11char_traitsIwEE7is_openEv@@GLIBCXX_3.4.5
GLIBCXX_3.4.5
GLIBCXX_3.4.9
_ZSt10adopt_lock@@GLIBCXX_3.4.11
GLIBCXX_3.4.10
GLIBCXX_3.4.16
GLIBCXX_3.4.1
_ZNSt19istreambuf_iteratorIcSt11char_traitsIcEEppEv@GLIBCXX_3.4
_ZNSt19istreambuf_iteratorIcSt11char_traitsIcEEppEv@@GLIBCXX_3.4.5
_ZNKSt13basic_fstreamIwSt11char_traitsIwEE7is_openEv@GLIBCXX_3.4
_ZNSs7_M_moveEPcPKcj@GLIBCXX_3.4
_ZNKSt13basic_fstreamIcSt11char_traitsIcEE7is_openEv@GLIBCXX_3.4
_ZNSbIwSt11char_traitsIwESaIwEE9_M_assignEPwjw@GLIBCXX_3.4
_ZSt10defer_lock@@GLIBCXX_3.4.11
_ZN10__gnu_norm15_List_node_base4swapERS0_S1_@@GLIBCXX_3.4
_ZNKSs15_M_check_lengthEjjPKc@GLIBCXX_3.4
_ZNKSt14basic_ifstreamIcSt11char_traitsIcEE7is_openEv@@GLIBCXX_3.4.5
_ZNVSt9__atomic011atomic_flag12test_and_setESt12memory_order@@GLIBCXX_3.4.11
_ZNSbIwSt11char_traitsIwESaIwEE4_Rep26_M_set_length_and_sharableEj@GLIBCXX_3.4
_ZNSt11char_traitsIwE2eqERKwS2_@@GLIBCXX_3.4.5
GLIBCXX_3.4.12
_ZNSi6ignoreEv@@GLIBCXX_3.4.5
_ZNSbIwSt11char_traitsIwESaIwEE7_M_moveEPwPKwj@GLIBCXX_3.4
GLIBCXX_3.4.2
_ZNSt11char_traitsIcE2eqERKcS2_@@GLIBCXX_3.4.5
GLIBCXX_3.4.6
_ZNSbIwSt11char_traitsIwESaIwEE7_M_moveEPwPKwj@@GLIBCXX_3.4.5
_ZNSt13basic_istreamIwSt11char_traitsIwEE6ignoreEi@GLIBCXX_3.4
GLIBCXX_3.4.15
_ZNKSt13basic_fstreamIcSt11char_traitsIcEE7is_openEv@@GLIBCXX_3.4.5
_ZNKSt14basic_ofstreamIwSt11char_traitsIwEE7is_openEv@GLIBCXX_3.4
_ZNSt19istreambuf_iteratorIwSt11char_traitsIwEEppEv@GLIBCXX_3.4
_ZN10__gnu_norm15_List_node_base7reverseEv@@GLIBCXX_3.4
_ZNSs7_M_moveEPcPKcj@@GLIBCXX_3.4.5
_ZNKSs15_M_check_lengthEjjPKc@@GLIBCXX_3.4.5
_ZNSbIwSt11char_traitsIwESaIwEE7_M_copyEPwPKwj@@GLIBCXX_3.4.5
_ZNSbIwSt11char_traitsIwESaIwEE7_M_copyEPwPKwj@GLIBCXX_3.4
_ZN10__gnu_norm15_List_node_base4hookEPS0_@@GLIBCXX_3.4
_ZNSbIwSt11char_traitsIwESaIwEE4_Rep26_M_set_length_and_sharableEj@@GLIBCXX_3.4.5
_ZNSt11char_traitsIwE2eqERKwS2_@GLIBCXX_3.4
_ZNSbIwSt11char_traitsIwESaIwEE9_M_assignEPwjw@@GLIBCXX_3.4.5
_ZNSs4_Rep26_M_set_length_and_sharableEj@GLIBCXX_3.4
GLIBCXX_3.4.11
GLIBCXX_3.4.3
_ZNSs4_Rep26_M_set_length_and_sharableEj@@GLIBCXX_3.4.5
GLIBCXX_3.4.7
_ZNKSbIwSt11char_traitsIwESaIwEE11_M_disjunctEPKw@@GLIBCXX_3.4.5
_ZNSt13basic_istreamIwSt11char_traitsIwEE6ignoreEv@GLIBCXX_3.4
_ZNKSt13basic_fstreamIwSt11char_traitsIwEE7is_openEv@@GLIBCXX_3.4.5
GLIBCXX_3.4.14
_ZNSs9_M_assignEPcjc@GLIBCXX_3.4
_ZNSi6ignoreEi@GLIBCXX_3.4
_ZSt15future_category@@GLIBCXX_3.4.14
GLIBCXX_3.4
_ZNSt11char_traitsIcE2eqERKcS2_@GLIBCXX_3.4
_ZN10__gnu_norm15_List_node_base8transferEPS0_S1_@@GLIBCXX_3.4
_ZNSs9_M_assignEPcjc@@GLIBCXX_3.4.5
_ZNVSt9__atomic011atomic_flag5clearESt12memory_order@@GLIBCXX_3.4.11
_ZNKSt14basic_ofstreamIcSt11char_traitsIcEE7is_openEv@@GLIBCXX_3.4.5
_ZNKSt14basic_ofstreamIcSt11char_traitsIcEE7is_openEv@GLIBCXX_3.4
_ZNKSs11_M_disjunctEPKc@@GLIBCXX_3.4.5
_ZN10__gnu_norm15_List_node_base6unhookEv@@GLIBCXX_3.4
_ZNSt19istreambuf_iteratorIwSt11char_traitsIwEEppEv@@GLIBCXX_3.4.5
_ZNSi6ignoreEv@GLIBCXX_3.4
GLIBCXX_3.4.8
GLIBCXX_3.4.13
_ZSt11try_to_lock@@GLIBCXX_3.4.11
_ZNKSt14basic_ofstreamIwSt11char_traitsIwEE7is_openEv@@GLIBCXX_3.4.5
GLIBCXX_3.4.4
_ZNKSbIwSt11char_traitsIwESaIwEE15_M_check_lengthEjjPKc@GLIBCXX_3.4
_ZNKSt14basic_ifstreamIwSt11char_traitsIwEE7is_openEv@GLIBCXX_3.4
_ZNKSbIwSt11char_traitsIwESaIwEE15_M_check_lengthEjjPKc@@GLIBCXX_3.4.5
_ZNSs7_M_copyEPcPKcj@GLIBCXX_3.4
_ZNKSs11_M_disjunctEPKc@GLIBCXX_3.4
axl303 commented 12 months ago

I had a similar issue on one of smiley's projects before and he solved it by making: Temporary fixed with -static-libstdc++ in Makefile

Tho you may want to try the static linked one from actions if you have time (linux build) https://github.com/SmileYzn/MatchBot/actions/runs/5911367305 just for a test.

@SmileYzn will tell more when he is on pc.

that-is-not-great commented 12 months ago

thx for your replies. the build you linked, gives this error

[META] ERROR: dll: Failed query plugin '<matchbot_mm.so>'; Couldn't open file '/home/xxx/serverfiles/cstrike/addons/matchbot/dlls/matchbot_mm.so': /lib/i386-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by /home/xxx/serverfiles/cstrike/addons/matchbot/dlls/matchbot_mm.so)
ldd --version
ldd (Ubuntu GLIBC 2.31-0ubuntu9.7) 2.31
SmileYzn commented 12 months ago

VALVe static linked these shits to their own HLDS server.

Try it this action build: https://github.com/SmileYzn/MatchBot/actions/runs/6163496524

I hope that works

that-is-not-great commented 12 months ago

thx a lot yes this one works, so the diff is this added?

-static-libgcc -static-libstdc++ ?

meta list
Currently loaded plugins:
      description      stat pend  file                    vers      src  load  unload
 [ 1] SafeNameAndChat  RUN   -    SafeNameAndChat_1.1.so  v1.1      ini  ANY   ANY  
 [ 2] Reunion          RUN   -    reunion_mm_i386.so      v0.1.92d  ini  Start Never
 [ 3] ReAuthCheck      RUN   -    reauthcheck_mm_i386.so  v0.1.6    ini  Start Never
 [ 4] Match Bot        RUN   -    matchbot_mm.so          v1.0.0    ini  ANY   ANY  
 [ 5] HitBox Fix       RUN   -    hitbox_fix_mm_i386.so   v1.1.4    ini  Start ANY  
 [ 6] Accuracy Fix     RUN   -    accuracyfix_mm.so       v1.0.2    ini  ANY   ANY  
6 plugins, 6 running
SmileYzn commented 12 months ago

thx a lot yes this one works, so the diff is this added?

-static-libgcc -static-libstdc++ ?

meta list
Currently loaded plugins:
      description      stat pend  file                    vers      src  load  unload
 [ 1] SafeNameAndChat  RUN   -    SafeNameAndChat_1.1.so  v1.1      ini  ANY   ANY  
 [ 2] Reunion          RUN   -    reunion_mm_i386.so      v0.1.92d  ini  Start Never
 [ 3] ReAuthCheck      RUN   -    reauthcheck_mm_i386.so  v0.1.6    ini  Start Never
 [ 4] Match Bot        RUN   -    matchbot_mm.so          v1.0.0    ini  ANY   ANY  
 [ 5] HitBox Fix       RUN   -    hitbox_fix_mm_i386.so   v1.1.4    ini  Start ANY  
 [ 6] Accuracy Fix     RUN   -    accuracyfix_mm.so       v1.0.2    ini  ANY   ANY  
6 plugins, 6 running

Yes, static linked