Author Topic: MudOS-0.9.18C3  (Read 3699 times)

Offline stanach

  • Acquaintance
  • *
  • Posts: 19
    • View Profile
MudOS-0.9.18C3
« on: March 14, 2013, 11:36:07 pm »
Hello,

I have an old mudlib that is running on MudOS_0.9.18C3 with a custom lp2.4.5 lib. I have been able to get the driver to compile on Linux 12.2

with Gcc 4.7, but the heartbeat is not working more then 1 to 2 seconds. My knowledge of drivers is very minimal.

If anyone has any suggestions or would like to help in any way. I would greatly appreciate it. 

If you would like to take a look at the mud itself, I have it running at 192.210.133.71 4080.

thanks,

Offline FallenTree

  • BFF
  • ***
  • Posts: 487
    • View Profile
Re: MudOS-0.9.18C3
« Reply #1 on: March 15, 2013, 12:34:37 am »
you need to provide more data,  lost heartbeat usually means there is a mudlib error . is there anything logged  log directory like log/debug.log  ?

Offline stanach

  • Acquaintance
  • *
  • Posts: 19
    • View Profile
Re: MudOS-0.9.18C3
« Reply #2 on: March 15, 2013, 12:44:40 am »
hi thanks for the response. 

Most of the time when I boot the mud there is no errors at all.  But 1 out of 10 times I will get an issue with the status command. math: log(x)

with (x <= 0.0) will be the error.

If you attack an NPC you well get one attack and nothing else. But if you leave the room and come back into that room NPC will hit you again once.

thanks,



« Last Edit: March 15, 2013, 12:57:17 am by stanach »

Offline FallenTree

  • BFF
  • ***
  • Posts: 487
    • View Profile
Re: MudOS-0.9.18C3
« Reply #3 on: March 15, 2013, 12:49:18 am »
please paste the full message.   And I suspect this has nothing to do with driver, it's likely a mudlib problem.

Of course, assuming you didn't just build the driver in 64bit mode. old drivers needs to be build in 32 bit mode.

Offline stanach

  • Acquaintance
  • *
  • Posts: 19
    • View Profile
Re: MudOS-0.9.18C3
« Reply #4 on: March 15, 2013, 01:23:06 am »
No sir did not built it in 64 bit mode.  That error I posted was the whole error that i receive every once in a while. I really wish i had more errors to post.

this what I see when driver boots and debug.log is empty

MudMOS 0.9.18C3 (Linux)
loading config file: config.mud
Can't stat <./driver>, ignoring old binaries.
Try invoking the driver using the full pathname.
init_addr_server: connect: Connection refused
Loading init file etc/init_file
Preloading: room/desc 0.00
Preloading: room/room 0.00
Preloading: room/adv_guild 0.02
Preloading: room/church 0.02
Preloading: obj/living 0.00
Preloading: obj/monster 0.00
Preloading: obj/weapon 0.00
Preloading: room/post 0.00
Preloading: room/convoy/westConvoy 0.02
Preloading: obj/daemons/secondd 0.00
Preloading: obj/daemons/toplist 0.00
Preloading: obj/daemons/lottery_d 0.00
Preloading: domains/Gov/std/gov_d 0.00
Preloading: obj/daemons/uniqued 0.00
Preloading: obj/daemons/crashd 0.00
Preloading: domains/Areas/suburbs/ledough/area 0.00
Preloading: domains/Areas/city/bigfoot/area 0.02
Preloading: domains/Areas/suburbs/azatoth/area/area.c 0.00
Preloading: domains/Areas/city/keif/area.c 0.00
Preloading: domains/Areas/city/evil/area 0.03
Preloading: domains/Areas/city/evil/area2 0.00
Preloading: domains/Areas/outskirts/mastermind/area 0.00
Preloading: players/raavak/area 0.00
Preloading: domains/Gangs/Club/area 0.00
Preloading: domains/Areas/city/mutants/area 0.00
Preloading: domains/Areas/city/school/area 0.00
Preloading: domains/Areas/research/loke/biolab/area.c 0.02
Preloading: domains/Areas/city/loke/hotel/area.c 0.00
Preloading: domains/Areas/suburbs/miko/area2 0.00
Preloading: domains/Areas/city/thorwald/area 0.00
Preloading: domains/Areas/city/quake/area 0.00
Preloading: domains/Areas/research/sigmund/area 0.02
Preloading: domains/Areas/city/poldark/center/area 0.00
Preloading: domains/Areas/city/poldark/radio/area2 0.00
Preloading: domains/Areas/city/poldark/swim/area3 0.00
Preloading: domains/Areas/suburbs/darkvader/area 0.00
Preloading: domains/Areas/city/grimm/area 0.00
Preloading: domains/Areas/outskirts/muncher/swamp/area 0.00
Preloading: domains/Areas/suburbs/chained/area 0.00
Preloading: domains/Areas/desert/mike/area 0.00
Preloading: domains/Areas/suburbs/armitage/area.c 0.03
Preloading: domains/Areas/research/maz/area.c 0.00
Preloading: domains/Areas/research/doctohr/area 0.00
Preloading: domains/Areas/suburbs/cocteau/area.c 0.03
Preloading: domains/Areas/research/macconen/area.c 0.02
Preloading: domains/Areas/research/bismuth/area 0.00
Preloading: domains/Areas/research/arik/area.c 0.02
Preloading: domains/Areas/outskirts/kryton/area 0.00
Preloading: players/wishbone/area 0.00
Preloading: domains/Areas/city/firehouse/area 0.00
Preloading: domains/Areas/outskirts/cygnus/area 0.00
Preloading: domains/Areas/suburbs/hari/area 0.00
Preloading: domains/Areas/outskirts/nickenuck/area.c 0.00
Preloading: domains/Areas/research/berne/area/area 0.02
Preloading: domains/Areas/outskirts/nam/area 0.05
Preloading: players/wishbone/area2 0.00
Preloading: domains/Areas/suburbs/nedo/area.c 0.02
Preloading: players/wishbone/area3 0.02
Preloading: domains/Areas/suburbs/pip/area/area.c 0.00
Preloading: domains/Areas/city/rule/area 0.00
Preloading: domains/Areas/city/crematorium/area 0.00
Preloading: domains/Areas/city/cemetary/area 0.02
Preloading: domains/Areas/city/one/area2/area 0.02
Preloading: domains/Areas/city/toast/area.c 0.00
Preloading: domains/Areas/suburbs/dilvish/area.c 0.00
Preloading: domains/Areas/city/hiron/area.c 0.00
Preloading: domains/Areas/suburbs/alara/factory/area.c 0.00
Preloading: players/mindmaster/area2/area.c 0.03
Preloading: players/william/areas/hovershop/area.c 0.00
Preloading: domains/Areas/city/stanach/barbershop/rooms/area.c 0.00
Preloading: domains/Areas/jungle/recon/area.c 0.00
Preloading: domains/Areas/jungle/mindmaster/area.c 0.00
Preloading: domains/Areas/jungle/one/area2.2/area.c 0.00
Preloading: domains/Areas/outskirts/brad/area.c 0.00
Preloading: domains/Areas/city/crack/area/area.c 0.00
Preloading: domains/Areas/desert/utsa/area.c 0.00
Preloading: players/wishbone/area4 0.00
Preloading: domains/Areas/city/elle/area 0.02
Preloading: players/william/areas/desert/area 0.00
Preloading: domains/Areas/city/goldilocks/area 0.02
Preloading: domains/Areas/city/skrper/area 0.02
Preloading: domains/Areas/research/mindmaster/shaat/area 0.03
Preloading: domains/Areas/newbie/bombshelter/area 0.00
Preloading: domains/Areas/city/embassy/area 0.00
Preloading: domains/NG/Areas/mayhem/area 0.00
Preloading: domains/NG/Areas/lancefernam/area 0.03
Preloading: players/mycon/gamblers/area 0.00
Preloading: players/mycon/worldcup/area 0.00
Preloading: domains/Areas/city/daily/area.c 0.02
Preloading: players/snickher/lounge/area.c 0.00
Setting up IPC on port 4080.


Offline detah

  • BFF
  • ***
  • Posts: 190
  • Ruler of 2D
    • View Profile
Re: MudOS-0.9.18C3
« Reply #5 on: March 15, 2013, 11:06:37 am »
I agree, this is most likely a mudlib issue. This sounds like your combat code is messed up. Could also be something in init(). Are there other circumstances where you see the heartbeat error? Is it only combat? If it is only in combat, then you can probably reduce your search to monster.c and combat. If it appears in other places, you can reduce your search to living.c, init() and the heartbeat code.

You really haven't provided enough information to properly diagnose this issue.

Offline stanach

  • Acquaintance
  • *
  • Posts: 19
    • View Profile
Re: MudOS-0.9.18C3
« Reply #6 on: March 15, 2013, 02:06:51 pm »
Thanks for all the Feed back. I wish I had more information to give you. With no errors in the Debug.log file, not sure what information to give you.

I can say that the the Mud was shutdown on a box in the UK this past year and the lib had no issues. It was tar and gzipped. No changes was made to the lib.

Only thing that changed was items in the Makefile to get the driver to compile.


thanks,

Offline Camlorn

  • Friend
  • **
  • Posts: 76
    • View Profile
Re: MudOS-0.9.18C3
« Reply #7 on: March 15, 2013, 03:22:36 pm »
Wasn't there something about older drivers not working on newer systems because of how they handled timing? I can't remember what this was, but it came up in a thread a while back.  One of the posix functions being changed.  If we're absolutely certain that this isn't the mudlib, that's the place to look.  Given that MudOS is no longer actively developed and that this may be an older version, (I'm not too clear on MudOS versioning) this could be it.
    Perhaps, make something that gives a message on every heartbeat, no matter what.  Put it somewhere where it can not be affected by possibly erroneous mudlib code. See if it gives the message every heartbeat.  If your mudlib is handling calling heartbeat() and the driver isn't, which I don't believe is possible on anything that's not DGD, look there.
    I'm not really an lpc expert, so...

Offline wodan

  • BFF
  • ***
  • Posts: 434
  • Drink and code, you know you want to!
    • View Profile
MudOS version numbers
« Reply #8 on: March 16, 2013, 07:17:59 am »
MudOS versioning is not that complicated, it's like any other project up to 0.9.x and then they dropped the 0.9 bit, so if the version doesn't start with 0 it's 0.9.<version> in the old number scheme.

I think 0.9.18 was in the first half of the 90s, and MudOS died near 2000, so even for MudOS that's old.

Offline FallenTree

  • BFF
  • ***
  • Posts: 487
    • View Profile
Re: MudOS-0.9.18C3
« Reply #9 on: March 16, 2013, 04:20:49 pm »
Did you change the local_options or options.h when trying to compile the driver again?

My suggestion would be try turn off   strict typing  " #define DEFAULT_PRAGMA 0 "

And there must be some place where it logs the error , checks whether master.c have a error_handler () function, and where does it writes to.

If all failed, you can turn on   NONINTERACTIVE_STDERR_WRITE in the file , so you should be able to see the error log.

Once you see the real mudlib error message, you will know how to fix it.

You can also try to run the driver with " ./driver -dLPC  " as well as try to include trace  by adding

trace(255);  in the master.c  login() function. These will produce huge amount of log about how driver is executing your LPC line , which line it is executing etc it should help to debug. (althrough I don't know whether your driver support these funcitons).

Offline Nulvect

  • BFF
  • ***
  • Posts: 127
    • View Profile
Re: MudOS-0.9.18C3
« Reply #10 on: March 17, 2013, 07:13:01 pm »
Wasn't there something about older drivers not working on newer systems because of how they handled timing? I can't remember what this was, but it came up in a thread a while back.  One of the posix functions being changed.

Yes, when my mud host forcibly upgraded us, we found that ualarm() had been changed so that it no longer accepted arguments > 1000000 useconds (==1 second). This thankfully facilitated our move from MudOS to FluffOS though. Thread here: http://lpmuds.net/smf/index.php?topic=1255.msg6606#msg6606. As I stated there, though, even after we changed the heartbeat value in local_options, MudOS was very unstable.

Offline FallenTree

  • BFF
  • ***
  • Posts: 487
    • View Profile
Re: MudOS-0.9.18C3
« Reply #11 on: March 17, 2013, 08:25:30 pm »
That is great news. Let me know if you have feedback on FluffOS.

And, I'm working on a better way to printout stacktrace on crash, so non-developers can actually report meaningful bug information.

Offline stanach

  • Acquaintance
  • *
  • Posts: 19
    • View Profile
Re: MudOS-0.9.18C3
« Reply #12 on: March 19, 2013, 11:12:30 pm »
Well the same driver i compile works beautifully with the lib on 7.04 ubuntu vm, will not work on Ubuntu 11.0.. Sucks. The driver I compiled on 11 worked on 7 ..

Offline stanach

  • Acquaintance
  • *
  • Posts: 19
    • View Profile
Re: MudOS-0.9.18C3
« Reply #13 on: March 20, 2013, 12:17:11 am »
Ok.. changed #define HEARTBEAT_INTERVAL 999999 and recompiled driver and it works.

Guess I need to see how much work it is going to move to FluffOS.


Offline FallenTree

  • BFF
  • ***
  • Posts: 487
    • View Profile
Re: MudOS-0.9.18C3
« Reply #14 on: March 20, 2013, 12:41:14 am »
you usually can't port binary, as the glibc changes .