Package: html2text
Version: 1.3.2a-1
Severity: important
Hi,
Your when building the armagetron package on amd64, I get the
following error:
dh_installchangelogs -parmagetron-common doc/changelog.html
dh_installchangelogs: command returned error code 11
make: *** [binary-indep] Error 1
This seems to be caused by html2text segfaulting. A strace
showed this:
[pid 27814] execve("/usr/bin/html2text", ["html2text", "-nobs",
"-o", "debian/tmp/usr/share/doc/armagetron-common/changelog",
"doc/changelog.html"], [/* 13 vars */]) = 0
[...]
[pid 27814] read(4, "<", 1) = 1
[pid 27814] read(4, "/", 1) = 1
[pid 27814] read(4, "h", 1) = 1
[pid 27814] read(4, "t", 1) = 1
[pid 27814] read(4, "m", 1) = 1
[pid 27814] read(4, "l", 1) = 1
[pid 27814] read(4, ">", 1) = 1
[pid 27814] read(4, "\n", 1) = 1
[pid 27814] read(4, "", 1) = 0
[pid 27814] read(4, "", 1) = 0
[pid 27814] fstat(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
[pid 27814] mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0x2a9556b000
[pid 27814] write(3, "\n", 1) = 1
[pid 27814] write(3, "\n", 1) = 1
[pid 27814] write(3, "\n", 1) = 1
[pid 27814] write(3, " First_Start Installation Network_Play Configuration
FAQ Redistribution\n", 75) = 75
[pid 27814] write(3, " ****** Changelog ******\n",
52) = 52
[pid 27814] --- SIGSEGV (Segmentation fault) @ 0 (0) ---
With gdb I see this:
Program received signal SIGSEGV, Segmentation fault.
0x0000002a95b58b80 in strlen () from /lib/libc.so.6
(gdb) bt
#0 0x0000002a95b58b80 in strlen () from /lib/libc.so.6
#1 0x0000000000407061 in get_attribute (as=0x2a00000000, name=0x0, dflt=0,
s1=0x423f66 "LEFT", v1=0) at basic_string.h:725
#2 0x0000000000413c47 in Paragraph::format (this=0x534380, w=79,
halign=5442128) at auto_ptr.h:79
#3 0x0000000000416c9c in format (elements=0x530a50, indent_left=0, w=79,
halign=0, [EMAIL PROTECTED]) at auto_ptr.h:169
#4 0x0000000000411bf4 in Body::format (this=0x530a30, indent_left=0, w=79,
halign=0, [EMAIL PROTECTED]) at auto_ptr.h:79
#5 0x0000000000411a11 in Document::format (this=0x5309f0, indent_left=0,
w=79, halign=0, [EMAIL PROTECTED]) at format.C:156
#6 0x000000000040c8dd in HTMLParser::yyparse (this=0x7fbffff8e0)
at HTMLParser.y:275
#7 0x000000000040446e in main (argc=-1073743536, argv=0x7fbffff8e0)
at html2text.C:378
I have no idea how to debug this further.
A minimal version of the file that causes it:
<html>
<body>
<h1>xx</h1>
<p align=justify>yy</p>
</body>
</html>
The "align=justify" seems to be causing it.
Kurt
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]