Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

Segmentation fault from http port

 [1/6] from: hallvard::ystad::oops-as::no at: 21-May-2004 21:11


Hello I repeatedly get a segmentation fault when trying to read http://home.tiscali.dk/Andy Warhol2.htm on a Mac OSX. Try to read the same URL from a Win2k, and do not get the fault. The URL behaves a bit funny (quasi-circular redirects). Turn on trace/net, and you'll see (but hurry, the URL mess-up could be fixed any time). Here's from the end of the Win2k trace: Net-log: "HTTP/1.1 302 Found" ** User Error: URL error: http://home.tiscali.dk/Andy Warhol2.htm////////// ///////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////// /////////////////////////////////// ** Near: t: read http://home.tiscali.dk/Andy Warhol2.htm
>>
And here's from the Mac OSX ditto: Net-log: "HTTP/1.1 302 Found" Segmentation fault [www:~] root# Is this a known bug? (How does one find out? Is there a public bug tracker somewhere?) HY

 [2/6] from: rotenca:telvia:it at: 22-May-2004 0:45


Hi,
> I repeatedly get a segmentation fault when trying to read
http://home.tiscali.dk/Andy Warhol2.htm on a Mac OSX. Try to read the same URL from a Win2k, and do not get the fault. The URL behaves a bit funny (quasi-circular redirects). Turn on trace/net, and you'll see (but hurry, the URL mess-up could be fixed any time). Rebol http protocol should put a limit to the number of redirections. Norw it is not set any limit, but at the end Rebol finds parse recursion limits or something other internal limit (memory, number of ports...?). Mozilla, for example, displays a message "limit number of redirection reached". Segmentation faults on *nix are "the default error" :-) --- Ciao Romano

 [3/6] from: blazs:netspeed:au at: 22-May-2004 16:52


Hi Ystad, I tried reading that same page running REBOL/Core 2.5.6.2.4 under Mac OS X 10.3.3...and got the follow result:
>> read http://home.tiscali.dk/Andy Warhol2.htm
connecting to: home.tiscali.dk connecting to: home.tiscali.dk connecting to: home.tiscali.dk .. .. .. connecting to: home.tiscali.dk connecting to: home.tiscali.dk connecting to: home.tiscali.dk ** Internal Error: Stack overflow ** Where: parse-head ** Near: insert tail head-list to-set-word w
>>
But I remained in the REBOL console after getting heaps of 'connecting to: home.tiscali.dk' messages and then it failed with the stack overflow message. I think this is the behaviour you expected? Cheers, Blaz Hallvard Ystad wrote:

 [4/6] from: henrik:webz:dk at: 22-May-2004 14:46


Hallvard Ystad wrote:
> Hello > I repeatedly get a segmentation fault when trying to read http://home.tiscali.dk/Andy Warhol2.htm on a Mac OSX. Try to read the same URL from a Win2k, and do not get the fault. The URL behaves a bit funny (quasi-circular redirects). Turn on trace/net, and you'll see (but hurry, the URL mess-up could be fixed any time).
<<quoted lines omitted: 10>>
> [www:~] root# > Is this a known bug? (How does one find out? Is there a public bug tracker somewhere?)
http://rebol.net/cgi-bin/projects/track.r (it's a webpage) -- Regards, Henrik Mikael Kristensen

 [5/6] from: hallvard:ystad:oops-as:no at: 23-May-2004 19:51


Dixit Henrik Mikael Kristensen (14.46 22.05.2004):
>http://rebol.net/cgi-bin/projects/track.r (it's a webpage)
Thanks! HY

 [6/6] from: hallvard:ystad:oops-as:no at: 23-May-2004 19:54


Dixit Blaz Segavac (08.52 22.05.2004):
>[...] >connecting to: home.tiscali.dk
<<quoted lines omitted: 5>>
>to: home.tiscali.dk' messages and then it failed with the stack overflow >message. I think this is the behaviour you expected?
Indeed. A stack overflow would be natural, a segmentation fault is stupid. And as Romano pointed out, rebol should put a limit to the number of redirections in the http protocol. Thanks guys, HY

Notes
  • Quoted lines have been omitted from some messages.
    View the message alone to see the lines that have been omitted