SegFault running pol99 from trunk

Here you can post threads specific to the current release of the core (099)

Moderator: POL Developer

Post Reply
User avatar
ELSoft
Journeyman Poster
Posts: 61
Joined: Sun Jun 18, 2006 7:45 pm

SegFault running pol99 from trunk

Post by ELSoft » Sat Jan 07, 2012 10:27 am

Hi!

I'm trying to run the last version from trunk of pol99 using the last distro99 code. For make pol running with distro code, i did some changes:

- Remove "Intrinsic 1" from pkg > items > weapons > config > itemdesc.cfg. From what i see this is no longer necessary, but it still figuring in the .cfg and in the pol99 online documentation.

- Add the /config/extobj.cfg
11-12-2011 Tomi:
Added: Pol/config/extobj.cfg
Values it accept now and default values are
Tillerman=0xF010
Port_Plank=0xF011
Starboard_Plank=0xF012
Hold=0xF013
Wrestling=0xF020
Mount=0xF021
Secure_Trade_Container=0xFF01
Wornitems_Container=0xFF02
The output was:

Code: Select all

POL099-2011-05-02 Break Everything Even Rudder (Ubuntu)
compiled on Jan  7 2012 01:28:57
Copyright (C) 1993-2011 Eric N. Swanson

Reading Configuration.
checkpoint: reading config/bannedips.cfg
checkpoint: reading servspecopt.cfg
checkpoint: reading extobj.cfg
checkpoint: checking libc version
Found libc 2.13 - ok
checkpoint: init default itemdesc defaults
checkpoint: loading POL map file
Loading Realm malas.
Validating statics files: Completed in 2 ms.
Loading Realm britannia.
Validating statics files: Completed in 11 ms.
Loading Realm tokuno.
Validating statics files: Completed in 0 ms.
Loading Realm britannia_alt.
Validating statics files: Completed in 9 ms.
Loading Realm ilshenar.
Validating statics files: Completed in 2 ms.
checkpoint: initializing IPC structures
checkpoint: initializing sockets library
hostname is fviale-Studio-1558
address: 127.0.1.1
hostname is fviale-Studio-1558
address: 127.0.1.1
checkpoint: loading configuration
checkpoint: load_cmdlevels
checkpoint: read_combat_config
Loading combat.cfg options
checkpoint: read_boat_cfg
checkpoint: read_multidefs
checkpoint: set_watch_vars
File config/watch.cfg not found, skipping.
checkpoint: load_packages
Loading package in pkg/utils/datafile/
Loading package in pkg/utils/security/
Loading package in pkg/utils/statistics/
Loading package in pkg/utils/gumps/
Loading package in pkg/utils/timeutils/
Loading package in pkg/utils/static/
Loading package in pkg/utils/POLManager/
Loading package in pkg/utils/autoloop/
Loading package in pkg/utils/motd/
Loading package in pkg/multis/multicommands/
Loading package in pkg/multis/housing/
Loading package in pkg/multis/boat/
Loading package in pkg/packetHooks/BFCommand/
Loading package in pkg/packetHooks/AttackRequest/
Loading package in pkg/packetHooks/CharProfile/
Loading package in pkg/packetHooks/SingleClick/
Loading package in pkg/packetHooks/OpenDoor/
Loading package in pkg/packetHooks/SkillLocks/
Loading package in pkg/packetHooks/StatHook/
Loading package in pkg/packetHooks/PickupItems/
Loading package in pkg/packetHooks/HandleSpeech/
Loading package in pkg/packetHooks/DropPacket/
Loading package in pkg/items/traps/
Loading package in pkg/items/crystalBall/
Loading package in pkg/items/ores/
Loading package in pkg/items/questitems/
Loading package in pkg/items/totem/
Loading package in pkg/items/penInk/
Loading package in pkg/items/summoning/
Loading package in pkg/items/bomberMan/
Loading package in pkg/items/dyes/
Loading package in pkg/items/handBook/
Loading package in pkg/items/shells/
Loading package in pkg/items/doors/
Loading package in pkg/items/resgate/
Loading package in pkg/items/lighting/
Loading package in pkg/items/water/
Loading package in pkg/items/acid/
Loading package in pkg/items/animals/
Loading package in pkg/items/donators/
Loading package in pkg/items/ambience/
Loading package in pkg/items/mounts/
Loading package in pkg/items/bountyBoard/
Loading package in pkg/items/blood/
Loading package in pkg/items/trash/
Loading package in pkg/items/sysbook/
Loading package in pkg/items/runeBook/
Loading package in pkg/items/lottery/
Loading package in pkg/items/eggs/
Loading package in pkg/items/powerscrolls/
Loading package in pkg/items/debris/
Loading package in pkg/items/spiderweb/
Loading package in pkg/items/decoration/
Loading package in pkg/items/soccer/
Loading package in pkg/items/hides/
Loading package in pkg/items/bulletinboard/
Loading package in pkg/items/kindlings/
Loading package in pkg/items/ingots/
Loading package in pkg/items/fish/
Loading package in pkg/items/bandage/
Loading package in pkg/items/magicWands/
Loading package in pkg/items/commcrystals/
Loading package in pkg/items/fooddrink/
Loading package in pkg/items/magicFish/
Loading package in pkg/items/coins/
Loading package in pkg/items/maps/
Loading package in pkg/items/keys/
Loading package in pkg/items/thiefGloves/
Loading package in pkg/items/signs/
Loading package in pkg/items/magicScrolls/
Loading package in pkg/items/hair/
Loading package in pkg/items/wordPower/
Loading package in pkg/items/classePicker/
Loading package in pkg/items/deed/
Loading package in pkg/items/gems/
Loading package in pkg/items/mysticStone/
Loading package in pkg/items/graveStones/
Loading package in pkg/items/armor/
Loading package in pkg/items/playerMerchant/
Loading package in pkg/items/SOSBottle/
Loading package in pkg/items/forges/
Loading package in pkg/items/feces/
Loading package in pkg/items/games/
Loading package in pkg/items/instruments/
Loading package in pkg/items/reagents/
Loading package in pkg/items/logs/
Loading package in pkg/items/containers/
Loading package in pkg/items/moongates/
Loading package in pkg/items/fixGate/
Loading package in pkg/items/teleporters/
Loading package in pkg/items/drugs/
Loading package in pkg/items/rituals/
Loading package in pkg/items/torture/
Loading package in pkg/items/lever/
Loading package in pkg/items/spawnpoints/
Loading package in pkg/items/anvil/
Loading package in pkg/items/alchSymbol/
Loading package in pkg/items/transcendence/
Loading package in pkg/items/training/
Loading package in pkg/items/rewards/
Loading package in pkg/items/altar/
Loading package in pkg/items/warMachine/
Loading package in pkg/items/races/
Loading package in pkg/items/scissors/
Loading package in pkg/items/vomit/
Loading package in pkg/items/doom/
Loading package in pkg/items/clothing/
Loading package in pkg/items/gmitems/
Loading package in pkg/items/enchantments/
Loading package in pkg/items/equipment/
Loading package in pkg/items/weapons/
Loading package in pkg/items/gift/
Loading package in pkg/items/walkOn/
Loading package in pkg/items/elementals/
Loading package in pkg/items/guruPotions/
Loading package in pkg/items/magicBooks/
Loading package in pkg/items/bridle/
Loading package in pkg/items/virtues/
Loading package in pkg/items/jewelery/
Loading package in pkg/commands/
Loading package in pkg/skills/thief/snooping/
Loading package in pkg/skills/thief/detecthidden/
Loading package in pkg/skills/thief/lockpicking/
Loading package in pkg/skills/thief/removetrap/
Loading package in pkg/skills/thief/stealth/
Loading package in pkg/skills/thief/hiding/
Loading package in pkg/skills/thief/stealing/
Loading package in pkg/skills/thief/poisonning/
Loading package in pkg/skills/warrior/anatomy/
Loading package in pkg/skills/warrior/healing/
Loading package in pkg/skills/mage/meditation/
Loading package in pkg/skills/mage/inscription/
Loading package in pkg/skills/mage/itemid/
Loading package in pkg/skills/mage/spiritSpeak/
Loading package in pkg/skills/mage/alchemy/
Loading package in pkg/skills/mage/evalInt/
Loading package in pkg/skills/mage/magery/
Loading package in pkg/skills/crafter/lumberjacking/
Loading package in pkg/skills/crafter/armsLore/
Loading package in pkg/skills/crafter/mining/
Loading package in pkg/skills/crafter/bowcraft/
Loading package in pkg/skills/crafter/blacksmithy/
Loading package in pkg/skills/crafter/tailoring/
Loading package in pkg/skills/crafter/tinkering/
Loading package in pkg/skills/crafter/carpentry/
Loading package in pkg/skills/bard/tasteidentification/
Loading package in pkg/skills/bard/discordance/
Loading package in pkg/skills/bard/musicianship/
Loading package in pkg/skills/bard/cartography/
Loading package in pkg/skills/bard/herding/
Loading package in pkg/skills/bard/provocation/
Loading package in pkg/skills/bard/begging/
Loading package in pkg/skills/bard/peacemaking/
Loading package in pkg/skills/ranger/fishing/
Loading package in pkg/skills/ranger/tracking/
Loading package in pkg/skills/ranger/veterinary/
Loading package in pkg/skills/ranger/animaltaming/
Loading package in pkg/skills/ranger/camping/
Loading package in pkg/skills/ranger/animallore/
Loading package in pkg/skills/ranger/cooking/
Loading package in pkg/skills/other/forensicevaluation/
Loading package in pkg/systems/timedScripts/
Loading package in pkg/systems/spawnSystem/
Loading package in pkg/systems/crafting/
Loading package in pkg/systems/combat/
Loading package in pkg/systems/reputation/
Loading package in pkg/systems/season/
Loading package in pkg/systems/itemUtils/
Loading package in pkg/systems/brainAI/
Loading package in pkg/systems/brainAI/AI_desc/ent/
Loading package in pkg/systems/brainAI/AI_desc/gargoyle/
Loading package in pkg/systems/brainAI/AI_desc/brigand/
Loading package in pkg/systems/brainAI/AI_desc/totem/
Loading package in pkg/systems/brainAI/AI_desc/Loony/
Loading package in pkg/systems/brainAI/AI_desc/scorpion/
Loading package in pkg/systems/brainAI/AI_desc/frog/
Loading package in pkg/systems/brainAI/AI_desc/troll/
Loading package in pkg/systems/brainAI/AI_desc/spider/
Loading package in pkg/systems/brainAI/AI_desc/slime/
Loading package in pkg/systems/brainAI/AI_desc/deceit/
Loading package in pkg/systems/brainAI/AI_desc/scarab/
Loading package in pkg/systems/brainAI/AI_desc/gremlin/
Loading package in pkg/systems/brainAI/AI_desc/civil/
Loading package in pkg/systems/brainAI/AI_desc/Zulu/
Loading package in pkg/systems/brainAI/AI_desc/ice/
Loading package in pkg/systems/brainAI/AI_desc/gazer/
Loading package in pkg/systems/brainAI/AI_desc/shadow/
Loading package in pkg/systems/brainAI/AI_desc/fire/
Loading package in pkg/systems/brainAI/AI_desc/undead/
Loading package in pkg/systems/brainAI/AI_desc/destard/
Loading package in pkg/systems/brainAI/AI_desc/boss/
Loading package in pkg/systems/brainAI/AI_desc/blackbeard/
Loading package in pkg/systems/brainAI/AI_desc/bewitched/
Loading package in pkg/systems/brainAI/AI_desc/blade/
Loading package in pkg/systems/brainAI/AI_desc/hytloth/
Loading package in pkg/systems/brainAI/AI_desc/canine/
Loading package in pkg/systems/brainAI/AI_desc/pirate/
Loading package in pkg/systems/brainAI/AI_desc/ophidian/
Loading package in pkg/systems/brainAI/AI_desc/dragon/
Loading package in pkg/systems/brainAI/AI_desc/vortex/
Loading package in pkg/systems/brainAI/AI_desc/despice/
Loading package in pkg/systems/brainAI/AI_desc/snake/
Loading package in pkg/systems/brainAI/AI_desc/covetous/
Loading package in pkg/systems/brainAI/AI_desc/wisp/
Loading package in pkg/systems/brainAI/AI_desc/sea/
Loading package in pkg/systems/brainAI/AI_desc/bird/
Loading package in pkg/systems/brainAI/AI_desc/bat/
Loading package in pkg/systems/brainAI/AI_desc/ratman/
Loading package in pkg/systems/brainAI/AI_desc/ogre/
Loading package in pkg/systems/brainAI/AI_desc/ostard/
Loading package in pkg/systems/brainAI/AI_desc/plant/
Loading package in pkg/systems/brainAI/AI_desc/shrine/
Loading package in pkg/systems/brainAI/AI_desc/The ancient/
Loading package in pkg/systems/brainAI/AI_desc/human/
Loading package in pkg/systems/brainAI/AI_desc/terathan/
Loading package in pkg/systems/brainAI/AI_desc/animal/
Loading package in pkg/systems/brainAI/AI_desc/ettin/
Loading package in pkg/systems/brainAI/AI_desc/tainted/
Loading package in pkg/systems/brainAI/AI_desc/orc/
Loading package in pkg/systems/brainAI/AI_desc/elemental/
Loading package in pkg/systems/brainAI/AI_desc/shame/
Loading package in pkg/systems/brainAI/AI_desc/lizardman/
Loading package in pkg/systems/brainAI/AI_desc/drake/
Loading package in pkg/systems/brainAI/AI_desc/basilisk/
Loading package in pkg/systems/brainAI/AI_desc/unicorn/
Loading package in pkg/systems/brainAI/AI_desc/wrong/
Loading package in pkg/systems/brainAI/AI_desc/doom/
Loading package in pkg/systems/brainAI/AI_desc/horse/
Loading package in pkg/systems/brainAI/AI_desc/lizard/
Loading package in pkg/systems/brainAI/AI_desc/daemon/
Loading package in pkg/systems/brainAI/AI_desc/utility/
Loading package in pkg/systems/brainAI/AI_desc/llama/
Loading package in pkg/systems/death/
Loading package in pkg/systems/loot/
Loading package in pkg/systems/remoteScripts/
Loading package in pkg/systems/merchants/
Loading package in pkg/systems/miniGames/
Loading package in pkg/systems/jailKeeper/
Loading package in pkg/systems/help/
Loading package in pkg/systems/control/
Loading package in pkg/systems/townRaid/
Loading package in pkg/systems/damage/
Loading package in pkg/systems/accounts/
Loading package in pkg/systems/vote/
Loading package in pkg/systems/attributes/
Loading package in pkg/systems/classes/
Loading package in pkg/systems/onlineCount/
Loading package in pkg/systems/worldSaver/
Loading package in pkg/systems/areas/
Loading package in pkg/systems/guilds/
Loading package in pkg/systems/newCharacter/
Loading package in pkg/systems/email/
Loading package in pkg/systems/spells/
checkpoint: load_package_cmdlevels
checkpoint: load_resource_cfg
checkpoint: read_justice_zones
checkpoint: read_music_zones
checkpoint: read_nocast_zones
checkpoint: read_light_zones
checkpoint: read_weather_zones
checkpoint: load_armor_zones
checkpoint: load_attributes_cfg
checkpoint: load_vitals_cfg
checkpoint: load_vitals_cfg: load_packed_cfgs
INSTALLING: Exported Vital - RegenRate and MaxValue functions ...
checkpoint: load_vitals_cfg: find Life vital
checkpoint: load_vitals_cfg: find Stamina vital
checkpoint: load_vitals_cfg: find Mana vital
checkpoint: load_vitals_cfg: verify vital vitals
checkpoint: load_uoskills_cfg
checkpoint: load_uoclient_cfg
checkpoint: initialize_client_interfaces
checkpoint: load_tiles_cfg
checkpoint: load_landtile_cfg
checkpoint: load_itemdesc
Warning! pkg/items/clothing/cloth/onDestroy.ecl does not exist!
checkpoint: load_special_storedconfig: itemdesc
checkpoint: load_special_storedconfig: spells
checkpoint: load_weapon_templates
checkpoint: load_npc_templates
checkpoint: preload_test_scripts
checkpoint: load_spell_data
File config/spells.cfg not found, skipping
checkpoint: load_tips
checkpoint: load stacking cfg
checkpoint: load movement cost
checkpoint: load animation translations
checkpoint: load repsys config
checkpoint: load party config
checkpoint: load console commands
checkpoint: check configuration
checkpoint: loading system hooks
INSTALLING: Fantasia Combat Hook.
INSTALLING: Fantasia Combat Advancment Hook.
INSTALLING: Fantasia Combat Parrying Hook.
checkpoint: loading packet hooks
INSTALLING: RequestAttack Packets...
INSTALLING: Character Profile...
INSTALLING: Singleclick.
INSTALLING: Skill Lock PH...
INSTALLING: Outgoing Status PH...
INSTALLING: Item Pickup...
INSTALLING: HandleSpeech Hook...
INSTALLING: Auto Account/Theft Prevention.
INSTALLING: Statlock Recieving PH...
INSTALLING: Screen Size Setup PH...
INSTALLING: OpenDoor Action Macro PH...
checkpoint: loading auxservice configuration
checkpoint: reading menus
checkpoint: loading intrinsic weapons
checkpoint: reading gameservers
checkpoint: reading starting locations
Reading data files:
checkpoint: reading account data
  data/accounts.txt: 1 elements in 0 ms.
checkpoint: reading data
  data/pol.txt: 1 elements in 0 ms.
Done! 0 milliseconds.
checkpoint: running start scripts
Running startup script.
.
Starting bandwidth recorder... OK.
Starting system moongate setup... OK.
Starting spawnpoint manager... OK.
Starting doomControl... OK.
Starting spawn system... OK.
 Starting seasons setup... OK.
Starting remote scripts system... OK.
Starting ICPPackage setup... OK.
Starting ICPCMDBar setup... OK.
Starting attributes setup... OK.
Starting cheat count... OK.
Starting world saver... OK.
Startup script complete.
checkpoint: starting client listeners
Initialization complete.  POL is active.  Ctrl-C to stop.

checkpoint: starting periodic tasks
Listening for UO clients on port 2593 (encryption: 0,0x0,0x0)
checkpoint: starting threads
checkpoint: start tasks thread
checkpoint: start scripts thread
checkpoint: start decay thread
checkpoint: start reap thread
checkpoint: start dbglisten thread
checkpoint: start threadstatus thread
checkpoint: start clienttransmit thread
Listening for HTTP requests on port 5003
Caught SIGSEGV (Segfault).  Please post the following on http://forums.polserver.com/tracker.php :
=== CUT ===
Build: POL099-2011-05-02 Break Everything Even Rudder (Ubuntu)
Last Script: pkg/systems/control/initializer/cmdbarmenus.ecl PC: 1371
Stack Backtrace:
[0x8262580]
[0xb78d2400]
[0x81222c7]
[0x81219c5]
[0x8120d4a]
[0x813d01f]
[0x826552b]
[0x8265700]
[0x82c5f70]
[0x8318e4e]
=== CUT ===
Segmentation Fault

