Fork me on GitHub
  December 17, 2018, 12:39:47 pm
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Segfault while using Furnace  (Read 2643 times)
kuch3n
Newbie
*
Posts: 1


View Profile
« on: August 31, 2011, 04:11:55 pm »

Using git Source. Compiled on Linux 2.6.39-gentoo-r3

Backtracke with gdb:

Code:
(gdb) bt
#0  0x00000000004fa8f8 in __gnu_cxx::new_allocator<unsigned char>::construct (this=0x3a29a00,
    __p=0x1 <Address 0x1 out of bounds>, __val=@0x7fffffffc04f)
    at /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.5/include/g++-v4/ext/new_allocator.h:105
#1  0x00000000004f9ea2 in std::deque<unsigned char, std::allocator<unsigned char> >::push_back
    (this=0x3a29a00, __x=@0x7fffffffc04f)
    at /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.5/include/g++-v4/bits/stl_deque.h:1206
#2  0x00000000004f7057 in Packet::operator<< (this=0x3a299b0, val=0 '\000')
    at /home/kuch3n/mineserver/src/packets.cpp:1335
#3  0x00000000004e356c in Item::sendUpdate (this=0x39b67f0)
    at /home/kuch3n/mineserver/src/inventory.cpp:69
#4  0x00000000004e3625 in Item::setType (this=0x39b67f0, type=5)
    at /home/kuch3n/mineserver/src/inventory.cpp:87
#5  0x00000000004e706d in Inventory::windowClick (this=0x8a7c90, user=0x1c0f310,
    windowID=4 '\004', slot=0, rightClick=0 '\000', actionNumber=2, itemID=-1,
    itemCount=0 '\000', itemUses=0, shift=0 '\000')
    at /home/kuch3n/mineserver/src/inventory.cpp:826
#6  0x00000000004eea72 in PacketHandler::inventory_change (user=0x1c0f310)
    at /home/kuch3n/mineserver/src/packets.cpp:233
#7  0x00000000005339eb in client_callback (fd=10, ev=2, arg=0x1c0f310)
    at /home/kuch3n/mineserver/src/sockets.cpp:106
#8  0x00007ffff779147c in event_base_loop () from /usr/lib64/libevent-2.0.so.5
#9  0x00000000004d89ba in Mineserver::run (this=0x7d7a40)
    at /home/kuch3n/mineserver/src/mineserver.cpp:671
#10 0x00000000004cec9d in main (argc=1, argv=0x7fffffffde88)
    at /home/kuch3n/mineserver/src/mineserver.cpp:264
(gdb)

Last Function called:

Code:
// Shift operators for Packet class
Packet& Packet::operator<<(int8_t val)
{
  m_writeBuffer.push_back(val);
  return *this;
}

gcc-4.4.5
zlib-1.2.5-r2
libnoise-1.0.0


While the Furnace is opened, picking up a Item will spawn a Furnace on the same Slot from which it was placed
« Last Edit: August 31, 2011, 06:32:32 pm by kuch3n » Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!