[sword-devel] Segmentation fault in Perl bindings.

Mark Trompell mark at foresightlinux.org
Mon Aug 12 22:36:54 MST 2013


This is all I can get out of debugging...
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff646ee73 in sword_SWKey___str__ (my_perl=<value optimized
out>, cv=<value optimized out>)
    at Sword.cxx:2360
2360	                        return const_cast<char *>(self->getText());

Probably not helpful at all...
btw it's r2955.

On Mon, Aug 12, 2013 at 8:53 AM, Mark Trompell <mark at foresightlinux.org> wrote:
> 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)



-- 
Mark Trompell

Foresight Linux Xfce Edition
Cause your desktop should be freaking cool
(and Xfce)



More information about the sword-devel mailing list