Skip to content

why crash no address offset #28951

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
zhaoya881010 opened this issue Nov 26, 2018 · 1 comment
Closed

why crash no address offset #28951

zhaoya881010 opened this issue Nov 26, 2018 · 1 comment

Comments

@zhaoya881010
Copy link

golang call c by cgo, i found crash in dll. i used map and cod file but i not found address offset.

Exception 0xc0000005 0x0 0x52544544 0x71d21053
PC=0x71d21053

runtime: unknown pc 0x71d21053
stack: frame={sp:0x36df9b0, fp:0x0} stack=[0x35e1f34,0x36dff34)
036df930: 036df950 71680269 05d40000 00000000
036df940: 00000030 036dfa90 05c576d8 00000000
036df950: 036df96c 716802d1 00000030 00000030
036df960: 036dfa90 05c576d8 00000000 036df9a8
036df970: 71d26247 05ca19a0 b679168b 036dfa90
036df980: 05c576bc 00000000 74f914a 00000003
036df990: 00000000 05c576d8 036df9ac 036df9c4
036df9a0: 71d2b018 00000000 036df9d0 71d2894b
036df9b0: <00000000 413d454d 036df9d8 71d213fa
036df9c0: 52544544 05ca1968 00000020 05c576f8
036df9d0: 05d41710 05c576bc 036dfa10 71d2909e
036df9e0: 00000000 413d454d 05ca1968 00000020
036df9f0: 0555c878 056416a8 00000000 05c576f8
036dfa00: 0000002f 00000020 71d2f618 71d2b401
036dfa10: 036dfb84 71d2971c 036dfa40 05c576b0
036dfa20: 05d41710 b67914a7 05c70e08 0555c878
runtime: unknown pc 0x71d21053
stack: frame={sp:0x36df9b0, fp:0x0} stack=[0x35e1f34,0x36dff34)
036df930: 036df950 71680269 05d40000 00000000
036df940: 00000030 036dfa90 05c576d8 00000000
036df950: 036df96c 716802d1 00000030 00000030
036df960: 036dfa90 05c576d8 00000000 036df9a8
036df970: 71d26247 05ca19a0 b679168b 036dfa90
036df980: 05c576bc 00000000 74f914a 00000003
036df990: 00000000 05c576d8 036df9ac 036df9c4
036df9a0: 71d2b018 00000000 036df9d0 71d2894b
036df9b0: <00000000 413d454d 036df9d8 71d213fa
036df9c0: 52544544 05ca1968 00000020 05c576f8
036df9d0: 05d41710 05c576bc 036dfa10 71d2909e
036df9e0: 00000000 413d454d 05ca1968 00000020
036df9f0: 0555c878 056416a8 00000000 05c576f8
036dfa00: 0000002f 00000020 71d2f618 71d2b401
036dfa10: 036dfb84 71d2971c 036dfa40 05c576b0
036dfa20: 05d41710 b67914a7 05c70e08 0555c878

goroutine 20 [syscall]:
GoProxy/monicore._Cfunc_ReqProc(0x71d2a080, 0xfb6fe8, 0x5639f70, 0x555c878, 0x0)
_cgo_gotypes.go:82 +0x3f
GoProxy/monicore.ReqProc.func1(0x71d2a080, 0xfb6fe8, 0x5639f70, 0x555c878, 0x56aef48)
D:/svn_code/src/GoProxy/monicore/plugin.go:78 +0xc7
GoProxy/monicore.ReqProc(0x2e62bb80, 0xfb6fe8, 0x5639f70, 0x555c878, 0x668880)
D:/svn_code/src/GoProxy/monicore/plugin.go:78 +0x3c
GoProxy/monicore.(*Processer).run(0x2e5d0c40)
D:/svn_code/src/GoProxy/monicore/processer.go:153 +0x40e
created by GoProxy/monicore.(*Processer).OnStart
D:/svn_code/src/GoProxy/monicore/processer.go:58 +0x33

the bad dll, map preferred load address is 10000000. crash func Rva+Base :100053c0.
PC=0x71d21053 how to count?

@andybons
Copy link
Member

Thanks for the issue.

This appears to be a question rather than a Go bug. We do not use the issue tracker for general discussions or questions like these. The GitHub issue tracker is only used for tracking bugs and proposals going through the Proposal Process.

For further questions, please have a look at Questions wiki page; it has a list of good places for asking questions.

Closing since this is not a bug.

P.S. While we officially have an accepted proposal to accept questions, we don't have the details ironed out, yet.

@golang golang locked and limited conversation to collaborators Nov 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants