Opened 8 years ago
Closed 8 years ago
#9706 closed enhancement (fixed)
libxml2-2.9.5
Reported by: | Owned by: | Pierre Labastie | |
---|---|---|---|
Priority: | normal | Milestone: | 8.2 |
Component: | BOOK | Version: | SVN |
Severity: | normal | Keywords: | |
Cc: |
Description ¶
New point version.
Change History (7)
comment:1 by , 8 years ago
comment:2 by , 8 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:3 by , 8 years ago
On one machine, the tests hang, on another, they don't... On the machine where the tests hang, it is because it waits for a external web site to answer. On the machine where the tests do not hang, no external web access is attempted...
follow-up: 5 comment:4 by , 8 years ago
I did not see any web site queries. I have:
Total 3146 tests, no errors ......... Total 9 tests, no errors Total: 1171 functions, 280918 tests, 0 errors Total 2273 tests, 15 errors, 0 leaks 15 errors were expected undefined symbol: _PyVerify_fd Note that I had removed the sed.
For the download, I already had http://www.w3.org/XML/Test/xmlts20130923.tar.gz and ran:
TS=20130923 tar -xf ../xmlts${TS}.tar.gz && make check
Perhaps that's the download you refer to.
comment:5 by , 8 years ago
Replying to bdubbs@…:
I did not see any web site queries. I have:
Total 3146 tests, no errors ......... Total 9 tests, no errors
This is where it stops on the machine where the tests hang.
For the download, I already had http://www.w3.org/XML/Test/xmlts20130923.tar.gz
Same here.
Perhaps that's the download you refer to.
No. I use strace, and it shows:
socket(AF_INET, SOCK_STREAM, IPPROTO_TCP) = 3 fcntl(3, F_GETFL) = 0x2 (flags O_RDWR) fcntl(3, F_SETFL, O_RDWR|O_NONBLOCK) = 0 connect(3, {sa_family=AF_INET, sin_port=htons(80), sin_addr=inet_addr("128.30.52.100")}, 16) = -1 EINPROGRESS (Operation now in progress) poll([{fd=3, events=POLLOUT}], 1, 60000) = 1 ([{fd=3, revents=POLLOUT}]) getsockopt(3, SOL_SOCKET, SO_ERROR, [0], [4]) = 0 sendto(3, "GET /TR/xhtml11/DTD/xhtml11.dtd "..., 85, 0, NULL, 0) = 85 recvfrom(3, 0x159fd60, 4096, 0, NULL, NULL) = -1 EAGAIN (Resource temporarily un available) poll([{fd=3, events=POLLIN}], 1, 60000) = 0 (Timeout) recvfrom(3, 0x107a2a0, 4096, 0, NULL, NULL) = -1 EAGAIN (Resource temporarily unavailable) poll([{fd=3, events=POLLIN}], 1, 60000^C
I stop it since it loops doing the same thing every minute. On the machine where it works, I have no occurrence of xhtml11 in the strace log.
comment:6 by , 8 years ago
OK, I think I understand what is going on. On the machine where the tests hang, http://localhost serves a copy of www.linuxfromscratch.org website. I use it to test the html before I make jhalfs releases.
Now testapi.c tries to access http://localhost/ with various flags, and one is DTD_VALID. Guess what, the first lines read when you access the linuxfromscratch.org website are:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
So that the parser tries to access the DTD on the web. Why it fails is not clear to me, but at least I understand why no other machine sees this. I'll add a note that local httpd should be shut down during tests.
Changes at http://xmlsoft.org/news.html the changes seem to be mostly bug fixes.
The sed in the book is not needed. Without it, a couple of warnings are displayed, but the python module is built and installed.