User avatar
ELSoft
Journeyman Poster
Posts: 61
Joined: Sun Jun 18, 2006 7:45 pm

Re: SegFault running pol99 from trunk

Post by ELSoft » Sat Jan 07, 2012 12:44 pm

I was looking for the problem, and i compiled the code using:

Code: Select all

#!/bin/bash

CC=gcc LINKER=g++ LIBCRYPT="crypto" POL_BUILDTAG=ubuntu CXX_MORE_OPTS="[b]-O0 -g3[/b] -DHAVE_OPENSSL -DNDEBUG -D_REENTRANT -DPOL_BUILDTAG='\"ubuntu\"'" make -f makefile.gcc $*
And after this i run pol using valgrind:

Code: Select all

valgrind --error-limit=no ./pol
the last part of the output was:

==419== Thread 11:
==419== Invalid read of size 4
==419== at 0x81222C7: std::tr1::__detail::_Hashtable_iterator_base<std::pair<unsigned int const, ref_ptr<UObject> >, false>::_M_incr() (/usr/include/c++/4.6/tr1/hashtable_policy.h:215)
==419== by 0x81219C4: std::tr1::__detail::_Hashtable_iterator<std::pair<unsigned int const, ref_ptr<UObject> >, false, false>::operator++() (/usr/include/c++/4.6/tr1/hashtable_policy.h:292)
==419== by 0x8120D49: ObjectHash::Reap() (pol/objecthash.cpp:159)
==419== by 0x813D01E: reap_thread() (pol/pol.cpp:1593)
==419== by 0x8265522: threadhelp::run_thread(void (*)()) (clib/threadhelp.cpp:221)
==419== by 0x82656F7: threadhelp::thread_stub2(void*) (clib/threadhelp.cpp:277)
==419== by 0x82C5F5F: start_thread (pthread_create.c:304)
==419== by 0x8318E3D: clone (in /home/fviale/UO/pol-distro-99/pol)
==419== Address 0x7372655e is not stack'd, malloc'd or (recently) free'd
==419==
Caught SIGSEGV (Segfault). Please post the following on http://forums.polserver.com/tracker.php :
=== CUT ===
Build: POL099-2011-05-02 Break Everything Even Rudder (ubuntu)
Last Script: pkg/systems/brainAI/scripts/virtual/wander.ecl PC: 0
Stack Backtrace:
[0x8262578]
[0x82c96e8]
[0x81222c7]
[0x81219c5]
[0x8120d4a]
[0x813d01f]
[0x8265523]
[0x82656f8]
[0x82c5f60]
[0x8318e3e]
=== CUT ===

