在Java中,未对齐的指针被释放? [英] Non-aligned pointer being freed, in Java?

查看:147
本文介绍了在Java中,未对齐的指针被释放?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这在Objective-C中很容易找到,但在Java中我认为这种事情是不可能的。我看到的错误是:

This would be simple to track down in Objective-C, but in Java I thought this kind of thing was impossible. The error I'm seeing is:

java(7198,0x124a13000) malloc: *** error for object 0x1003109c1: Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug

我将如何在Java中设置这种类型的断点?或者,我如何追踪有问题的物体?那个内存地址不是hashCode,对吗?

How would I set a breakpoint of this type in Java? Or, how would I track down the object in question? That memory address is NOT the hashCode, right?

推荐答案

你不用Java本身调试这种东西,因为这个似乎是JVM本身的一个错误或一些流氓本地库。

You don't debug this kind of stuff in Java itself, because this seems either a bug in the JVM itself or some rogue native library.

这篇关于在Java中,未对齐的指针被释放?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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