From groknok at gmail.com Mon Mar 4 22:09:44 2013 From: groknok at gmail.com (Piscium) Date: Mon, 4 Mar 2013 22:09:44 +0000 Subject: Midnight Commander slow to start Message-ID: Midnight Commander is slow to start for me on two PCs (one very new and the other 6 years old). I am running Fedora 18 64 bits. I already filed an issue in the Red Hat bugzilla. I was thinking that somebody in this forum might spot easily what is wrong? I am pasting below my Fedora bug report. If somebody knows a fix I could give it a try on my PC by patching the code and rebuilding the RPM. Thanks in advance. ================= $ mc -V GNU Midnight Commander 4.8.7 Built with GLib 2.34.2 Using the S-Lang library with terminfo database With builtin Editor With subshell support as default With support for background operations With mouse support on xterm and Linux console With internationalization support With multiple codepages support Virtual File Systems: cpiofs, tarfs, sfs, extfs, ftpfs, sftpfs, fish, smbfs Data types: char: 8; int: 32; long: 64; void *: 64; size_t: 64; off_t: 64; ===================================================== Description of problem: Midnight Commander is taking 30 seconds to start on my new PC running F18. Version-Release number of selected component (if applicable): 4.8.7 How reproducible: Always (on my PC). Steps to Reproduce: 1. Start mc from a terminal, either as root or normal user. 2. 3. Actual results: It takes 30 seconds for Midnight Commander panes to appear. Expected results: Should take 0.1 second! Additional info: I installed some debuginfos and called mc with gdb. I stopped it running with Ctrl-C after a couple of seconds, and got the call trace below. I did this twice and got seemingly the same trace (I have not checked all the details). The goal of the exercise was to find where mc was hanging. Unfortunately I do not have the time to go through the whole trace trying to find the actual cause of the problem, but it is probably obvious for someone that know the code base. The trace shows that the host name is "tornado". That is correct, I set it myself to that by modifying /etc/hostname. The trace also shows that the domain name is "home". I have no idea where that came from. I don't remember setting it, and if I run the domainname command I get (none). ==================== GNU gdb (GDB) Fedora (7.5.1-32.fc18) Copyright (C) 2012 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-redhat-linux-gnu". For bug reporting instructions, please see: ... Reading symbols from /usr/bin/mc...Reading symbols from /usr/lib/debug/usr/bin/mc.debug...done. done. (gdb) run Starting program: /usr/bin/mc [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1". ^C Program received signal SIGINT, Interrupt. 0x00000033682e9970 in __poll_nocancel () at ../sysdeps/unix/syscall-template.S:81 81 T_PSEUDO (SYSCALL_SYMBOL, SYSCALL_NAME, SYSCALL_NARGS) (gdb) bt #0 0x00000033682e9970 in __poll_nocancel () at ../sysdeps/unix/syscall-template.S:81 #1 0x000000336a60ac05 in send_dg (resplen2=0x0, anssizp2=0x0, ansp2=0x0, anscp=0x7fffffffd5c0, gotsomewhere=, v_circuit=, ns=0, terrno=0x7fffffffc540, anssizp= 0x7fffffffc690, ansp=0x7fffffffc538, buflen2=0, buf2=0x0, buflen=30, buf=0x7fffffffc6c0 "\362\242\001", statp= 0x33685b5b00 <_res at GLIBC_2.2.5>) at res_send.c:1059 #2 __libc_res_nsend (statp=statp at entry=0x33685b5b00 <_res at GLIBC_2.2.5>, buf=buf at entry=0x7fffffffc6c0 "\362\242\001", buflen=30, buf2=buf2 at entry=0x0, buflen2=0, ans=ans at entry=0x7fffffffd190 , anssiz=anssiz at entry=1024, ansp=ansp at entry=0x7fffffffd5c0, ansp2=ansp2 at entry=0x0, nansp2=nansp2 at entry=0x0, resplen2=resplen2 at entry=0x0) at res_send.c:556 #3 0x000000336a608be0 in __GI___libc_res_nquery (statp=statp at entry=0x33685b5b00 <_res at GLIBC_2.2.5>, name=name at entry= 0x7fffffffcd10 "tornado.home", class=class at entry=1, type=type at entry=1, answer=answer at entry= 0x7fffffffd190 , anslen=anslen at entry=1024, answerp=answerp at entry= 0x7fffffffd5c0, answerp2=answerp2 at entry=0x0, nanswerp2=nanswerp2 at entry=0x0, resplen2=resplen2 at entry=0x0) at res_query.c:226 #4 0x000000336a609600 in __libc_res_nquerydomain (resplen2=0x0, nanswerp2=0x0, answerp2=0x0, answerp=0x7fffffffd5c0, anslen=1024, answer=0x7fffffffd190 , type=1, class=1, domain= 0x33685b5b80 <_res at GLIBC_2.2.5+128> "home", name=0x92c770 "tornado", statp=0x33685b5b00 <_res at GLIBC_2.2.5>) at res_query.c:582 #5 __GI___libc_res_nsearch (statp=0x33685b5b00 <_res at GLIBC_2.2.5>, name=name at entry=0x92c770 "tornado", class=class at entry=1, type=type at entry=1, answer=answer at entry=0x7fffffffd190 , anslen=anslen at entry=1024, answerp=0x7fffffffd5c0, answerp2=answerp2 at entry=0x0, nanswerp2=nanswerp2 at entry=0x0, resplen2=resplen2 at entry=0x0) at res_query.c:416 #6 0x00007ffff179d692 in __GI__nss_dns_gethostbyname3_r (name=name at entry=0x92c770 "tornado", af=af at entry=2, result=result at entry=0x33685b5ea0 , buffer=buffer at entry=0x92d220 "\177", buflen=buflen at entry=1024, errnop=errnop at entry=0x7ffff7fc8780, h_errnop=h_errnop at entry=0x7fffffffdb50, ttlp=ttlp at entry=0x0, canonp=canonp at entry=0x0) at nss_dns/dns-host.c:192 #7 0x00007ffff179d964 in _nss_dns_gethostbyname_r (name=0x92c770 "tornado", result=0x33685b5ea0 , buffer=0x92d220 "\177", buflen=1024, errnop=0x7ffff7fc8780, h_errnop=0x7fffffffdb50) at nss_dns/dns-host.c:268 #8 0x000000336830bab5 in __gethostbyname_r (name=name at entry=0x92c770 "tornado", resbuf=resbuf at entry= 0x33685b5ea0 , buffer=0x92d220 "\177", buflen=1024, result=result at entry=0x7fffffffdb60, h_errnop=h_errnop at entry=0x7fffffffdb50) at ../nss/getXXbyYY_r.c:255 #9 0x000000336830b2dd in gethostbyname (name=name at entry=0x92c770 "tornado") at ../nss/getXXbyYY.c:116 #10 0x00000000004b5695 in sys_gethostbyname (name=name at entry=0x92c770 "tornado") at lib/system.c:303 #11 0x00000000004b3c75 in Get_Hostbyname (name=) at lib/util.c:2479 #12 0x00000000004b4009 in get_myname (my_name=0x73fe60 "", ip=ip at entry=0x0) at lib/util.c:1845 #13 0x000000000046b20f in smbfs_init (me=0x738040) at smbfs.c:389 #14 0x000000000046060f in vfs_register_class (vfs=vfs at entry=0x738040) at vfs.c:297 #15 0x000000000046e640 in init_smbfs () at smbfs.c:2263 #16 0x0000000000468828 in vfs_plugins_init () at plugins_init.c:126 #17 0x000000000040fee0 in main (argc=1, argv=0x7fffffffe1c8) at main.c:296 From mrmazda at earthlink.net Mon Mar 4 22:29:36 2013 From: mrmazda at earthlink.net (Felix Miata) Date: Mon, 04 Mar 2013 17:29:36 -0500 Subject: Midnight Commander slow to start In-Reply-To: References: Message-ID: <51352050.402@earthlink.net> On 2013-03-04 22:09 (GMT) Piscium composed: > Midnight Commander is slow to start for me on two PCs (one very new > and the other 6 years old). I am running Fedora 18 64 bits. I already > filed an issue in the Red Hat bugzilla. I searched RedHat's Bugzilla for any such bug and failed, even searching only for groknok at gmail.com . > I was thinking that somebody > in this forum might spot easily what is wrong? I am pasting below my > Fedora bug report. What you should have pasted was a URL to the report you filed. > If somebody knows a fix I could give it a try on my PC by patching the > code and rebuilding the RPM. 4.8.7 starts instantly for me on a 6 year old 64 bit PC running Fedora 18. -- "The wise are known for their understanding, and pleasant words are persuasive." Proverbs 16:21 (New Living Translation) Team OS/2 ** Reg. Linux User #211409 ** a11y rocks! Felix Miata *** http://fm.no-ip.com/ From groknok at gmail.com Mon Mar 4 22:47:51 2013 From: groknok at gmail.com (Piscium) Date: Mon, 4 Mar 2013 22:47:51 +0000 Subject: Midnight Commander slow to start In-Reply-To: <51352050.402@earthlink.net> References: <51352050.402@earthlink.net> Message-ID: On 4 March 2013 22:29, Felix Miata wrote: > What you should have pasted was a URL to the report you filed. I pasted the text to make life easier for people. Here is the link: https://bugzilla.redhat.com/show_bug.cgi?id=912530 > 4.8.7 starts instantly for me on a 6 year old 64 bit PC running Fedora 18. I believe you. It always started fast for me too in the past, but now there is an issue on two PCs as I said. I installed the Fedora LXDE spin in both. From xarxoohx at gmail.com Sat Mar 9 21:11:04 2013 From: xarxoohx at gmail.com (5l0|Z) Date: Sat, 9 Mar 2013 13:11:04 -0800 (PST) Subject: inconvinient things in midnight commander. Message-ID: <35156050.post@talk.nabble.com> I started using mc recently, and I'm already in love with it, as a programmer. But there's just a couple of thnings, that kinda slowing me down, mainly: 1- How can I run something in the background, (say an flv) by a-highlighting it b-F2 c-@ (do something with it) Now if I type something like 'vlc &' vlc will run both '&' and the flv (in separate vlc instances) Now I don't want that, I wanna type vlc & and run the highlighted flv in the background. Now I could just type its name in the command line and append it with a &, but what if the file name was too long? I'm asking this, because if you open something, like an flv in the foreground and try to open something else, it willl compalin that the terminal is busy. 2- When I highlight multiple files (say mp3 or flv) and hit enter to execute them, say with vlc, I'll get an instance for vlc running the first file, when it finishes, I'll get another for the 2nd file, etc. I don't want that, I just want one instant running all the things I choose to run. 3- The renaming issue, if I wanna rename a file, I'd have to write down its full path all over again, which is very slow. Now I found that to be very inconvnient. Has anybody found a way around them? Thanks! -- View this message in context: http://old.nabble.com/inconvinient-things-in-midnight-commander.-tp35156050p35156050.html Sent from the Gnu MC - General mailing list archive at Nabble.com. From mrmazda at earthlink.net Sun Mar 10 19:59:25 2013 From: mrmazda at earthlink.net (Felix Miata) Date: Sun, 10 Mar 2013 15:59:25 -0400 Subject: inconvinient things in midnight commander. In-Reply-To: <35156050.post@talk.nabble.com> References: <35156050.post@talk.nabble.com> Message-ID: <513CE61D.3080409@earthlink.net> On 2013-03-09 13:11 (GMT-0800) 5l0|Z composed: > 3- The renaming issue, if I wanna rename a file, I'd have to write down its > full path all over again, which is very slow. Use shift key with F3/F4/F5/F6, depending on whether copy or rename, and which keys actually do as you expect. Sometimes, depending on distro and keyboard configuration, when you expect shift-F5 or shift-F6 to do what you want, you actually need shift-F3 or shift-F4. -- "The wise are known for their understanding, and pleasant words are persuasive." Proverbs 16:21 (New Living Translation) Team OS/2 ** Reg. Linux User #211409 ** a11y rocks! Felix Miata *** http://fm.no-ip.com/ From list-mc at mcmilk.de Sun Mar 24 22:20:06 2013 From: list-mc at mcmilk.de (Tino Reichardt) Date: Sun, 24 Mar 2013 23:20:06 +0100 Subject: Midnight Commander slow to start In-Reply-To: References: <51352050.402@earthlink.net> Message-ID: <20130324222006.GA7863@mcmilk.de> * Piscium wrote: > On 4 March 2013 22:29, Felix Miata wrote: > > > What you should have pasted was a URL to the report you filed. > > I pasted the text to make life easier for people. Here is the link: > https://bugzilla.redhat.com/show_bug.cgi?id=912530 > > > 4.8.7 starts instantly for me on a 6 year old 64 bit PC running Fedora 18. > > I believe you. It always started fast for me too in the past, but now > there is an issue on two PCs as I said. I installed the Fedora LXDE > spin in both. This is a dns resolution error... mc starts, when all timeouts are passed ;) There are 3 ways for fixing that: 1) you can delete your default gateway (the dns fails without timeout) 2) check /etc/resolv.conf + default route (the dns fails without timeout) 3) setup a correct /etc/hosts file with the name of the machine (the libc resolver resolves the name without any network related things) The last thing is the best solution, I think ;) PS: You can check that, by running the following command on some terminal: "strace -r -oX mc" And on a seconds terminal, watch the output of X via "tail -f X" Maybe some developer of mc can fix the thing, by avoiding the unnecessary dns lookup ;) -- regards, TR From groknok at gmail.com Mon Mar 25 22:30:19 2013 From: groknok at gmail.com (Piscium) Date: Mon, 25 Mar 2013 22:30:19 +0000 Subject: Midnight Commander slow to start In-Reply-To: <20130324222006.GA7863@mcmilk.de> References: <51352050.402@earthlink.net> <20130324222006.GA7863@mcmilk.de> Message-ID: On 24 March 2013 22:20, Tino Reichardt wrote: > This is a dns resolution error... mc starts, when all timeouts are > passed ;) > > There are 3 ways for fixing that: > 1) you can delete your default gateway (the dns fails without timeout) > 2) check /etc/resolv.conf + default route (the dns fails without timeout) > 3) setup a correct /etc/hosts file with the name of the machine (the > libc resolver resolves the name without any network related things) Option 3) solved the problem. > Maybe some developer of mc can fix the thing, by avoiding the > unnecessary dns lookup ;) Or if DNS lookup is really necessary having a short timeout, let's say, 5 seconds? From list-mc at mcmilk.de Mon Mar 25 22:55:22 2013 From: list-mc at mcmilk.de (Tino Reichardt) Date: Mon, 25 Mar 2013 23:55:22 +0100 Subject: Midnight Commander slow to start In-Reply-To: References: <51352050.402@earthlink.net> <20130324222006.GA7863@mcmilk.de> Message-ID: <20130325225522.GB18279@mcmilk.de> * Piscium wrote: > On 24 March 2013 22:20, Tino Reichardt wrote: > > > This is a dns resolution error... mc starts, when all timeouts are > > passed ;) > > > > There are 3 ways for fixing that: > > 1) you can delete your default gateway (the dns fails without timeout) > > 2) check /etc/resolv.conf + default route (the dns fails without timeout) > > 3) setup a correct /etc/hosts file with the name of the machine (the > > libc resolver resolves the name without any network related things) > > Option 3) solved the problem. > > > Maybe some developer of mc can fix the thing, by avoiding the > > unnecessary dns lookup ;) > > Or if DNS lookup is really necessary having a short timeout, let's > say, 5 seconds? The timeout is 5 seconds, but it seems, there are 4 of them... which makes the starting of mc on such systems at least 20 seconds long :( -- regards, TR From groknok at gmail.com Mon Mar 25 23:24:27 2013 From: groknok at gmail.com (Piscium) Date: Mon, 25 Mar 2013 23:24:27 +0000 Subject: Midnight Commander slow to start In-Reply-To: <20130325225522.GB18279@mcmilk.de> References: <51352050.402@earthlink.net> <20130324222006.GA7863@mcmilk.de> <20130325225522.GB18279@mcmilk.de> Message-ID: On 25 March 2013 22:55, Tino Reichardt wrote: > The timeout is 5 seconds, but it seems, there are 4 of them... which > makes the starting of mc on such systems at least 20 seconds long :( For me it was taking around 29 seconds for MC to start, quite consistently on this (home) PC. The primary DNS server is my DSL router. I ran into the same issue at work. If I remember well there MC started a bit faster, I think in around 23 seconds. From vda.linux at googlemail.com Thu Mar 28 11:13:21 2013 From: vda.linux at googlemail.com (Denys Vlasenko) Date: Thu, 28 Mar 2013 12:13:21 +0100 Subject: [PATCH 5/5 v2] keyboard input: when an unknown sequence is seen, purge all buffered input In-Reply-To: References: <1351176306-23071-1-git-send-email-vda.linux@googlemail.com> <20130131162711.GA2950@troll08.it.local> <510FA15D.1010906@gmail.com> Message-ID: On Wed, Feb 20, 2013 at 12:20 PM, Denys Vlasenko wrote: > On Mon, Feb 4, 2013 at 12:54 PM, Slava Zanko wrote: >> -----BEGIN PGP SIGNED MESSAGE----- >> Hash: SHA1 >> >> 31.01.2013 19:27, Oswald Buddenhagen wrote: >>> the mc devs are rather insistent on their process and often simply >>> ignore contributions on the list, so you may get a better response >>> when you create trac tickets. >> >> It's is not the only reason, but yes, better to create a new ticket. > > https://github.com/MidnightCommander/mc/issues/10 > > ping... http://www.midnight-commander.org/ticket/2988 From vda.linux at googlemail.com Thu Mar 28 11:42:40 2013 From: vda.linux at googlemail.com (Denys Vlasenko) Date: Thu, 28 Mar 2013 12:42:40 +0100 Subject: inconvinient things in midnight commander. In-Reply-To: <35156050.post@talk.nabble.com> References: <35156050.post@talk.nabble.com> Message-ID: On Sat, Mar 9, 2013 at 10:11 PM, 5l0|Z wrote: > > I started using mc recently, and I'm already in love with it, as a > programmer. > But there's just a couple of thnings, that kinda slowing me down, mainly: > > 1- How can I run something in the background, (say an flv) by a-highlighting > it b-F2 c-@ (do something with it) Now if I type something like 'vlc &' vlc > will run both '&' and the flv (in separate vlc instances) > Now I don't want that, I wanna type vlc & and run the highlighted flv in the > background. You can write a script which starts video player in background, and call that script. > Now I could just type its name in the command line and append it > with a &, but what if the file name was too long? Use Alt-Enter, it inserts current filename into the command you type in. > 3- The renaming issue, if I wanna rename a file, I'd have to write down its > full path all over again, which is very slow. ? I use wildcards. E.g. I select all *.log files, F6, use wildcards *.log and *.txt in the "mask:" and "to:" fields and boom, all files are renamed.