[sword-devel] Segmentation fault in Perl bindings.
Mark Trompell
mark at foresightlinux.org
Sun Aug 11 23:53:00 MST 2013
With my little Perlprogramm I get a segmentation fault. I don't get
them with a similiar python programm, how would I debug these?
$ ./Perlbindingstest.pl
Im Anfang schuf Gott Himmel und Erde.
Segmentation fault
Perlbindingstest.pl:
#!/usr/bin/perl
use Sword;
my $mgr = new Sword::SWMgr();
my $neu = $mgr->getModule("GerNeUe");
my $key = new Sword::SWKey("Genesis 1:1");
$neu->setKey($key);
print $neu->renderText(),"\n";
Pythonbindingstest.py:
#!/usr/bin/python
import Sword
mgr = Sword.SWMgr()
neu = mgr.getModule("GerNeUe")
key = Sword.SWKey("Genesis 1:1")
neu.setKey(key)
print (neu.renderText())
--
Mark Trompell
Foresight Linux Xfce Edition
Cause your desktop should be freaking cool
(and Xfce)
More information about the sword-devel
mailing list