Skip to content
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

Go 1.6: runtime error: cgo argument has Go pointer to Go pointer #92

Open
pebbe opened this issue Mar 2, 2016 · 6 comments
Open

Go 1.6: runtime error: cgo argument has Go pointer to Go pointer #92

pebbe opened this issue Mar 2, 2016 · 6 comments

Comments

@pebbe
Copy link

pebbe commented Mar 2, 2016

I get a panic with Go 1.6. "runtime error: cgo argument has Go pointer to Go pointer" It was working fine with older versions of Go.

@erjoalgo
Copy link

I can repro this issue on go version go1.6 linux/amd64 but not on 1.4.2

@guusvw
Copy link

guusvw commented Mar 16, 2016

@afeld
Copy link
Contributor

afeld commented May 27, 2016

Per #93 (comment), switching to import "github.com/jbowtie/gokogiri" worked for me.

@chalithaw
Copy link

yes using
"github.com/jbowtie/gokogiri"
"github.com/jbowtie/gokogiri/xpath"

solved the problem on Go 1.7 Linux/Amd64

@manawasp
Copy link

manawasp commented Nov 5, 2016

I switched the repo from moovweb to jbowtie and working fine now, thanks

@mrcook
Copy link

mrcook commented Feb 9, 2019

I see there was a commit in 2018 yet this issue is still not fixed - when I run the example in the readme (on the latest version of Go) there is still a cgo argument has Go pointer to Go pointer error. I can't even run println(doc.String()).

It seems like Gokogiri is currently unusable.

Is the maintainer going to fix this?
If I make a PR with a fix, will it be merged?

If not, is the jbowtie fork our only option?
If not, can you recommend a more maintained alternative (using Go) for parsing, and more importantly, updating complex XML with XPath?

Thanks, Michael.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants