-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
最近程序中采用json来进行序列化,但是经常偶发性出现Segmentation fault.求助! #814
Comments
再次出现,就又换了一个地方。 |
是被释放了2次 不知道如何解决这个问题,我分批查看,是发现只要用json序列化,就会触发这个问题。 skynet.register_protocol( {
|
在真的搞明白你在做什么之前,禁止使用 netpack 这个内部模块的 api 。至少要把 wiki 上的文档读过一遍。不要想当然使用。 |
是我使用方式有问题。。感谢帮助。 |
coredump文件中提示
warning: Can't read pathname for load map: No error information.
Core was generated by `skynet conf/config.develop'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x0000555c2162d41b in luaS_remove (L=L@entry=0x7f5ec501b8c8, ts=ts@entry=0x7f5ec5032800) at lstring.c:157
157 lstring.c: No such file or directory.
[Current thread is 1 (LWP 9)]
错误堆栈
#0 0x0000555c2162d41b in luaS_remove (L=L@entry=0x7f5ec501b8c8, ts=ts@entry=0x7f5ec5032800) at lstring.c:157
#1 0x0000555c21627674 in freeobj (o=, L=0x7f5ec501b8c8) at lgc.c:723
#2 sweeplist (L=L@entry=0x7f5ec501b8c8, p=0x7f5ec5031dc0, count=22, count@entry=85) at lgc.c:755
#3 0x0000555c216276fa in sweepstep (L=L@entry=0x7f5ec501b8c8, g=0x7f5ec50c25d8, nextstate=3, nextlist=0x7f5ec50c2640)
at lgc.c:1044
#4 0x0000555c2162796a in singlestep (L=L@entry=0x7f5ec501b8c8) at lgc.c:1088
#5 0x0000555c21627fb6 in luaC_step (L=L@entry=0x7f5ec501b8c8) at lgc.c:1148
#6 0x0000555c2162195c in lua_pushlstring (L=L@entry=0x7f5ec501b8c8, s=, len=) at lapi.c:486
#7 0x0000555c216342bc in luaL_pushresult (B=B@entry=0x7f5ec8250700) at lauxlib.c:544
#8 0x0000555c2163e4d8 in str_format (L=) at lstrlib.c:1091
#9 0x0000555c21624df0 in luaD_precall (L=L@entry=0x7f5ec501b8c8, func=func@entry=0x7f5ec50a40c0, nresults=nresults@entry=-1)
at ldo.c:434
#10 0x0000555c2163102f in luaV_execute (L=L@entry=0x7f5ec501b8c8) at lvm.c:1146
#11 0x0000555c216250bf in luaD_call (L=L@entry=0x7f5ec501b8c8, func=, nResults=nResults@entry=-1) at ldo.c:499
#12 0x0000555c2162269a in lua_pcallk (L=L@entry=0x7f5ec501b8c8, nargs=nargs@entry=0, nresults=nresults@entry=-1,
errfunc=errfunc@entry=2, ctx=ctx@entry=2, k=k@entry=0x555c21638a60 ) at lapi.c:981
#13 0x0000555c21638b20 in luaB_xpcall (L=0x7f5ec501b8c8) at lbaselib.c:441
#14 0x0000555c21624df0 in luaD_precall (L=L@entry=0x7f5ec501b8c8, func=func@entry=0x7f5ec50a3f40, nresults=nresults@entry=-1)
at ldo.c:434
#15 0x0000555c2163102f in luaV_execute (L=L@entry=0x7f5ec501b8c8) at lvm.c:1146
#16 0x0000555c21624b70 in unroll (L=0x7f5ec501b8c8, ud=) at ldo.c:556
#17 0x0000555c21624512 in luaD_rawrunprotected (L=L@entry=0x7f5ec501b8c8, f=f@entry=0x555c21624fc0 ,
#33 0x0000555c21624512 in luaD_rawrunprotected (L=L@entry=0x7f5ec50c2508, f=f@entry=0x555c21620e60 <f_call>,
ud=ud@entry=0x7f5ec8253150) at ldo.c:142
#34 0x0000555c2162542d in luaD_pcall (L=L@entry=0x7f5ec50c2508, func=func@entry=0x555c21620e60 <f_call>,
u=u@entry=0x7f5ec8253150, old_top=48, ef=) at ldo.c:729
#35 0x0000555c21622601 in lua_pcallk (L=L@entry=0x7f5ec50c2508, nargs=nargs@entry=5, nresults=nresults@entry=0,
errfunc=errfunc@entry=1, ctx=ctx@entry=0, k=k@entry=0x0) at lapi.c:969
#36 0x00007f5ec61f8db8 in _cb (context=0x7f5ec50db400, ud=0x7f5ec50c2508, type=3, session=0, source=33, msg=0x7f5ec37bddc0,
sz=54) at lualib-src/lua-skynet.c:52
#37 0x0000555c21619a77 in dispatch_message (ctx=0x7f5ec50db400, msg=0x7f5ec8253240) at skynet-src/skynet_server.c:274
#38 0x0000555c2161a733 in skynet_context_message_dispatch (sm=sm@entry=0x7f5ec7c1e800, q=0x7f5ec50f0840,
weight=weight@entry=-1) at skynet-src/skynet_server.c:334
#39 0x0000555c2161aeb5 in thread_worker (p=) at skynet-src/skynet_start.c:162
#40 0x00007f5ec8066ff8 in ?? () from /lib/ld-musl-x86_64.so.1
#41 0x0000000000000000 in ?? ()
The text was updated successfully, but these errors were encountered: