Skip to content

Segmentation fault printing eterm #2

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

Open
Jorilx opened this issue Aug 15, 2012 · 0 comments
Open

Segmentation fault printing eterm #2

Jorilx opened this issue Aug 15, 2012 · 0 comments

Comments

@Jorilx
Copy link

Jorilx commented Aug 15, 2012

I'm trying out pyerl to do a simple RPC call (mnesia:info() ), but when I try to print the result, I get a segfault... Am I doing something wrong?
Here's my code:

import pyerl

host = "myhostname"
name = "ejabberd"
node = name + "@" + host
cookie = "RCLLDOAYEPKKJDKAPGVB"

pyerl.connect_xinit(host, name, node, "127.0.0.1", cookie, 1)
sock = pyerl.xconnect("127.0.0.1", name)
args = pyerl.mk_empty_list()
eterm = pyerl.rpc(sock, "mnesia", "info", args)
pyerl.close_connection(sock)
print eterm

I'm using Python 2.7.3 on Ubuntu 12.04

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

1 participant