Skip to content

Segmentation fault printing eterm #2

@Jorilx

Description

@Jorilx

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions