--
--
邮件来自列表“openresty”,专用于技术讨论!
订阅: 请发空白邮件到 openresty+subscribe@googlegroups.com
发言: 请发邮件到 open...@googlegroups.com
退订: 请发邮件至 openresty+unsubscribe@googlegroups.com
归档: http://groups.google.com/group/openresty
官网: http://openresty.org/
仓库: https://github.com/agentzh/ngx_openresty
教程: http://openresty.org/download/agentzh-nginx-tutorials-zhcn.html
我写入的key 和 val 都是明文,是做 网站的session key 保存,格式也是很固定的,如: Session:set("b026324c6904b2a9cb4b88d6d61c81d1", "admin&1520307864", 7200) 这就是我的设置命令,每条都是一样的格式。我的环境在嵌入式环境,没有coredump,我尝试一下看能否使用coredump。
在 2018年3月6日 上午11:40,tokers <zcha...@gmail.com>写道:
Hello!> 日志: 2018/03/06 10:54:19 [alert] 841#0: shared memory zone "sess_key" was locked by 20038这说明 20038 这个进程在锁住这块共享内存后,还没来得及释放,就因为一些问题异常退出了。> nginx -s reload 无法解决问题,如果把进程stop 再start 一次,就不能重现问题。reload 的时候,如果不修改共享内存大小,那么这块共享内存还是会被复用的,猜测可能这块共享内存是否被写入了脏数据导致比如 slab 池的一些信息被损坏了。题主有对应的 coredump 文件吗,最好可以导入到 gdb,打印一下堆栈,以便分析观察。
--
--
邮件来自列表“openresty”,专用于技术讨论!
订阅: 请发空白邮件到 openresty...@googlegroups.com
发言: 请发邮件到 open...@googlegroups.com
退订: 请发邮件至 openresty+...@googlegroups.com
> 订阅: 请发空白邮件到 openresty+subscribe@googlegroups.com
> 发言: 请发邮件到 open...@googlegroups.com
> 退订: 请发邮件至 openresty+unsubscribe@googlegroups.com
> 归档: http://groups.google.com/group/openresty
> 官网: http://openresty.org/
> 仓库: https://github.com/agentzh/ngx_openresty
> 教程: http://openresty.org/download/agentzh-nginx-tutorials-zhcn.html
--
--
邮件来自列表“openresty”,专用于技术讨论!
订阅: 请发空白邮件到 openresty+subscribe@googlegroups.com
发言: 请发邮件到 open...@googlegroups.com
退订: 请发邮件至 openresty+unsubscribe@googlegroups.com
>> > 订阅: 请发空白邮件到 openresty+subscribe@googlegroups.com
>> > 发言: 请发邮件到 open...@googlegroups.com
>> > 退订: 请发邮件至 openresty+unsubscribe@googlegroups.com
>> > 归档: http://groups.google.com/group/openresty
>> > 官网: http://openresty.org/
>> > 仓库: https://github.com/agentzh/ngx_openresty
>> > 教程: http://openresty.org/download/agentzh-nginx-tutorials-zhcn.html
>>
>> --
>> --
>> 邮件来自列表“openresty”,专用于技术讨论!
>> 订阅: 请发空白邮件到 openresty+subscribe@googlegroups.com
>> 发言: 请发邮件到 open...@googlegroups.com
>> 退订: 请发邮件至 openresty+unsubscribe@googlegroups.com
>> 归档: http://groups.google.com/group/openresty
>> 官网: http://openresty.org/
>> 仓库: https://github.com/agentzh/ngx_openresty
>> 教程: http://openresty.org/download/agentzh-nginx-tutorials-zhcn.html
>
>
> --
> --
> 邮件来自列表“openresty”,专用于技术讨论!
> 订阅: 请发空白邮件到 openresty+subscribe@googlegroups.com
> 发言: 请发邮件到 open...@googlegroups.com
> 退订: 请发邮件至 openresty+unsubscribe@googlegroups.com
> 归档: http://groups.google.com/group/openresty
> 官网: http://openresty.org/
> 仓库: https://github.com/agentzh/ngx_openresty
> 教程: http://openresty.org/download/agentzh-nginx-tutorials-zhcn.html
--
--
邮件来自列表“openresty”,专用于技术讨论!
订阅: 请发空白邮件到 openresty+subscribe@googlegroups.com
发言: 请发邮件到 open...@googlegroups.com
退订: 请发邮件至 openresty+unsubscribe@googlegroups.com

订阅: 请发空白邮件到 openresty+subscribe@googlegroups.com
发言: 请发邮件到 open...@googlegroups.com
退订: 请发邮件至 openresty+unsubscribe@googlegroups.com

Hello!刚看了下,红黑树节点居然出现了空值,正常情况下,如果左儿子/右儿子空的话,都会赋值成 sentinel 节点。目前没有看出端倪。:(
--
你这个“节点为NULL”的错误,是在修改了 Nginx 源码之后才出现吗?
如果原本应该是原子操作的地方(比如获取锁)没有真正地进行原子操作,那么可能会有两个进程并发同时修改一个内存地址的情况,这时候难免会出现
NULL 之类数据结构被破坏的情况。
在 2018年3月16日 上午9:30,大雄 <daxio...@gmail.com> 写道:
> hello, tokers
> 出现空指针, 那会不会有某些地方 把值设为 NULL ,
> 我觉得应该 需要针对 NULL值 专门处理一下逻辑吧。
> 有没有临时的解决办法建议 让我打个patch 进去,比如 得到NULL 的时候 我让 ngx_rbtree_delete 的函数直接 return
> 是否可以?
>
>
> 在 2018年3月14日 下午7:17,tokers <zcha...@gmail.com>写道:
>>
>> Hello!
>>
>> 刚看了下,红黑树节点居然出现了空值,正常情况下,如果左儿子/右儿子空的话,都会赋值成 sentinel 节点。目前没有看出端倪。:(
>>
>> --
>> --
>> 邮件来自列表“openresty”,专用于技术讨论!
>> 订阅: 请发空白邮件到 openresty+subscribe@googlegroups.com
>> 发言: 请发邮件到 open...@googlegroups.com
>> 退订: 请发邮件至 openresty+unsubscribe@googlegroups.com
>> 归档: http://groups.google.com/group/openresty
>> 官网: http://openresty.org/
>> 仓库: https://github.com/agentzh/ngx_openresty
>> 教程: http://openresty.org/download/agentzh-nginx-tutorials-zhcn.html
>
>
> --
> --
> 邮件来自列表“openresty”,专用于技术讨论!
> 订阅: 请发空白邮件到 openresty+subscribe@googlegroups.com
> 发言: 请发邮件到 open...@googlegroups.com
> 退订: 请发邮件至 openresty+unsubscribe@googlegroups.com
> 归档: http://groups.google.com/group/openresty
> 官网: http://openresty.org/
> 仓库: https://github.com/agentzh/ngx_openresty
> 教程: http://openresty.org/download/agentzh-nginx-tutorials-zhcn.html
--
--
邮件来自列表“openresty”,专用于技术讨论!
订阅: 请发空白邮件到 openresty+subscribe@googlegroups.com
发言: 请发邮件到 open...@googlegroups.com
退订: 请发邮件至 openresty+unsubscribe@googlegroups.com