【问题标题】:gdb remote returned an error e08gdb 远程返回错误 e08
【发布时间】:2012-11-28 16:09:30
【问题描述】:

我正在开发一个使用 OAuth-Consumer 库的 iphone 应用程序,我当前的调试器 id 是 LLDB 其中,它使用以下方法生成签名

-(NSString *)signClearText:(NSString *)text withSecret:(NSString *)secret
{
 //it generates base64EncodedData and then returns it as a string
 return base64EncodedResult;//this is line is executed successfully

}//when it reaches this line it again goes to the return statement and there app      crashes
 //with the gdb error

如果我在 return 语句之前使用 NSLog,它会成功打印 base64EncodeResult 的值。

我尝试了不同的调试器 GDB,但应用程序仍然因错误而崩溃 “无法访问位置 0xYYYYYYY 的内存”

当我尝试 none debugger 时,应用程序不会崩溃,但它会停止进一步执行......

【问题讨论】:

    标签: ios oauth gdb remote-debugging


    【解决方案1】:

    如果局部变量的缓冲区溢出,它可能会破坏堆栈帧。如果发生这种情况,您可以覆盖堆栈的返回地址,以便应用返回到无效地址。

    【讨论】:

    • 如何覆盖栈的返回地址??
    猜你喜欢
    • 2012-09-30
    • 2010-10-16
    • 2013-09-22
    • 1970-01-01
    • 2017-02-03
    • 1970-01-01
    • 1970-01-01
    • 2023-03-20
    相关资源
    最近更新 更多