Hi, I need help for the ken offline shop system, I don't know how the crash occurs but the error is this (GDB):
First:
First:
#0 DESC:acket (this=0x420000, c_pvData=0x28eeb000, iSize=163)
at desc.cpp:427
427 desc.cpp: No such file or directory.
[Current thread is 1 (LWP 101053)]
(gdb) bt full
#0 DESC:acket (this=0x420000, c_pvData=0x28eeb000, iSize=163)
at desc.cpp:427
No locals.
#1 0x082b4909 in COfflineShop::Broadcast (this=0x333b81f0, data=0x28eeb000,
bytes=163) at offline_shop.cpp:1010
ch = <optimized out>
it = {<std::tr1::__detail::_Hashtable_iterator_base<std:air<CHARACTER* const, bool>, false>> = {_M_cur_node = 0x5bf925e0,
_M_cur_bucket = 0x407feadc}, <No data fields>}
#2 0x082b4b39 in COfflineShop::BroadcastUpdateItem (this=0x333b81f0,
bPos=2 '\002', dwPID=166, bDestroy=false) at offline_shop.cpp:921
pack = {header = 47 '/', size = 163, subheader = 2 '\002'}
pack2 = {pos = 2 '\002', item = {vnum = 28607, price = 120000000,
price2 = 0, price_type = 0, count = 1 '\001',
display_pos = 162 '\242', alSockets = {0, 0, 0, 0}, aAttr = {{
bType = 0 '\000', sValue = 0} <repeats 15 times>},
status = 2 '\002',
szBuyerName = "CIOTTO", '\000' <repeats 14 times>, "\305\001", '\000 ' <repeats 14 times>, "<\002\352[\330N\344a<\002\352[\246\000\000\000\070\271&X( \236\377\377$\341\031\b\200\315\377\377\000\210G,", transmutation = 0,
evolution = 0}}
buf = {buf = 0x28e47760, forceDelete = false}
#3 0x082b54f6 in COfflineShop::Buy (this=0x333b81f0, ch=0x33cbfa40,
--Type <RET> for more, q to quit, c to continue without paging--
bPos=<optimized out>, isSearchBuy=false) at offline_shop.cpp:835
it = <optimized out>
r_item = @0x5826b938: {id = 0, owner_id = 0, pos = 0 '\000',
count = 0 '\000', price = 0, price2 = 0, price_type = 0, vnum = 0,
alSockets = {0, 0, 0, 0}, aAttr = {{bType = 0 '\000',
sValue = 0} <repeats 15 times>}, status = 0 '\000',
szBuyerName = '\000' <repeats 24 times>, transmutation = 0,
evolution = 0, szName = '\000' <repeats 24 times>,
refine_level = 0 '\000', shop_id = 0}
dwID = <optimized out>
dwPrice = <error reading variable dwPrice (Cannot access memory at addre ss 0xffff9e58)>
dwPrice2 = <error reading variable dwPrice2 (Cannot access memory at add ress 0xffff9e5c)>
sPriceType = <error reading variable sPriceType (Cannot access memory at address 0xffff9e62)>
dwItemVnum = <error reading variable dwItemVnum (Cannot access memory at address 0xffff9e64)>
bCount = <optimized out>
alSockets = <error reading variable alSockets (Cannot access memory at a ddress 0xffff9eb8)>
aAttr = <error reading variable aAttr (Cannot access memory at address 0 xffff9e8b)>
at desc.cpp:427
427 desc.cpp: No such file or directory.
[Current thread is 1 (LWP 101053)]
(gdb) bt full
#0 DESC:acket (this=0x420000, c_pvData=0x28eeb000, iSize=163)
at desc.cpp:427
No locals.
#1 0x082b4909 in COfflineShop::Broadcast (this=0x333b81f0, data=0x28eeb000,
bytes=163) at offline_shop.cpp:1010
ch = <optimized out>
it = {<std::tr1::__detail::_Hashtable_iterator_base<std:air<CHARACTER* const, bool>, false>> = {_M_cur_node = 0x5bf925e0,
_M_cur_bucket = 0x407feadc}, <No data fields>}
#2 0x082b4b39 in COfflineShop::BroadcastUpdateItem (this=0x333b81f0,
bPos=2 '\002', dwPID=166, bDestroy=false) at offline_shop.cpp:921
pack = {header = 47 '/', size = 163, subheader = 2 '\002'}
pack2 = {pos = 2 '\002', item = {vnum = 28607, price = 120000000,
price2 = 0, price_type = 0, count = 1 '\001',
display_pos = 162 '\242', alSockets = {0, 0, 0, 0}, aAttr = {{
bType = 0 '\000', sValue = 0} <repeats 15 times>},
status = 2 '\002',
szBuyerName = "CIOTTO", '\000' <repeats 14 times>, "\305\001", '\000 ' <repeats 14 times>, "<\002\352[\330N\344a<\002\352[\246\000\000\000\070\271&X( \236\377\377$\341\031\b\200\315\377\377\000\210G,", transmutation = 0,
evolution = 0}}
buf = {buf = 0x28e47760, forceDelete = false}
#3 0x082b54f6 in COfflineShop::Buy (this=0x333b81f0, ch=0x33cbfa40,
--Type <RET> for more, q to quit, c to continue without paging--
bPos=<optimized out>, isSearchBuy=false) at offline_shop.cpp:835
it = <optimized out>
r_item = @0x5826b938: {id = 0, owner_id = 0, pos = 0 '\000',
count = 0 '\000', price = 0, price2 = 0, price_type = 0, vnum = 0,
alSockets = {0, 0, 0, 0}, aAttr = {{bType = 0 '\000',
sValue = 0} <repeats 15 times>}, status = 0 '\000',
szBuyerName = '\000' <repeats 24 times>, transmutation = 0,
evolution = 0, szName = '\000' <repeats 24 times>,
refine_level = 0 '\000', shop_id = 0}
dwID = <optimized out>
dwPrice = <error reading variable dwPrice (Cannot access memory at addre ss 0xffff9e58)>
dwPrice2 = <error reading variable dwPrice2 (Cannot access memory at add ress 0xffff9e5c)>
sPriceType = <error reading variable sPriceType (Cannot access memory at address 0xffff9e62)>
dwItemVnum = <error reading variable dwItemVnum (Cannot access memory at address 0xffff9e64)>
bCount = <optimized out>
alSockets = <error reading variable alSockets (Cannot access memory at a ddress 0xffff9eb8)>
aAttr = <error reading variable aAttr (Cannot access memory at address 0 xffff9e8b)>
#0 DESC:acket (this=0x2a, c_pvData=0x28eeb000, iSize=163) at desc.cpp:427
No locals.
#1 0x082b4909 in COfflineShop::Broadcast (this=0x29976c20, data=0x28eeb000, bytes=163) at offline_shop.cpp:1010
ch = <optimized out>
it = {<std::tr1::__detail::_Hashtable_iterator_base<std:air<CHARACTER* const, bool>, false>> = {_M_cur_node = 0x5ab22b90, _M_cur_bucket = 0x59026e90}, <No data fields>}
#2 0x082b4b39 in COfflineShop::BroadcastUpdateItem (this=0x29976c20, bPos=19 '\023', dwPID=2832, bDestroy=false) at offline_shop.cpp:921
pack = {header = 47 '/', size = 163, subheader = 2 '\002'}
pack2 = {pos = 19 '\023', item = {vnum = 30628, price = 150000000, price2 = 0, price_type = 0, count = 10 '\n', display_pos = 129 '\201', alSockets = {0, 0, 0, 0}, aAttr = {{bType = 0 '\000', sValue = 0} <repeats 15 times>},
status = 2 '\002', szBuyerName = "Nick", '\000' <repeats 16 times>, "\065\005", '\000' <repeats 14 times>, "L{\376Z\000:\235ML{\376Z\020\v\000\000\224K\021Y(\236\377\377$\341\031\b\200\315\377\377\000ds2",
transmutation = 0, evolution = 0}}
buf = {buf = 0x28e47760, forceDelete = false}
#3 0x082b54f6 in COfflineShop::Buy (this=0x29976c20, ch=0x44ab8240, bPos=<optimized out>, isSearchBuy=false) at offline_shop.cpp:835
it = <optimized out>
r_item = @0x59114b94: {id = 530018121, owner_id = 2832, pos = 19 '\023', count = 10 '\n', price = 150000000, price2 = 0, price_type = 0, vnum = 30628, alSockets = {0, 0, 0, 0}, aAttr = {{bType = 0 '\000',
sValue = 0} <repeats 15 times>}, status = 2 '\002', szBuyerName = "Nick\000E", '\000' <repeats 18 times>, transmutation = 0, evolution = 0, szName = "0", '\000' <repeats 23 times>, refine_level = 0 '\000', shop_id = 26416}
dwID = <optimized out>
dwPrice = 150000000
dwPrice2 = 0
sPriceType = 0
dwItemVnum = 30628
bCount = <optimized out>
alSockets = {0, 0, 0, 0}
aAttr = {{bType = 0 '\000', sValue = 0} <repeats 15 times>}
dwTransmutation = 0
dwEvolution = 0
pItem = 0x32736400
iEmptyPos = <optimized out>
bLeftItemCount = <optimized out>
#4 0x082b8e07 in COfflineShopManager::Buy (this=0xffffdba0, ch=0x44ab8240, pos=42 '*') at offlineshop_manager.cpp:733
pkOfflineShop = <optimized out>
ret = <optimized out>
#5 0x08180188 in CInputMain::OfflineShop (this=0x59d44c9c, ch=0x44ab8240, data=0x59db8c00 "9\001\001\023\236\244\016", uiBytes=<optimized out>) at input_main.cpp:2030
bPos = <optimized out>
p = <optimized out>
c_pData = <optimized out>
__FUNCTION__ = "OfflineShop"
#6 0x0818e0c8 in CInputMain::Analyze (this=0x59d44c9c, d=0x59d44c00, bHeader=<optimized out>, c_pData=0x59db8c00 "9\001\001\023\236\244\016") at input_main.cpp:4992
ch = 0x44ab8240
iExtraLen = <optimized out>
__FUNCTION__ = "Analyze"
#7 0x0816cfd5 in CInputProcessor:rocess (this=0x59d44c9c, lpDesc=0x59d44c00, c_pvOrig=0x59db8c00, iBytes=4, r_iBytesProceed=@0xffffa418: 0) at input.cpp:106
iExtraPacketSize = <optimized out>
bHeader = 57 '9'
c_pszName = 0x31ed1dac "OfflineShop"
c_pData = 0x59db8c00 "9\001\001\023\236\244\016"
bLastHeader = <optimized out>
iLastPacketLen = 0
iPacketLen = 2
__FUNCTION__ = "Process"
#8 0x0813a08d in DESC:rocessInput (this=0x59d44c00) at desc.cpp:305
iBytesProceed = 0
bytes_read = 4
__FUNCTION__ = "ProcessInput"
#9 0x082d2044 in io_loop (fdw=0x28ec5800) at main.cpp:1048
iRet = 42
d = <optimized out>
num_events = 57
event_idx = 15
__FUNCTION__ = "io_loop"
#10 0x082d2a29 in idle () at main.cpp:930
now = {tv_sec = 1581529957, tv_usec = 668940}
passed_pulses = <optimized out>
t = 1396698
No locals.
#1 0x082b4909 in COfflineShop::Broadcast (this=0x29976c20, data=0x28eeb000, bytes=163) at offline_shop.cpp:1010
ch = <optimized out>
it = {<std::tr1::__detail::_Hashtable_iterator_base<std:air<CHARACTER* const, bool>, false>> = {_M_cur_node = 0x5ab22b90, _M_cur_bucket = 0x59026e90}, <No data fields>}
#2 0x082b4b39 in COfflineShop::BroadcastUpdateItem (this=0x29976c20, bPos=19 '\023', dwPID=2832, bDestroy=false) at offline_shop.cpp:921
pack = {header = 47 '/', size = 163, subheader = 2 '\002'}
pack2 = {pos = 19 '\023', item = {vnum = 30628, price = 150000000, price2 = 0, price_type = 0, count = 10 '\n', display_pos = 129 '\201', alSockets = {0, 0, 0, 0}, aAttr = {{bType = 0 '\000', sValue = 0} <repeats 15 times>},
status = 2 '\002', szBuyerName = "Nick", '\000' <repeats 16 times>, "\065\005", '\000' <repeats 14 times>, "L{\376Z\000:\235ML{\376Z\020\v\000\000\224K\021Y(\236\377\377$\341\031\b\200\315\377\377\000ds2",
transmutation = 0, evolution = 0}}
buf = {buf = 0x28e47760, forceDelete = false}
#3 0x082b54f6 in COfflineShop::Buy (this=0x29976c20, ch=0x44ab8240, bPos=<optimized out>, isSearchBuy=false) at offline_shop.cpp:835
it = <optimized out>
r_item = @0x59114b94: {id = 530018121, owner_id = 2832, pos = 19 '\023', count = 10 '\n', price = 150000000, price2 = 0, price_type = 0, vnum = 30628, alSockets = {0, 0, 0, 0}, aAttr = {{bType = 0 '\000',
sValue = 0} <repeats 15 times>}, status = 2 '\002', szBuyerName = "Nick\000E", '\000' <repeats 18 times>, transmutation = 0, evolution = 0, szName = "0", '\000' <repeats 23 times>, refine_level = 0 '\000', shop_id = 26416}
dwID = <optimized out>
dwPrice = 150000000
dwPrice2 = 0
sPriceType = 0
dwItemVnum = 30628
bCount = <optimized out>
alSockets = {0, 0, 0, 0}
aAttr = {{bType = 0 '\000', sValue = 0} <repeats 15 times>}
dwTransmutation = 0
dwEvolution = 0
pItem = 0x32736400
iEmptyPos = <optimized out>
bLeftItemCount = <optimized out>
#4 0x082b8e07 in COfflineShopManager::Buy (this=0xffffdba0, ch=0x44ab8240, pos=42 '*') at offlineshop_manager.cpp:733
pkOfflineShop = <optimized out>
ret = <optimized out>
#5 0x08180188 in CInputMain::OfflineShop (this=0x59d44c9c, ch=0x44ab8240, data=0x59db8c00 "9\001\001\023\236\244\016", uiBytes=<optimized out>) at input_main.cpp:2030
bPos = <optimized out>
p = <optimized out>
c_pData = <optimized out>
__FUNCTION__ = "OfflineShop"
#6 0x0818e0c8 in CInputMain::Analyze (this=0x59d44c9c, d=0x59d44c00, bHeader=<optimized out>, c_pData=0x59db8c00 "9\001\001\023\236\244\016") at input_main.cpp:4992
ch = 0x44ab8240
iExtraLen = <optimized out>
__FUNCTION__ = "Analyze"
#7 0x0816cfd5 in CInputProcessor:rocess (this=0x59d44c9c, lpDesc=0x59d44c00, c_pvOrig=0x59db8c00, iBytes=4, r_iBytesProceed=@0xffffa418: 0) at input.cpp:106
iExtraPacketSize = <optimized out>
bHeader = 57 '9'
c_pszName = 0x31ed1dac "OfflineShop"
c_pData = 0x59db8c00 "9\001\001\023\236\244\016"
bLastHeader = <optimized out>
iLastPacketLen = 0
iPacketLen = 2
__FUNCTION__ = "Process"
#8 0x0813a08d in DESC:rocessInput (this=0x59d44c00) at desc.cpp:305
iBytesProceed = 0
bytes_read = 4
__FUNCTION__ = "ProcessInput"
#9 0x082d2044 in io_loop (fdw=0x28ec5800) at main.cpp:1048
iRet = 42
d = <optimized out>
num_events = 57
event_idx = 15
__FUNCTION__ = "io_loop"
#10 0x082d2a29 in idle () at main.cpp:930
now = {tv_sec = 1581529957, tv_usec = 668940}
passed_pulses = <optimized out>
t = 1396698