[sword-devel] vpl2mod doesn't seem to work

Chris Jackson chris at 91courtstreet.net
Thu Dec 22 16:13:41 MST 2005


could you do:

touch /etc/ld.so.nohwcap

and send another strace if that doesn't work?
I don't think that is the problem, but it will clean up the trace a bit.

On Sun, 2005-12-18 at 19:36 -0800, PastorEd B. wrote:
> Hello, fellow Sword users!
> 
> I've been working on converting some resources for use in Sword, but 
> I've had no joy so far.
> 
> I figured I'd start with the easy one first, vpl2mod. The input format 
> just has to be the raw Bible text using the KJV versification, right?
> 
> So... I try to run the program (I'm using Linux), and all I get is a 
> segmentation fault. The apps that use the Sword library are fine 
> (Gnomesword and JSword).
> 
> To help you get a better idea of what's going on, I've run "strace" on 
> the command, and here's what I get:
> 
> execve("/usr/bin/vpl2mod", ["vpl2mod", "mysv.txt"], [/* 27 vars */]) = 0
> uname({sys="Linux", node="XodOSkanotix", ...}) = 0
> brk(0)                                  = 0x804c000
> access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or 
> directory)
> access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or 
> directory)
> open("/etc/ld.so.cache", O_RDONLY)      = 3
> fstat64(3, {st_mode=S_IFREG|0644, st_size=49437, ...}) = 0
> old_mmap(NULL, 49437, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f09000
> close(3)                                = 0
> access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or 
> directory)
> open("/usr/lib/libsword.so.5", O_RDONLY) = 3
> read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0000\261"..., 
> 512) = 512
> fstat64(3, {st_mode=S_IFREG|0644, st_size=904220, ...}) = 0
> old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, 
> -1, 0) = 0xb7f08000
> old_mmap(NULL, 950220, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 
> 3, 0) = 0xb7e20000
> old_mmap(0xb7ef6000, 32768, PROT_READ|PROT_WRITE, 
> MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xd5000) = 0xb7ef6000
> old_mmap(0xb7efe000, 40908, PROT_READ|PROT_WRITE, 
> MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7efe000
> close(3)                                = 0
> access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or 
> directory)
> open("/usr/lib/libcurl.so.3", O_RDONLY) = 3
> read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\200G\0"..., 
> 512) = 512
> fstat64(3, {st_mode=S_IFREG|0644, st_size=196632, ...}) = 0
> old_mmap(NULL, 199964, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 
> 3, 0) = 0xb7def000
> old_mmap(0xb7e1f000, 4096, PROT_READ|PROT_WRITE, 
> MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2f000) = 0xb7e1f000
> close(3)                                = 0
> access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or 
> directory)
> open("/usr/lib/libgssapi_krb5.so.2", O_RDONLY) = 3
> read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0p@\0\000"..., 
> 512) = 512
> fstat64(3, {st_mode=S_IFREG|0644, st_size=86912, ...}) = 0
> old_mmap(NULL, 89840, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 
> 0) = 0xb7dd9000
> old_mmap(0xb7dee000, 4096, PROT_READ|PROT_WRITE, 
> MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x14000) = 0xb7dee000
> close(3)                                = 0
> access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or 
> directory)
> open("/usr/lib/libkrb5.so.3", O_RDONLY) = 3
> read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`\364\0"..., 
> 512) = 512
> fstat64(3, {st_mode=S_IFREG|0644, st_size=430516, ...}) = 0
> old_mmap(NULL, 429404, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 
> 3, 0) = 0xb7d70000
> old_mmap(0xb7dd7000, 8192, PROT_READ|PROT_WRITE, 
> MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x67000) = 0xb7dd7000
> close(3)                                = 0
> access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or 
> directory)
> open("/usr/lib/libk5crypto.so.3", O_RDONLY) = 3
> read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`5\0\000"..., 
> 512) = 512
> fstat64(3, {st_mode=S_IFREG|0644, st_size=142972, ...}) = 0
> old_mmap(NULL, 142560, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 
> 3, 0) = 0xb7d4d000
> old_mmap(0xb7d6f000, 4096, PROT_READ|PROT_WRITE, 
> MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x22000) = 0xb7d6f000
> close(3)                                = 0
> access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or 
> directory)
> open("/lib/libcom_err.so.2", O_RDONLY)  = 3
> read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`\t\0\000"..., 
> 512) = 512
> fstat64(3, {st_mode=S_IFREG|0644, st_size=5824, ...}) = 0
> old_mmap(NULL, 8880, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 
> 0) = 0xb7d4a000
> old_mmap(0xb7d4c000, 4096, PROT_READ|PROT_WRITE, 
> MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1000) = 0xb7d4c000
> close(3)                                = 0
> access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or 
> directory)
> open("/lib/tls/libresolv.so.2", O_RDONLY) = 3
> read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\200$\0"..., 
> 512) = 512
> fstat64(3, {st_mode=S_IFREG|0644, st_size=67364, ...}) = 0
> old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, 
> -1, 0) = 0xb7d49000
> old_mmap(NULL, 75880, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 
> 0) = 0xb7d36000
> old_mmap(0xb7d45000, 8192, PROT_READ|PROT_WRITE, 
> MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xf000) = 0xb7d45000
> old_mmap(0xb7d47000, 6248, PROT_READ|PROT_WRITE, 
> MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7d47000
> close(3)                                = 0
> access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or 
> directory)
> open("/usr/lib/libidn.so.11", O_RDONLY) = 3
> read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\240\36"..., 
> 512) = 512
> fstat64(3, {st_mode=S_IFREG|0644, st_size=197356, ...}) = 0
> old_mmap(NULL, 196320, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 
> 3, 0) = 0xb7d06000
> old_mmap(0xb7d35000, 4096, PROT_READ|PROT_WRITE, 
> MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2f000) = 0xb7d35000
> close(3)                                = 0
> access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or 
> directory)
> open("/usr/lib/i686/cmov/libssl.so.0.9.8", O_RDONLY) = 3
> read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0\256\0"..., 
> 512) = 512
> fstat64(3, {st_mode=S_IFREG|0644, st_size=253760, ...}) = 0
> old_mmap(NULL, 256708, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 
> 3, 0) = 0xb7cc7000
> old_mmap(0xb7d02000, 16384, PROT_READ|PROT_WRITE, 
> MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3a000) = 0xb7d02000
> close(3)                                = 0
> access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or 
> directory)
> open("/usr/lib/i686/cmov/libcrypto.so.0.9.8", O_RDONLY) = 3
> read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\200U\3"..., 
> 512) = 512
> fstat64(3, {st_mode=S_IFREG|0644, st_size=1268056, ...}) = 0
> old_mmap(NULL, 1280420, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 
> 3, 0) = 0xb7b8e000
> old_mmap(0xb7caf000, 86016, PROT_READ|PROT_WRITE, 
> MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x121000) = 0xb7caf000
> old_mmap(0xb7cc4000, 10660, PROT_READ|PROT_WRITE, 
> MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7cc4000
> close(3)                                = 0
> access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or 
> directory)
> open("/lib/tls/libdl.so.2", O_RDONLY)   = 3
> read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\20\f\0"..., 
> 512) = 512
> fstat64(3, {st_mode=S_IFREG|0644, st_size=9592, ...}) = 0
> old_mmap(NULL, 12404, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 
> 0) = 0xb7b8a000
> old_mmap(0xb7b8c000, 8192, PROT_READ|PROT_WRITE, 
> MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1000) = 0xb7b8c000
> close(3)                                = 0
> access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or 
> directory)
> open("/usr/lib/libz.so.1", O_RDONLY)    = 3
> read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\340\26"..., 
> 512) = 512
> fstat64(3, {st_mode=S_IFREG|0644, st_size=78788, ...}) = 0
> old_mmap(NULL, 81744, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 
> 0) = 0xb7b76000
> old_mmap(0xb7b89000, 4096, PROT_READ|PROT_WRITE, 
> MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x12000) = 0xb7b89000
> close(3)                                = 0
> access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or 
> directory)
> open("/usr/lib/libstdc++.so.6", O_RDONLY) = 3
> read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 \310\3"..., 
> 512) = 512
> fstat64(3, {st_mode=S_IFREG|0644, st_size=878228, ...}) = 0
> old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, 
> -1, 0) = 0xb7b75000
> old_mmap(NULL, 900664, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 
> 3, 0) = 0xb7a99000
> old_mmap(0xb7b6b000, 20480, PROT_READ|PROT_WRITE, 
> MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xd2000) = 0xb7b6b000
> old_mmap(0xb7b70000, 20024, PROT_READ|PROT_WRITE, 
> MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7b70000
> close(3)                                = 0
> access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or 
> directory)
> open("/lib/tls/libm.so.6", O_RDONLY)    = 3
> read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`3\0\000"..., 
> 512) = 512
> fstat64(3, {st_mode=S_IFREG|0644, st_size=145168, ...}) = 0
> old_mmap(NULL, 147616, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 
> 3, 0) = 0xb7a74000
> old_mmap(0xb7a97000, 8192, PROT_READ|PROT_WRITE, 
> MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x22000) = 0xb7a97000
> close(3)                                = 0
> access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or 
> directory)
> open("/lib/libgcc_s.so.1", O_RDONLY)    = 3
> read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0\30\0"..., 
> 512) = 512
> fstat64(3, {st_mode=S_IFREG|0644, st_size=38524, ...}) = 0
> old_mmap(NULL, 37576, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 
> 0) = 0xb7a6a000
> old_mmap(0xb7a73000, 4096, PROT_READ|PROT_WRITE, 
> MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x9000) = 0xb7a73000
> close(3)                                = 0
> access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or 
> directory)
> open("/lib/tls/libc.so.6", O_RDONLY)    = 3
> read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\320O\1"..., 
> 512) = 512
> fstat64(3, {st_mode=S_IFREG|0755, st_size=1266800, ...}) = 0
> old_mmap(NULL, 1272764, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 
> 3, 0) = 0xb7933000
> old_mmap(0xb7a60000, 32768, PROT_READ|PROT_WRITE, 
> MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x12d000) = 0xb7a60000
> old_mmap(0xb7a68000, 7100, PROT_READ|PROT_WRITE, 
> MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7a68000
> close(3)                                = 0
> access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or 
> directory)
> open("/usr/lib/libkrb5support.so.0", O_RDONLY) = 3
> read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 \n\0\000"..., 
> 512) = 512
> fstat64(3, {st_mode=S_IFREG|0644, st_size=9932, ...}) = 0
> old_mmap(NULL, 8832, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 
> 0) = 0xb7930000
> old_mmap(0xb7932000, 4096, PROT_READ|PROT_WRITE, 
> MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0xb7932000
> close(3)                                = 0
> old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, 
> -1, 0) = 0xb792f000
> old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, 
> -1, 0) = 0xb792e000
> mprotect(0xb7a60000, 20480, PROT_READ)  = 0
> set_thread_area({entry_number:-1 -> 6, base_addr:0xb792e6c0, 
> limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, 
> limit_in_pages:1, seg_not_present:0, useable:1}) = 0
> munmap(0xb7f09000, 49437)               = 0
> brk(0)                                  = 0x804c000
> brk(0x806d000)                          = 0x806d000
> open("mysv.txt", O_RDONLY)              = 3
> --- SIGSEGV (Segmentation fault) @ 0 (0) ---
> +++ killed by SIGSEGV +++
> 
> I have *no* idea why this is segfaulting... I'm positive the VPL file is 
> good.
> 
> Any suggestions as to how I can turn my VPL into a module for use in 
> Sword? You know, a good howto for these tools would be really nice as 
> well, but I can't find anything on Google.
> 
> Thanks for your help, all!
> GBYLBT, PastorEd B.
> _______________________________________________
> sword-devel mailing list: sword-devel at crosswire.org
> http://www.crosswire.org/mailman/listinfo/sword-devel
> Instructions to unsubscribe/change your settings at above page
-- 
Never ascribe to malice, that which can be explained by incompetence.
- Napoleon



More information about the sword-devel mailing list