PD: I attach the full log of valgrind
Attachments
valgrind.log.rar
(59.05 KiB) Downloaded 94 times

Turley
POL Developer
Posts: 670
Joined: Sun Feb 05, 2006 4:45 am

Re: SegFault running pol99 from trunk

Post by Turley » Sun Jan 08, 2012 8:03 am

Can you attach your unstripped pol binary. I cannot reproduce your problem. Btw you should never start valgrind with a static build. Cause then you get flooded with senseless messages. Only with a dynamic build valgrind auto suppress them.

User avatar
ELSoft
Journeyman Poster
Posts: 61
Joined: Sun Jun 18, 2006 7:45 pm

Re: SegFault running pol99 from trunk

Post by ELSoft » Mon Jan 09, 2012 6:41 pm

Here is the binary http://www.megaupload.com/?d=KSVWGWCZ

I'm not sure if this is relevant but i used the latest version of the code for the pol binary and the compiler from the zip file from the page and the server didn't crash.

MuadDib
Former Developer
Posts: 1090
Joined: Sun Feb 12, 2006 9:50 pm
Location: Cross Lanes, WV

Re: SegFault running pol99 from trunk

Post by MuadDib » Thu Feb 02, 2012 11:41 pm

Please try with latest SVN now. Been several bug fixes this past month.

Post Reply