什么是strtol_l_internal? [英] What is strtol_l_internal?

查看:193
本文介绍了什么是strtol_l_internal?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的程序C ++中得到了这个

I'm getting this in my program, C++

程序收到信号SIGSEGV,分段故障./lib/libc.so.6中的 _ _strtol_l_internal()中的0xb7d62153

Program received signal SIGSEGV, Segmentation Fault. 0xb7d62153 in __strtol_l_internal () from /lib/libc.so.6

我通过使用GDB做到了.CC与G ++一起很好地编译了

I got that by using GDB. CC compiled it fine along with G++

    sockf = openSocket(domainname, portc);
    if(sockf > 0){
        log("ZONTRECK","COMPLETED SOCKET!");
        int newsockfd;
        newsockfd = openListen(sockf,portc);
        log("ZONTRECK","Starting console!");

推荐答案

在gdb中使用 backtrace 命令来查看程序如何从代码中获取到这一点-这将有助于找到什么参数被传递会导致问题(可能是NULL或无效的指针).

Use the backtrace command in gdb to see how the program got to that point from your code - that will help find what parameter is being passed that's causing the problem (probably a NULL or otherwise invalid pointer).

这篇关于什么是strtol_l_internal?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