Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* Gnus gets stuck when network changes
@ 2008-03-02  6:32 William Xu
  2008-03-04 15:05 ` William Xu
  0 siblings, 1 reply; 9+ messages in thread
From: William Xu @ 2008-03-02  6:32 UTC (permalink / raw)
  To: info-gnus-english

I have configured Gnus to check news automatically every some minutes.
It works fine when I'm staying in one place, like company.  While, when
after work, I go home by putting my notebook to sleep.  Back home, when
I wake up the system, Gnus usually gets stuck, for like ten or more
minutes ?  I can't do anything with emacs during that period.  I often
have to kill and restart emacs at this time.  What is the problem here ?
Any way to fix it ? 

-- 
William

http://williamxu.net9.org

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Gnus gets stuck when network changes
  2008-03-02  6:32 Gnus gets stuck when network changes William Xu
@ 2008-03-04 15:05 ` William Xu
  0 siblings, 0 replies; 9+ messages in thread
From: William Xu @ 2008-03-04 15:05 UTC (permalink / raw)
  To: info-gnus-english

[-- Attachment #1: Type: text/plain, Size: 1664 bytes --]

William Xu <william.xwl@gmail.com> writes:

> I have configured Gnus to check news automatically every some minutes.
> It works fine when I'm staying in one place, like company.  While, when
> after work, I go home by putting my notebook to sleep.  Back home, when
> I wake up the system, Gnus usually gets stuck, for like ten or more
> minutes ?  I can't do anything with emacs during that period.  I often
> have to kill and restart emacs at this time.  What is the problem here ?
> Any way to fix it ? 

I captured some samples when that happens with ActivityMonitor.  Looks
like it is blocked due to the __semwait_signal.  The following is last
part in the sample.  (The full sample is attached.) 

Anybody has more ideas of what is happening here? 

---------------------------------8<------------------------------------- 
    1925 Thread_2603
      1925 thread_start
        1925 _pthread_start
          1925 select$DARWIN_EXTSN
            1925 select$DARWIN_EXTSN
    1925 Thread_2703
      1925 thread_start
        1925 _pthread_start
          1925 CMMConvTask(void*)
            1925 pthreadSemaphoreWait(t_pthreadSemaphore*)
              1925 pthread_cond_wait$UNIX2003
                1925 __semwait_signal
                  1925 __semwait_signal

Total number in stack (recursive counted multiple, when >=5):

Sort by top of stack, same collapsed (when >= 5):
        __semwait_signal        1925
        select$DARWIN_EXTSN        1925
        mach_msg_trap        1919
Sample analysis of process 70764 written to file /dev/stdout
---------------------------------8<------------------------------------- 

-- 
William

http://williamxu.net9.org

[-- Attachment #2: Emacs_sample.txt --]
[-- Type: text/plain, Size: 6371 bytes --]

Sampling process 70764 for 3 seconds with 1 millisecond of run time between samples
Sampling completed, processing symbols...
Analysis of sampling Emacs (pid 70764) every 1 millisecond
Call graph:
    1925 Thread_2503
      1925 start
        1925 main
          1925 Frecursive_edit
            1925 recursive_edit_1
              1925 command_loop
                1925 internal_catch
                  1925 command_loop_2
                    1925 internal_condition_case
                      1925 command_loop_1
                        1925 read_key_sequence
                          1925 read_char
                            1925 sit_for
                              1925 wait_reading_process_output
                                1916 sys_select$UNIX2003
                                  1914 ReceiveNextEvent
                                    1914 ReceiveNextEventCommon
                                      1914 RunCurrentEventLoopInMode
                                        1914 CFRunLoopRunInMode
                                          1914 CFRunLoopRunSpecific
                                            1914 mach_msg
                                              1914 mach_msg_trap
                                                1914 mach_msg_trap
                                  1 CFRunLoopAddSource
                                    1 __CFSocketSchedule
                                      1 __CFSocketEnableCallBacks
                                        1 sendto$UNIX2003
                                          1 sendto$UNIX2003
                                  1 select_and_poll_event
                                    1 select$DARWIN_EXTSN$NOCANCEL
                                      1 select$DARWIN_EXTSN$NOCANCEL
                                8 detect_input_pending_run_timers
                                  6 redisplay_preserve_echo_area
                                    6 redisplay_internal
                                      4 XTframe_up_to_date
                                        4 note_mouse_highlight
                                          4 define_frame_cursor1
                                            4 SetClassicCursorOnly(unsigned long, unsigned char)
                                              4 CGSSetSystemDefinedCursor
                                                4 CGSSetRegisteredCursor
                                                  4 _CGSSetRegisteredCursor
                                                    4 mach_msg
                                                      4 mach_msg_trap
                                                        4 mach_msg_trap
                                      2 update_frame
                                        1 update_end
                                          1 x_update_end
                                            1 EnableScreenUpdates
                                              1 HLTBGetEnvironmentVariable
                                                1 CFDictionaryGetValueIfPresent
                                                  1 __CFDictionaryFindBuckets1b
                                                    1 __CFStringHash
                                                      1 __CFStringHash
                                        1 update_window_tree
                                          1 update_window
                                            1 x_update_window_end
                                              1 display_and_set_cursor
                                                1 erase_phys_cursor
                                                  1 draw_phys_cursor_glyph
                                                    1 draw_glyphs
                                                      1 x_draw_glyph_string
                                                        1 mac_draw_image_string_16
                                                          1 mac_draw_string_common
                                                            1 CGContextFillRect
                                                              1 CGContextFillRects
                                                                1 ripc_DrawRects
                                                                  1 ripc_Render
                                                                    1 ripc_GetColor
                                                                      1 CGColorTransformConvertColorFloatComponents
                                                                        1 initializeConvertParams
                                                                          1 resolveSource
                                                                            1 resolveSource
                                  2 x_flush
                                    1 GetThreadPort
                                      1 GetThreadPort
                                    1 QDFlushPortBuffer
                                      1 QDPlatformFlushWindow
                                        1 CGSFlushWindowContentRegion
                                          1 _CGSFlushWindowRegion
                                            1 _CGSFlushRegionInline
                                              1 mach_msg
                                                1 mach_msg_trap
                                                  1 mach_msg_trap
                                1 detect_input_pending
                                  1 get_input_pending
                                    1 sigprocmask
                                      1 sigprocmask
    1925 Thread_2603
      1925 thread_start
        1925 _pthread_start
          1925 select$DARWIN_EXTSN
            1925 select$DARWIN_EXTSN
    1925 Thread_2703
      1925 thread_start
        1925 _pthread_start
          1925 CMMConvTask(void*)
            1925 pthreadSemaphoreWait(t_pthreadSemaphore*)
              1925 pthread_cond_wait$UNIX2003
                1925 __semwait_signal
                  1925 __semwait_signal

Total number in stack (recursive counted multiple, when >=5):

Sort by top of stack, same collapsed (when >= 5):
        __semwait_signal        1925
        select$DARWIN_EXTSN        1925
        mach_msg_trap        1919
Sample analysis of process 70764 written to file /dev/stdout

[-- Attachment #3: Type: text/plain, Size: 161 bytes --]

_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Gnus gets stuck when network changes
       [not found]       ` <mailman.8260.1204597952.18990.info-gnus-english@gnu.org>
@ 2008-03-04 15:06         ` Ted Zlatanov
  0 siblings, 0 replies; 9+ messages in thread
From: Ted Zlatanov @ 2008-03-04 15:06 UTC (permalink / raw)
  To: info-gnus-english

On Tue, 04 Mar 2008 11:32:18 +0900 William Xu <william.xwl@gmail.com> wrote: 

WX> Ted Zlatanov <tzz@lifelogs.com> writes:
>> Start a second Emacs and test in it.

WX> Okay, I'll test next time.  

Try running a slave Gnus in it too, if everything works outside Gnus.

>>>> Then try the same for your own mail server, if there's a web server
>>>> running on or near it.  If you can't get through, try command-line
>>>> telnet to port N (where N is your IMAP, POP, whatever port) and ping.
>>>> If those don't work either, the problem is outside of Emacs.

>> You need to use telnet and ping during the "stuck" period.  Also try a
>> web browser during that time.  That way you'll know if your OS or Emacs
>> are the problem, and what kinds of connections are working.

WX> I'm sure the problem is outside Emacs.  When the stuck happens, I
WX> sometimes dive into firefox for some time(waiting for emacs to become
WX> responsible), but i never notice problem there.

s/outside/inside/ :)

OK, I understand.

>> Please tell us what OS you're running, at least.

WX> Mac OS X 10.5.2.

It seems that the network socket or IMAP exchange may be stuck.  I need
to hear from you and Barutan about the second slave Gnus while the first
one is stuck.

Ted

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Gnus gets stuck when network changes
  2008-03-04  1:04       ` Barutan Seijin
@ 2008-03-04 15:05         ` Ted Zlatanov
  0 siblings, 0 replies; 9+ messages in thread
From: Ted Zlatanov @ 2008-03-04 15:05 UTC (permalink / raw)
  To: info-gnus-english

On Tue, 04 Mar 2008 01:04:24 GMT Barutan Seijin <barutanseijin@gmail.com> wrote: 

BS> On  3 Mar 2008, Ted Zlatanov wrote:
>> You need to use telnet and ping during the "stuck" period.  Also try a
>> web browser during that time.  That way you'll know if your OS or Emacs
>> are the problem, and what kinds of connections are working.

BS> Well, over here, gnus refuses to connect with gmail.com after a while.
BS> I know their machines are working because i can connect to them from a
BS> web browser, or with a new gnus.  It's not my OS, and it's not
BS> gmail.com, it's... 

Same as with William: can you do a URL retrieve in a second Emacs to
gmail.com so we know if it's a stateful problem in Emacs?  If that
works, start a slave Gnus in the second Emacs and see if that works
while the first one is stuck.

Ted

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Gnus gets stuck when network changes
  2008-03-03 19:01     ` Ted Zlatanov
  2008-03-04  1:04       ` Barutan Seijin
@ 2008-03-04  2:32       ` William Xu
       [not found]       ` <mailman.8260.1204597952.18990.info-gnus-english@gnu.org>
  2 siblings, 0 replies; 9+ messages in thread
From: William Xu @ 2008-03-04  2:32 UTC (permalink / raw)
  To: info-gnus-english

Ted Zlatanov <tzz@lifelogs.com> writes:

> Start a second Emacs and test in it.

Okay, I'll test next time.  

>>> Then try the same for your own mail server, if there's a web server
>>> running on or near it.  If you can't get through, try command-line
>>> telnet to port N (where N is your IMAP, POP, whatever port) and ping.
>>> If those don't work either, the problem is outside of Emacs.

> You need to use telnet and ping during the "stuck" period.  Also try a
> web browser during that time.  That way you'll know if your OS or Emacs
> are the problem, and what kinds of connections are working.

I'm sure the problem is outside Emacs.  When the stuck happens, I
sometimes dive into firefox for some time(waiting for emacs to become
responsible), but i never notice problem there.

> Please tell us what OS you're running, at least.

Mac OS X 10.5.2.

-- 
William

http://williamxu.net9.org

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Gnus gets stuck when network changes
  2008-03-03 19:01     ` Ted Zlatanov
@ 2008-03-04  1:04       ` Barutan Seijin
  2008-03-04 15:05         ` Ted Zlatanov
  2008-03-04  2:32       ` William Xu
       [not found]       ` <mailman.8260.1204597952.18990.info-gnus-english@gnu.org>
  2 siblings, 1 reply; 9+ messages in thread
From: Barutan Seijin @ 2008-03-04  1:04 UTC (permalink / raw)
  To: info-gnus-english

On  3 Mar 2008, Ted Zlatanov wrote:



> You need to use telnet and ping during the "stuck" period.  Also try a
> web browser during that time.  That way you'll know if your OS or Emacs
> are the problem, and what kinds of connections are working.

Well, over here, gnus refuses to connect with gmail.com after a while.
I know their machines are working because i can connect to them from a
web browser, or with a new gnus.  It's not my OS, and it's not
gmail.com, it's... 



-- 
barutanseijin@gmail.com

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Gnus gets stuck when network changes
       [not found]   ` <mailman.8237.1204557222.18990.info-gnus-english@gnu.org>
@ 2008-03-03 19:01     ` Ted Zlatanov
  2008-03-04  1:04       ` Barutan Seijin
                         ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Ted Zlatanov @ 2008-03-03 19:01 UTC (permalink / raw)
  To: info-gnus-english

On Tue, 04 Mar 2008 00:13:18 +0900 William Xu <william.xwl@gmail.com> wrote: 

WX> Ted Zlatanov <tzz@lifelogs.com> writes:
>> Can Emacs open a network connection outside Gnus?
>> 
>> For example try (url-insert-file-contents "http://google.com") in a
>> temporary buffer.  That won't use any Gnus facilities.

WX> Since emacs gets stuck at this point, I'm unable to do this test during
WX> that time.  For after that stuck, I'll explain below.

Start a second Emacs and test in it.

>> Then try the same for your own mail server, if there's a web server
>> running on or near it.  If you can't get through, try command-line
>> telnet to port N (where N is your IMAP, POP, whatever port) and ping.
>> If those don't work either, the problem is outside of Emacs.

WX> After the stuck period, I checked Gnus group buffer, finding it failed
WX> to connect to some newsgroup servers, for example, Gnus "Cannot open
WX> server" for the following: 

WX> ,----
WX> | zen:~$ telnet aioe.cjb.net 119
WX> | Trying 194.177.96.26...
WX> | Connected to aioe.cjb.net.
WX> | Escape character is '^]'.
WX> | 500 Too long connection
WX> | 
WX> | Connection closed by foreign host.
WX> `----

WX> Besides that, the gmane newsgroup server is still connected.  

WX> I don't understand why that long stuck period, what kind of TIMEOUT is
WX> that...  

You need to use telnet and ping during the "stuck" period.  Also try a
web browser during that time.  That way you'll know if your OS or Emacs
are the problem, and what kinds of connections are working.

Please tell us what OS you're running, at least.

Ted

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Gnus gets stuck when network changes
  2008-03-03 14:07 ` Ted Zlatanov
@ 2008-03-03 15:13   ` William Xu
       [not found]   ` <mailman.8237.1204557222.18990.info-gnus-english@gnu.org>
  1 sibling, 0 replies; 9+ messages in thread
From: William Xu @ 2008-03-03 15:13 UTC (permalink / raw)
  To: info-gnus-english

Ted Zlatanov <tzz@lifelogs.com> writes:

> Can Emacs open a network connection outside Gnus?
>
> For example try (url-insert-file-contents "http://google.com") in a
> temporary buffer.  That won't use any Gnus facilities.

Since emacs gets stuck at this point, I'm unable to do this test during
that time.  For after that stuck, I'll explain below.  

> Then try the same for your own mail server, if there's a web server
> running on or near it.  If you can't get through, try command-line
> telnet to port N (where N is your IMAP, POP, whatever port) and ping.
> If those don't work either, the problem is outside of Emacs.

After the stuck period, I checked Gnus group buffer, finding it failed
to connect to some newsgroup servers, for example, Gnus "Cannot open
server" for the following: 

,----
| zen:~$ telnet aioe.cjb.net 119
| Trying 194.177.96.26...
| Connected to aioe.cjb.net.
| Escape character is '^]'.
| 500 Too long connection
| 
| Connection closed by foreign host.
`----

Besides that, the gmane newsgroup server is still connected.  

I don't understand why that long stuck period, what kind of TIMEOUT is
that...  

-- 
William

http://williamxu.net9.org

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Gnus gets stuck when network changes
       [not found] <mailman.8159.1204439560.18990.info-gnus-english@gnu.org>
@ 2008-03-03 14:07 ` Ted Zlatanov
  2008-03-03 15:13   ` William Xu
       [not found]   ` <mailman.8237.1204557222.18990.info-gnus-english@gnu.org>
  0 siblings, 2 replies; 9+ messages in thread
From: Ted Zlatanov @ 2008-03-03 14:07 UTC (permalink / raw)
  To: info-gnus-english

On Sun, 02 Mar 2008 15:32:22 +0900 William Xu <william.xwl@gmail.com> wrote: 

WX> I have configured Gnus to check news automatically every some minutes.
WX> It works fine when I'm staying in one place, like company.  While, when
WX> after work, I go home by putting my notebook to sleep.  Back home, when
WX> I wake up the system, Gnus usually gets stuck, for like ten or more
WX> minutes ?  I can't do anything with emacs during that period.  I often
WX> have to kill and restart emacs at this time.  What is the problem here ?
WX> Any way to fix it ? 

Can Emacs open a network connection outside Gnus?

For example try (url-insert-file-contents "http://google.com") in a
temporary buffer.  That won't use any Gnus facilities.

Then try the same for your own mail server, if there's a web server
running on or near it.  If you can't get through, try command-line
telnet to port N (where N is your IMAP, POP, whatever port) and ping.
If those don't work either, the problem is outside of Emacs.

Ted

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2008-03-04 15:06 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-02  6:32 Gnus gets stuck when network changes William Xu
2008-03-04 15:05 ` William Xu
     [not found] <mailman.8159.1204439560.18990.info-gnus-english@gnu.org>
2008-03-03 14:07 ` Ted Zlatanov
2008-03-03 15:13   ` William Xu
     [not found]   ` <mailman.8237.1204557222.18990.info-gnus-english@gnu.org>
2008-03-03 19:01     ` Ted Zlatanov
2008-03-04  1:04       ` Barutan Seijin
2008-03-04 15:05         ` Ted Zlatanov
2008-03-04  2:32       ` William Xu
     [not found]       ` <mailman.8260.1204597952.18990.info-gnus-english@gnu.org>
2008-03-04 15:06         ` Ted Zlatanov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).