Advertisement
RLka

Untitled

Sep 30th, 2012
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.84 KB | None | 0 0
  1. data/pol.txt: 2 elements in 9 ms.
  2. data/objects.txt: 0 elements in 0 ms.
  3. data/pcs.txt:Caught SIGSEGV (Segfault). Please post the following on http://forums.polserver.com/tracker.php :
  4. === CUT ===
  5. Build: POL099-2011-05-02 Break Everything Even Rudder (ubuntu)
  6. Last Script: scripts/misc/equiptest.ecl PC: 3
  7. Stack Backtrace:
  8. ./pol-dynamic() [0x82b628c]
  9. [0xe7a400]
  10. ./pol-dynamic() [0x8251048]
  11. ./pol-dynamic() [0x81e89d7]
  12. ./pol-dynamic() [0x8094f79]
  13. ./pol-dynamic() [0x809605e]
  14. ./pol-dynamic() [0x81da85e]
  15. ./pol-dynamic() [0x81daf30]
  16. ./pol-dynamic() [0x81dbe73]
  17. ./pol-dynamic() [0x81533e7]
  18. ./pol-dynamic() [0x815440b]
  19. ./pol-dynamic() [0x82c2efb]
  20. /lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xe7) [0x2ace37]
  21. ./pol-dynamic() [0x804d7c1]
  22. === CUT ===
  23. Segmentation fault
  24.  
  25.  
  26.  
  27. (gdb) l *0x82b628c
  28. 0x82b628c is in segv_handler(int) (clib/strexcpt.cpp:276).
  29. 271 cerr << "Last Script: " << scripts_thread_script << " PC: " << scripts_thread_scriptPC << endl;
  30. 272 cerr << "Stack Backtrace:" << endl;
  31. 273
  32. 274 void* bt[ 200 ];
  33. 275 int n = backtrace( bt, 200 );
  34. 276 char** strings = backtrace_symbols( bt, n );
  35. 277 for (int i = 0; i < n; i++)
  36. 278 {
  37. 279 Log( "%s\n", strings[ i ] );
  38. 280 cerr << strings[ i ] << endl;
  39. (gdb) l *0xe7a400
  40. No source file for address 0xe7a400.
  41. (gdb) l *0x8251048
  42. 0x8251048 is in Realm::valid(unsigned short, unsigned short, short) const (plib/realm.h:157).
  43. 152 Realm( const Realm& );
  44. 153
  45. 154 public:
  46. 155 inline RealmDescriptor _Descriptor() const
  47. 156 {
  48. 157 if (is_shadowrealm)
  49. 158 return baserealm->_Descriptor();
  50. 159 return _descriptor;
  51. 160 }
  52. 161 };
  53. (gdb) l *0x81e89d7
  54. 0x81e89d7 is in UObject::readProperties(ConfigElem&) (pol/uobject.cpp:287).
  55. 282
  56. 283 realm = find_realm( elem.remove_string("Realm", "britannia") );
  57. 284 x = elem.remove_ushort( "X" );
  58. 285 y = elem.remove_ushort( "Y" );
  59. 286 z = static_cast<s8>(elem.remove_int( "Z" ));
  60. 287 if( !realm->valid(x,y,z) )
  61. 288 {
  62. 289 x = static_cast<u16>(realm->width()) - 1;
  63. 290 y = static_cast<u16>(realm->height()) - 1;
  64. 291 z = 0;
  65. (gdb) l *0x8094f79
  66. 0x8094f79 is in Character::readCommonProperties(ConfigElem&) (pol/mobile/charactr.cpp:1071).
  67. 1066
  68. 1067 registered_house = elem.remove_ulong( "REGISTEREDHOUSE", 0 );
  69. 1068
  70. 1069 base::readProperties( elem );
  71. 1070
  72. 1071 if (name_ == "")
  73. 1072 {
  74. 1073 cerr << "Character '" << hexint(serial) << "' has no name!"
  75. 1074 << endl;
  76. 1075 throw runtime_error( "Data integrity error" );
  77. (gdb) l *0x809605e
  78. 0x809605e is in Character::readProperties(ConfigElem&) (pol/mobile/charactr.cpp:1273).
  79. 1268 }
  80. 1269
  81. 1270 void Character::readProperties( ConfigElem& elem )
  82. 1271 {
  83. 1272 readCommonProperties( elem );
  84. 1273 readAttributesAndVitals( elem );
  85. 1274
  86. 1275 last_corpse = elem.remove_ulong("LastCorpse", 0);
  87. 1276 }
  88. 1277
  89. (gdb) l *0x81da85e
  90. 0x81da85e is in read_character(ConfigElem&) (pol/uimport.cpp:92).
  91. 87
  92. 88 try
  93. 89 {
  94. 90 // note chr->logged_in is true..
  95. 91 chr->readProperties( elem );
  96. 92 chr->clear_dirty();
  97. 93
  98. 94 // readProperties gets the serial, so we can't add to the objecthash until now.
  99. 95 objecthash.Insert(chr.get());
  100. 96 }
  101. (gdb) l *0x81daf30
  102. 0x81daf30 is in slurp(char const*, char const*, int) (pol/uimport.cpp:386).
  103. 381 catch( std::exception& )
  104. 382 {
  105. 383 if (!config.ignore_load_errors)
  106. 384 throw;
  107. 385 }
  108. 386 ++nobjects;
  109. 387 }
  110. 388
  111. 389 wallclock_t finish = wallclock();
  112. 390
  113. (gdb) l *0x81dbe73
  114. 0x81dbe73 is in read_data() (pol/uimport.cpp:422).
  115. 417 slurp( (config.world_data_path + "objects.txt").c_str(), "CHARACTER NPC ITEM GLOBALPROPERTIES" );
  116. 418 }
  117. 419
  118. 420 void read_pcs_dat()
  119. 421 {
  120. 422 slurp( (config.world_data_path + "pcs.txt").c_str(), "CHARACTER ITEM", SYSFIND_SKIP_WORLD );
  121. 423 }
  122. 424
  123. 425 void read_pcequip_dat()
  124. 426 {
  125. (gdb) l *0x81533e7
  126. 0x81533e7 is in xmain_inner(int, char**) (pol/pol.cpp:2081).
  127. 2076 checkpoint( "reading account data" );
  128. 2077 read_account_data();
  129. 2078
  130. 2079 checkpoint( "reading data" );
  131. 2080 read_data();
  132. 2081 wallclock_t rd_end = wallclock();
  133. 2082 int ms = wallclock_diff_ms( rd_start, rd_end );
  134. 2083 cout << "Done! " << ms << " milliseconds."<< endl;
  135. 2084
  136. 2085 allocate_intrinsic_weapon_serials();
  137. (gdb) l *0x815440b
  138. 0x815440b is in xmain(int, char**) (pol/pol.cpp:2334).
  139. 2329 strcpy( progverstr, polverstr );
  140. 2330 strcpy( buildtagstr, polbuildtag );
  141. 2331 progver = polver;
  142. 2332
  143. 2333 return xmain_outer( argc, argv );
  144. 2334 }
  145. 2335 #endif
  146. 2336
  147. (gdb) l *0x82c2efb
  148. 0x82c2efb is in main (clib/xmain.cpp:81).
  149. 76 cerr << "Execution aborted due to generic exception." << endl;
  150. 77 exitcode = 2;
  151. 78 }
  152. 79 #endif
  153. 80 return exitcode;
  154. 81 }
  155. 82
  156. 83 string xmain_exepath;
  157. 84 string xmain_exedir;
  158. 85
  159. (gdb) l *0x2ace37
  160. No source file for address 0x2ace37.
  161. (gdb) l *0x804d7c1
  162. No source file for address 0x804d7c1.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement