I’m using gomobile to compile an Android aar. The issue I have is when there is
a crash in the native code, I don’t see any stack trace. Crash reports from the
Google Console are equally useless.
If anyone has stack traces figured on on gomobile, I’d love your help to learn
how.
My build flags
With gomobile, I’m not able to see stack traces for errors in the native
library. For example:
```
02-29 00:50:16.021 10940 0 E Go : panic: runtime error: invalid memory
address or nil pointer dereference
02-29 00:50:16.021 10940 0 E Go : [signal SIGSEGV: segmentation
violatio
I think the surprising part is that the comparison result can change for the
same values because of the assumption that pointers never change. This is
implied by the spec but easy to miss.
"Pointers to distinct zero-size variables may or may not be equal."
"Pointers to distinct zero-size variabl
>> Note that there are two distinct variables involved (a and b).
You’re right. I misread this.
> On Feb 26, 2024, at 1:15 PM, Axel Wagner
> wrote:
>
> On Mon, Feb 26, 2024 at 7:25 PM Brien Colwell <mailto:xcolw...@gmail.com>> wrote:
>> Interesting. That s
c main() {
> if (p == q) {
> p, q = &a, &b
> println(p == q) // false
> }
> }
>
> On Thursday, February 22, 2024 at 6:55:49 PM UTC+8 Brien Colwell wrote:
>> I'm confused by this output. It appears that the interface of two diffe
wrote:Absolutely a bug.On Thursday, February 22, 2024 at 6:55:49 PM UTC+8 Brien Colwell wrote:I'm confused by this output. It appears that the interface of two different pointers to an empty struct are equal. In all other cases, interface equality seems to be the pointer equality. What's
I'm confused by this output. It appears that the interface of two different
pointers to an empty struct are equal. In all other cases, interface
equality seems to be the pointer equality. What's going on in the empty
struct case?
```
package main
import "fmt"
type Foo struct {
}
func (self *
I'm looking for an example or pointer on how to link an Android
GLSurfaceView.Renderer to an implementation in gomobile. Thank you!
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it,