OpenSSL的构建在Linux上使用-g进行调试 [英] Build OpenSSL on Linux with -g for debugging

查看:2946
本文介绍了OpenSSL的构建在Linux上使用-g进行调试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从OpenSSL的到来段错误(具体 SSL_read ),我想调试。我想在这里把最好的步骤就是对自己使用调试符号生成库这样我就可以步入函数,看看它的发生的命令。这不是我清楚如何将)建立自己的图书馆和b)黑客makefile文件给我调试符号。有没有人有经验,用这个特定的库这样做,或者对这种构建的一般准则和修改的方法呢?

得到这个错误:

  ./配置-d
操作系统:x86_64的 - 无论-将linux2
不支持此系统(调试Linux的x86_64的)。见INSTALL文件的详细信息。

不知道这里做什么。 OS信息:

  $执行cat / proc /版本
Linux的版本3.2.0-24虚拟(buildd @黄)(gcc版本4.6.3(Ubuntu的/ Linaro的4.6.31ubuntu5))#37 Ubuntu的SMP周三4月25日10时十七分19秒UTC 2012
$ UNAME -srvio
Linux的3.2.0-24虚拟#37 Ubuntu的SMP周三4月25日10点17分十九秒UTC 2012 x86_64的GNU / Linux的


解决方案

您可以按照提到的简单指令的这里建筑OpenSSL的。为了使调试版本,当你运行 ./配置添加 -d 标记,即 ./配置-d [其他选项] 。 OpenSSL的建设中详细提到这里

I have a segfault coming from OpenSSL (specifically SSL_read) that I'd like to debug. I think the best step to take here is to build the library myself with debug symbols so I can step into the function and see the command it's happening on. It's not clear to me how to a) build the library myself and b) hack the makefile to give me the debug symbols. Does anyone have experience doing this with this specific library, or have general guidelines on this sort of build and modify approach?

Got this error:

./config -d
Operating system: x86_64-whatever-linux2
This system (debug-linux-x86_64) is not supported. See file INSTALL for details.

Not sure what to do here. OS info:

$ cat /proc/version
Linux version 3.2.0-24-virtual (buildd@yellow) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.31ubuntu5) ) #37-Ubuntu SMP Wed Apr 25 10:17:19 UTC 2012
$ uname -srvio
Linux 3.2.0-24-virtual #37-Ubuntu SMP Wed Apr 25 10:17:19 UTC 2012 x86_64 GNU/Linux

解决方案

You can follow the simple instructions mentioned here for building OpenSSL. For making a debug build, add the -d flag when you run ./config, i.e. ./config -d [other options]. Building OpenSSL is mentioned in detail here.

这篇关于OpenSSL的构建在Linux上使用-g进行调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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