SmaugFUSS - clean/fresh install issues when running the MUD.

Posted by Dexio on Sun 17 Nov 2024 12:58 AM — 8 posts, 11,830 views.

#0
Hello, I am a buffoon trying to make sense of this..

Clean install of SmaugFUSS - I have redownloaded and setup twice.

I can get startup to work, if I log into the MUD, it appears to drop all player connections every 30-60seconds. Then crashing within a couple minutes. Regardless, the only thing I have changed aside from the IP:PORT is the makefile cc = gcc /changed to/ gcc34

Is there something manageable to a moderately informed modder (I don't know C.. but I've messed with muds over the past 20 years, and web design) to resolve whatever these issues are that are present with a clean install?

Thanks for any information at all, I appreciate it. The top code is in every log file, the bottom code is in some log files, but retain directly below this top code in the actual log.


Sun Nov 17 00:24:29 2024 :: Loading Housing System, Home Accessories Data, and Home Auctioning System
Sun Nov 17 00:24:29 2024 :: Loading login messages
Sun Nov 17 00:24:29 2024 :: Initializing socket
Sun Nov 17 00:24:29 2024 ::  IMC: Loading IMC2 command table...
Sun Nov 17 00:24:29 2024 ::  IMC: Loading IMC2 network data...
Sun Nov 17 00:24:29 2024 ::  IMC: Loading IMC2 help file...
Sun Nov 17 00:24:29 2024 ::  IMC: Loading IMC2 color table...
Sun Nov 17 00:24:29 2024 ::  IMC: Loading IMC2 who template...
Sun Nov 17 00:24:29 2024 :: [*****] BUG:  IMC: imcfread_word: EOF encountered on read.
Sun Nov 17 00:24:29 2024 ::  IMC: IMC2 network data loaded. Autoconnect not set. IMC2 will need to be connected manually.
Sun Nov 17 00:24:29 2024 :: (Name Not Set) ready on port 1111.



=================================================================
==1893377==ERROR: AddressSanitizer: global-buffer-overflow on address 0x000000e6d020 at pc 0x00000095728f bp 0x7ffda9bff680 sp 0x7ffda9bff670
READ of size 4 at 0x000000e6d020 thread T0
    #0 0x95728e in CalculateCellToCellChanges() /home/dexio/sfuss/src/weather.c:770
    #1 0x95e541 in UpdateWeather() /home/dexio/sfuss/src/weather.c:1222
    #2 0x94468e in update_handler() /home/dexio/sfuss/src/update.c:2073
    #3 0x649b5c in game_loop() /home/dexio/sfuss/src/comm.c:882
    #4 0x64773a in main /home/dexio/sfuss/src/comm.c:532
    #5 0x7f3de62187e4 in __libc_start_main (/lib64/libc.so.6+0x3a7e4)
    #6 0x42d4cd in _start (/home/dexio/sfuss/src/smaug+0x42d4cd)

0x000000e6d020 is located 24 bytes to the right of global variable 'weatherMap' defined in 'weather.c:90:20' (0xe6cea0) of size 360
0x000000e6d020 is located 32 bytes to the left of global variable 'weatherDelta' defined in 'weather.c:103:20' (0xe6d040) of size 360
SUMMARY: AddressSanitizer: global-buffer-overflow /home/dexio/sfuss/src/weather.c:770 in CalculateCellToCellChanges()
Shadow bytes around the buggy address:
  0x0000801c59b0: 04 f9 f9 f9 f9 f9 f9 f9 00 f9 f9 f9 f9 f9 f9 f9
  0x0000801c59c0: 04 f9 f9 f9 f9 f9 f9 f9 01 f9 f9 f9 f9 f9 f9 f9
  0x0000801c59d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x0000801c59e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x0000801c59f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
=>0x0000801c5a00: 00 f9 f9 f9[f9]f9 f9 f9 00 00 00 00 00 00 00 00
  0x0000801c5a10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x0000801c5a20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x0000801c5a30: 00 00 00 00 00 f9 f9 f9 f9 f9 f9 f9 04 f9 f9 f9
  0x0000801c5a40: f9 f9 f9 f9 00 00 00 00 00 00 00 00 00 00 00 00
  0x0000801c5a50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Shadow byte legend (one shadow byte represents 8 application bytes):
  Addressable:           00
  Partially addressable: 01 02 03 04 05 06 07 
  Heap left redzone:       fa
  Freed heap region:       fd
  Stack left redzone:      f1
  Stack mid redzone:       f2
  Stack right redzone:     f3
  Stack after return:      f5
  Stack use after scope:   f8
  Global redzone:          f9
  Global init order:       f6
  Poisoned by user:        f7
  Container overflow:      fc
  Array cookie:            ac
  Intra object redzone:    bb
  ASan internal:           fe
  Left alloca redzone:     ca
  Right alloca redzone:    cb
==1893377==ABORTING
Australia Forum Administrator #1
Exactly which SmaugFUSS did you install? Give a link to the download please.
#2
Hi legend.. thanks for any of your time.


This page:
https://smaugmuds.afkmods.com/files/smaugfuss-194-501/

This download button:
https://i.imgur.com/SknV4lv.png

Download button link:
https://smaugmuds.afkmods.com/files/download/501/
Australia Forum Administrator #3
Are you running some sort of debugger? The error message mentions AddressSanitizer.
#4
Hey, I have no clue.. I have someone hosting me, so the answer eludes me. I'll ask them and go from there. Thanks for taking the time Nick.
Australia Forum Administrator #5
Since it appears to be related to weather you could try disabling weather in the configuration (if possible).
#6
Thanks again, I will look at that.. I'm just familiarizing myself with rom 2.4b6 again, but I know smaugfuss is superior. Once I get a hang of rom I'll get going. Appreciate it legend!

**Edit:
In case anyone ever comes across this and needs this.
In the MakeFile - W_FLAGS
I removed:
-fsanitize=address


Thanks for suggestion about debugger (host using a debugger)!!
Amended on Mon 25 Nov 2024 11:28 AM by Dexio
Australia Forum Administrator #7
http://www.gammon.com.au/gdb