Ticket #40 (closed defect: invalid)

Opened 15 years ago

Last modified 3 years ago

savannah: MC doesn't open if network gateway inaccessible.

Reported by: hacinn Owned by:
Priority: major Milestone:
Component: mc-vfs Version: master
Keywords: Cc:
Blocked By: #1 Blocking:
Branch state: no branch Votes for changeset:

Description (last modified by ossi) (diff)

Original: http://savannah.gnu.org/bugs/?16029

Submitted by:hacinn <hacinn>Submitted on:Tue 07 Mar 2006 08:55:38 PM UTC
Category:NoneSeverity:3 - Normal
Status:NonePrivacy:Public
Assigned to:NoneOpen/Closed:Open
Release:4.6.0-pre3Operating System:GNU/Linux

Original submission:

I am using Linux Debian 3.1 and i have set my interface file with:

iface eth0 inet static
address 192.168.1.10
netmask 255.255.255.0
gateway 192.168.1.1

If I unplug the network cable and try to open MC, MC doesn't open. 
If I comment field gateway in interfaces file and keep the cable 
network unpluged, then MC open normally.
If I plug the cable and uncomment field gateway, the MC open 
normally too.

Comment 1 by Oswald Buddenhagen <ossi> at Tue 07 Mar 2006 09:31:47 PM UTC:

i think that's some call to gethostbyname(). if the route is known 
to be broken, it fails immediately. if the cable is pulled, it has 
to time out.

Comment 2 by Pavel Tsekov <ptsekov> at Thu 09 Mar 2006 02:16:01 PM UTC:

I couldn't reproduce on FC3 with latest cvs version.

Would you mind providing a strace of MC hanging ? You could do so 
by issuing the following command:

strace -o /tmp/mc.strace /usr/bin/mc

Replace /usr/bin/mc with the full path to the mc binary.

Comment 3 by Pavel Tsekov <ptsekov> at Thu 23 Mar 2006 12:46:35 PM UTC:

Ping ?

Comment 4 by Pinter Sandor <pinter_sandor> at Sun 07 Jan 2007 10:59:30 AM UTC:

The mc hangs on startup at line 284 in the attached file from me. 
Please look more info about this at the comment of that file.
Maybe the two situation are from the same problem.
Actually I don't know what changed in my system, because I see this 
problem 2 days ago only. I think I just updated the system with 
apt-get.

Sandor

Comment 5 by Pinter Sandor <pinter_sandor> at Sun 07 Jan 2007 11:01:01 AM UTC:

It seems it tries to connect to the router at port 53 several 
times, which makes the hang. After that when the mc is stared, 
everything is ok.

Sandor

Comment 6 by Pavel Tsekov <ptsekov> at Sun 07 Jan 2007 11:14:57 AM UTC:

The problem is due to the outdated samba library included with MC.
You can find out more here:

http://mail.gnome.org/archives/mc/2006-September/msg00047.html

We actually don't need info any more since we know what's the cause 
of the hang - changing the status to None.

Comment 7 by Pinter Sandor <pinter_sandor> at Sun 07 Jan 2007 11:31:35 AM UTC:

ohhh.... commenting out the eth0 interface from the smb.conf helps... thank you very much!

Sandor

Comment 8 by Leonard den Ottolander <leonardjo> at Sun 07 Jan 2007 01:48:56 PM UTC:

Should we close this as a duplicate of bug 5142 then?

Attachments

mc.strace (42.4 KB) - added by slavazanko 15 years ago.
added by pinter_sandor

Change History

Changed 15 years ago by slavazanko

added by pinter_sandor

comment:1 Changed 15 years ago by slavazanko

Related ticket #1

comment:2 Changed 15 years ago by slavazanko

Related ticket #88

comment:3 Changed 15 years ago by metux

Maybe this goes a bit too far fow now, but I think the smb client stuff should be moved out to a separate process, mounted via 9P, and mc itself should handle not block on vfs hangs (multithreaded ?).

comment:4 Changed 15 years ago by winnie

  • Blocked By 1 added

comment:5 Changed 15 years ago by styx

  • Milestone set to 4.7

comment:6 Changed 15 years ago by styx

  • Milestone changed from 4.7 to future releases

comment:7 Changed 13 years ago by andrew_b

  • Component changed from mc-core to mc-vfs
  • severity set to no branch

comment:8 Changed 11 years ago by andrew_b

Ticket #3082 has been marked as a duplicate of this ticket.

comment:9 Changed 10 years ago by ossi

  • Description modified (diff)
  • Branch state set to no branch
  • Reporter changed from slavazanko to hacinn

comment:10 Changed 4 years ago by andrew_b

Ticket #4044 has been marked as a duplicate of this ticket.

comment:11 Changed 3 years ago by andrew_b

  • Status changed from new to closed
  • Version set to master
  • Resolution set to invalid
  • Milestone Future Releases deleted
Note: See TracTickets for help on using tickets.