bugGNU Octave - Bugs: bug #49219, hang in imread for non-exiting...

 
 

bug #49219: hang in imread for non-exiting filename with spaces

Submitted by:  None
Submitted on:  Wed 28 Sep 2016 09:04:20 PM UTC  
 
Category: Octave FunctionSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: Works For MeAssigned to: None
Originator Name: Originator Email: -unavailable-
Open/Closed: ClosedRelease: dev
Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

(Jump to the original submission Jump to the original submission)

Thu 29 Sep 2016 11:01:09 PM UTC, comment #12:

I made the change to filenames without spaces in this cset (http://hg.savannah.gnu.org/hgweb/octave/rev/1751d490dc2f). We want to be testing Octave, not accidentally testing the DNS configuration of the host machine.

Rik <rik5>
Project Administrator
Thu 29 Sep 2016 09:19:40 PM UTC, comment #11:

I agree this is a DNS or proxy issue.
curl of a regular URL does work on my system.

In the mean time this patch helps to run make check to completion.

Anonymous
Thu 29 Sep 2016 09:07:45 PM UTC, comment #10:

I just filed bug #49228 about whether non-existent files should be treated as URLs always, or only if they actually look like fully-qualified URLs.

Mike Miller <mtmiller>
Project Administrator
Thu 29 Sep 2016 08:33:04 PM UTC, comment #9:

Yeah, I've spun up an old Ubuntu 12.04 with curl 7.22 and I don't get a hang with "curl 'one two.txt'", it doesn't seem to be something that just used to work and was fixed either.

Btw, for local files instead of host names, use

Actually now that I think of it, since it's trying to resolve the name as a host, it might be a problem in your resolver or your local DNS configuration.

Anyway, this is the way that imread is meant to work, if the file doesn't exist on the local filesystem it tries to load it as a URL. If that is taking forever to resolve with your configuration, that's probably a DNS or network-related problem.

Mike Miller <mtmiller>
Project Administrator
Thu 29 Sep 2016 08:25:35 PM UTC, comment #8:

I tried on the command line and I get

There must be something odd with your local machine's configuration.

In any case, this doesn't appear to be an Octave problem so I'm going to close the report.

Rik <rik5>
Project Administrator
Thu 29 Sep 2016 07:32:59 PM UTC, comment #7:

so I upgraded my curl to 7.50.3.
To no avail. Still a hang on curl 'xx 1.jpg', but not on xx1.jpg

Anonymous
Thu 29 Sep 2016 07:22:56 PM UTC, comment #6:

will hang in [a,b,c] = urlwrite ('xx 1.jpg', 'urltmp.txt')

the command line version will hang too with a space:
curl 'xx 1.jpg'

curl xx1.jpg returns right away.
So this seems to be a curl issue.

Anonymous
Thu 29 Sep 2016 06:48:43 PM UTC, comment #5:

My version of the curl library is certainly newer (7.43.0).

Can you try the following urlwrite code at an Octave prompt and see what happens?

Rik <rik5>
Project Administrator
Thu 29 Sep 2016 06:03:14 PM UTC, comment #4:

./run-octave -x show it hangs in urlwrite (called in imageIO line 64)

curl version is 7.29.0

Anonymous
Thu 29 Sep 2016 05:12:49 PM UTC, comment #3:

Also not able to reproduce here (with GM 1.3.25).

If this is reproducible for you, can you provide a gdb backtrace of what Octave is doing when it looks like it's hanging?

Mike Miller <mtmiller>
Project Administrator
Thu 29 Sep 2016 06:15:16 AM UTC, comment #2:

Works from me also with 4.2.0-rc2 on Win-7

Note that the second time takes 5.5 more.
If I switch the names, the time takes 5.5 more.

Avinoam Kalma <avinoam>
Project Member
Thu 29 Sep 2016 02:49:28 AM UTC, comment #1:

This works for me.

gcc 5.2.1, GraphicsMagick 1.3.21, Ubuntu 15.10

Rik <rik5>
Project Administrator
Wed 28 Sep 2016 09:04:20 PM UTC, original submission:

on my system make check hangs on scripts/image/imfinfo test.
This can be reduced to this script

which produces

and hangs (also on 4.0.3) in the imread 'xx 1.jpg'.
gcc 4.9.3, GraphicMagick 1.3.17, RHEL 6.8

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by mtmiller (Posted a comment)
  • -unavailable- added by avinoam (Posted a comment)
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by None (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 29 Sep 2016 08:25:35 PM UTCrik5Open/ClosedOpen=>Closed
    Thu 29 Sep 2016 02:49:28 AM UTCrik5StatusNone=>Works For Me

    Back to the top


    Powered by Savane 3.1-cleanup1