Discussion:
dillo3.0.2 Irix
Jan Diegelmann
2013-01-08 11:56:00 UTC
Permalink
Hello,

I try to port dillo 3.0.2 to Irix:

fltk 1.3 compiles fine with gcc 4.7. test/demo runs without errors.

dillo compiles also with gcc 4.7, there is only a problem with setenv in
dpi/downloads.cc, that can be resolved using putenv.
dillo
paths: Cannot open file '/usr/people/diegel/.dillo/dillorc'
paths: Using /usr/local/etc/dillo/dillorc
paths: Cannot open file '/usr/people/diegel/.dillo/keysrc'
paths: Using /usr/local/etc/dillo/keysrc
dillo_dns_init: Here we go! (threaded)
Disabling cookies.
** WARNING **: preferred sans-serif font "DejaVu Sans" not found.
** WARNING **: preferred serif font "DejaVu Serif" not found.
** WARNING **: preferred monospace font "DejaVu Sans Mono" not found.
** WARNING **: preferred cursive font "URW Chancery L" not found.
** WARNING **: preferred fantasy font "DejaVu Sans" not found.
Nav_open_url: new url='about:splash'
Nav_open_url: new url='http://www.dillo.org/'
Dns_server [0]: www.dillo.org is 134.102.206.165
Connecting to 134.102.206.165
Nav_open_url: new
url='file:/usr/people/diegel/dillo/www.dillo.org/index.html'

I also tried with --disable-threaded-dns but same result.

Any idea how to debug this problem?

Thank you,

Jan
corvid
2013-01-08 17:14:14 UTC
Permalink
Post by Jan Diegelmann
fltk 1.3 compiles fine with gcc 4.7. test/demo runs without errors.
dillo compiles also with gcc 4.7, there is only a problem with setenv in
dpi/downloads.cc, that can be resolved using putenv.
dillo
paths: Cannot open file '/usr/people/diegel/.dillo/dillorc'
paths: Using /usr/local/etc/dillo/dillorc
paths: Cannot open file '/usr/people/diegel/.dillo/keysrc'
paths: Using /usr/local/etc/dillo/keysrc
dillo_dns_init: Here we go! (threaded)
Disabling cookies.
** WARNING **: preferred sans-serif font "DejaVu Sans" not found.
** WARNING **: preferred serif font "DejaVu Serif" not found.
** WARNING **: preferred monospace font "DejaVu Sans Mono" not found.
** WARNING **: preferred cursive font "URW Chancery L" not found.
** WARNING **: preferred fantasy font "DejaVu Sans" not found.
Nav_open_url: new url='about:splash'
Nav_open_url: new url='http://www.dillo.org/'
Dns_server [0]: www.dillo.org is 134.102.206.165
Connecting to 134.102.206.165
Nav_open_url: new
url='file:/usr/people/diegel/dillo/www.dillo.org/index.html'
I also tried with --disable-threaded-dns but same result.
Any idea how to debug this problem?
Do the dw* programs in dillo's test directory do anything?

Given that you aren't getting any repush messages, I'm guessing that
they'll be reasonably okay and that it's something to do with IO.

I'm not the expert on that code, but in the interest of giving something
to try in the meantime, I might start by setting breakpoints on
IO_fd_write_cb() and IO_fd_read_cb(), or setting VERBOSE in src/chain.c.
Jan Diegelmann
2013-01-08 17:47:11 UTC
Permalink
Thanks for your hints. The browser is able to render html. about:splash
looks normal and sometimes you can open html files with the open file
menu, sometimes you get a 404 error when you try to open a html file,
this behavior seems to be random. I set VERBOSE. This is the output when
I start dillo, try to surf home (don't work) and open a JPEG in the /tmp
directory (works).

src/dillo
paths: Cannot open file '/usr/people/diegel/.dillo/dillorc'
paths: Using /usr/local/etc/dillo/dillorc
paths: Cannot open file '/usr/people/diegel/.dillo/keysrc'
paths: Using /usr/local/etc/dillo/keysrc
dillo_dns_init: Here we go! (not threaded)
Disabling cookies.
** WARNING **: preferred sans-serif font "DejaVu Sans" not found.
** WARNING **: preferred serif font "DejaVu Serif" not found.
** WARNING **: preferred monospace font "DejaVu Sans Mono" not found.
sorcerer:/mnt/build/dillo-3.0.2> src/dillo
paths: Cannot open file '/usr/people/diegel/.dillo/dillorc'
paths: Using /usr/local/etc/dillo/dillorc
paths: Cannot open file '/usr/people/diegel/.dillo/keysrc'
paths: Using /usr/local/etc/dillo/keysrc
dillo_dns_init: Here we go! (not threaded)
Disabling cookies.
** WARNING **: preferred sans-serif font "DejaVu Sans" not found.
** WARNING **: preferred serif font "DejaVu Serif" not found.
** WARNING **: preferred monospace font "DejaVu Sans Mono" not found.
** WARNING **: preferred cursive font "URW Chancery L" not found.
** WARNING **: preferred fantasy font "DejaVu Sans" not found.
Nav_open_url: new url='about:splash'
Nav_open_url: new url='http://www.dillo.org/'
a_Capi_ccc : OpStart [2B] Info=10250a38 Flags=0
a_Dpi_ccc : OpStart [2B] Info=10250a60 Flags=0
a_IO_ccc : OpStart [2B] Info=10250a88 Flags=0
a_Capi_ccc : OpStart [1B] Info=10250ad8 Flags=0
a_Http_ccc : OpStart [1B] Info=10250b00 Flags=0
a_IO_ccc : OpStart [1B] Info=10250b50 Flags=0
Dns_server [0]: www.dillo.org is 134.102.206.165
Connecting to 134.102.206.165
a_IO_ccc : OpSend [1B] Info=10250b50 Flags=0
a_Capi_ccc : OpSend [1F] Info=10250ad8 Flags=0
a_Capi_ccc : OpSend [2B] Info=10250a38 Flags=0
a_Dpi_ccc : OpSend [2B] Info=10250a60 Flags=0
a_IO_ccc : OpSend [2B] Info=10250a88 Flags=0
a_IO_ccc : OpSend [1B] Info=10250b50 Flags=0
Nav_open_url: new url='file:/tmp/orfanelle.jpg'
a_Capi_ccc : OpAbort [1B] Info=10250ad8 Flags=0
a_Http_ccc : OpAbort [1B] Info=10250b00 Flags=0
a_IO_ccc : OpAbort [1B] Info=10250b50 Flags=0
a_Capi_ccc : OpAbort [2B] Info=10250a38 Flags=0
a_Dpi_ccc : OpAbort [2B] Info=10250a60 Flags=0
a_IO_ccc : OpAbort [2B] Info=10250a88 Flags=0
a_Capi_ccc : OpStart [2B] Info=10250bf0 Flags=0
a_Dpi_ccc : OpStart [2B] Info=10250a38 Flags=0
a_IO_ccc : OpStart [2B] Info=10250a60 Flags=0
a_Capi_ccc : OpStart [1B] Info=10250ab0 Flags=0
a_Dpi_ccc : OpStart [1B] Info=10250ad8 Flags=0
** ERROR **: [Dpi_read_comm_keys] No such file or directory
Dpi_blocking_start_dpid: try 1
[dpid]: a_Misc_mksecret: f3f0000d
dpid started
a_IO_ccc : OpStart [1B] Info=10250b00 Flags=0
a_IO_ccc : OpSend [1B] Info=10250b00 Flags=0
a_Capi_ccc : OpSend [1F] Info=10250ab0 Flags=0
a_Capi_ccc : OpSend [2B] Info=10250bf0 Flags=0
a_Dpi_ccc : OpSend [2B] Info=10250a38 Flags=0
a_IO_ccc : OpSend [2B] Info=10250a60 Flags=0
a_Capi_ccc : OpSend [1F] Info=10250ab0 Flags=0
a_Capi_ccc : OpSend [1B] Info=10250ab0 Flags=0
a_Dpi_ccc : OpSend [1B] Info=10250ad8 Flags=0
a_IO_ccc : OpSend [1B] Info=10250b00 Flags=0
[file dpi]: (v.2) accepting connections...
a_IO_ccc : OpSend [2F] Info=10250a60 Flags=0
a_Dpi_ccc : OpSend [2F] Info=10250a38 Flags=0
a_Capi_ccc : OpSend [2F] Info=10250bf0 Flags=0
a_Capi_ccc : OpSend [2F] Info=10250bf0 Flags=0
a_IO_ccc : OpSend [2F] Info=10250a60 Flags=0
a_Dpi_ccc : OpSend [2F] Info=10250a38 Flags=0
a_Capi_ccc : OpSend [2F] Info=10250bf0 Flags=0
a_IO_ccc : OpSend [2F] Info=10250a60 Flags=0
a_Dpi_ccc : OpSend [2F] Info=10250a38 Flags=0
a_Capi_ccc : OpSend [2F] Info=10250bf0 Flags=0
a_IO_ccc : OpEnd [2F] Info=10250a60 Flags=0
a_Dpi_ccc : OpEnd [2F] Info=10250a38 Flags=0
a_Capi_ccc : OpEnd [2F] Info=10250bf0 Flags=0
a_Capi_ccc : OpEnd [1B] Info=10250ab0 Flags=0
a_Dpi_ccc : OpEnd [1B] Info=10250ad8 Flags=0
a_IO_ccc : OpEnd [1B] Info=10250b00 Flags=0

The tests provide some output. The cookies test for esample outputs endless:

[cookies dpi]: Disabling cookies.
[cookies dpi]: (v.1) accepting connections...
[cookies dpi]: cleanup
Post by corvid
Do the dw* programs in dillo's test directory do anything?
Given that you aren't getting any repush messages, I'm guessing that
they'll be reasonably okay and that it's something to do with IO.
I'm not the expert on that code, but in the interest of giving something
to try in the meantime, I might start by setting breakpoints on
IO_fd_write_cb() and IO_fd_read_cb(), or setting VERBOSE in src/chain.c.
_______________________________________________
Dillo-dev mailing list
http://lists.auriga.wearlab.de/cgi-bin/mailman/listinfo/dillo-dev
--
Jan Diegelmann
corvid
2013-01-08 18:45:16 UTC
Permalink
Post by Jan Diegelmann
sometimes you get a 404 error when you try to open a html file,
this behavior seems to be random.
Hmm... I wonder whether this would show anything interesting
(run 'dpidc stop' before reinstalling DPIs)

diff -r 7750054f37e5 dpi/file.c
--- a/dpi/file.c Mon Jan 07 21:39:19 2013 +0100
+++ b/dpi/file.c Tue Jan 08 18:42:22 2013 +0000
@@ -671,6 +671,8 @@
struct stat sb;

if (stat(filename, &sb) != 0) {
+ MSG("Couldn't stat %s: %s\n", filename, strerror(errno));
+
/* stat failed, prepare a file-not-found error. */
res = ENOENT;
} else if (S_ISDIR(sb.st_mode)) {
corvid
2013-01-08 19:57:27 UTC
Permalink
Nothing new with this patch. I found out it is not random, it
file:/tmp/12345678901234567890123.jpg
but
file:/tmp/123456789012345678901234.jpg
returns a 404
32-byte limit?

The first thing that popped into my mind was that sufficiently ancient
systems would have path length limits like 32, but I don't see why that
would apply here...

dpi/file.c's File_normalize_path() has a "Dstr *ds = dStr_sized_new(32)".
You could change the number and see whether anything happens. Although if
Dstr should have problems resizing itself on irix, I'd be very surprised
that dillo could even run at all.

Loading...