After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 107025 - Crash loading new headers, spamcop.geek group
Crash loading new headers, spamcop.geek group
Status: RESOLVED FIXED
Product: Pan
Classification: Other
Component: general
pre-0.13.4 betas
Other Linux
: Normal normal
: 0.13.4
Assigned To: Charles Kerr
Pan QA Team
: 107144 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2003-02-25 12:52 UTC by nice
Modified: 2006-06-18 05:22 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description nice 2003-02-25 12:52:26 UTC
If you go to news.spamcop.net, go to the spamcop.geeks group, and then press 'a' (I don't 
have it automatically loading new headers), it will core dump every time. 
 
(      nntp.c:75:   nntp_get_response)(thread 0x8193f88)(time 07:44:22)(depth   5) TRACE:  
+ nntp_get_response  
(  sockets.c:202:  pan_socket_getline)(thread 0x8193f88)(time 07:44:22)(depth   6)  
TRACE: + pan_socket_getline  
(  sockets.c:239:  pan_socket_getline)(thread 0x8193f88)(time 07:44:22) SOCKET INPUT:  
socket [0x83184f8] received [224 10089-10102 fields follow  
]  
(  sockets.c:242:  pan_socket_getline)(thread 0x8193f88)(time 07:44:22)(depth   5)  
TRACE: - pan_socket_getline  
(      nntp.c:93:   nntp_get_response)(thread 0x8193f88)(time 07:44:22)(depth   4) TRACE: -  
nntp_get_response  
(  sockets.c:202:  pan_socket_getline)(thread 0x8193f88)(time 07:44:22)(depth   5)  
TRACE: + pan_socket_getline  
(  sockets.c:239:  pan_socket_getline)(thread 0x8193f88)(time 07:44:22) SOCKET INPUT:  
socket [0x83184f8] received [10089 Re: What's the word on the new Adaware? "Miss  
Betsy" <nobody@spamcop.net>        Fri, 21 Feb 2003 09:19:28 -0500  
<b35cjp$mve$1@news.spamcop.net> <b1r11u$nob$1@news.spamcop.net>  
<b33m25$41p$1@news.spamcop.net>  1372    18      Xref: news.spamcop.net  
spamcop.geeks:10089  
]  
(  sockets.c:242:  pan_socket_getline)(thread 0x8193f88)(time 07:44:22)(depth   4)  
TRACE: - pan_socket_getline  
(  sockets.c:202:  pan_socket_getline)(thread 0x8193f88)(time 07:44:22)(depth   5)  
TRACE: + pan_socket_getline  
(  sockets.c:239:  pan_socket_getline)(thread 0x8193f88)(time 07:44:22) SOCKET INPUT:  
socket [0x83184f8] received [10090  
<999_Characters_Total_Line_Length_000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000@example.com>       
Guy Macon  
<999-Characters-Total-Line-Length@example.A000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000A.com>    
Fri, 21 Feb 2003 12:04:57 -0800  <b360us$gfh$6@news.spamcop.net>  
<999_Characters_Total_Line_Length@example.com> <1@0.0> <2@0.0> <3@0.0>  
<4@0.0> <5@0.0> <6@0.0> <7@0.0> <8@0.0> <9@0.0> <0@1.0> <1@1.0> <2@1.0>  
<3@1.0> <4@1.0> <5@1.0> <6@1.0> <7@1.0> <8@1.0> <9@1.0> <0@0.0> <1@2.0>  
<2@2.0> <3@2.0> <4@2.0> <5@2.0> <6@2.0> <7@2.0> <8@2.0> <9@2.0> <0@0.0>  
<1@3.0> <2@3.0> <3@3.0> <4@3.0> <5@3.0> <6@3.0> <7@3.0> <8@3.0> <9@3.0>  
<0@0.0> <1@4.0> <2@4.0> <3@4.0> <4@4.0> <5@4.0> <6@4.0> <7@4.0> <8@4.0>  
<9@4.0> <0@0.0> <1@5.0> <2@5.0> <002@00.00> <3@5.0> <4@5.0> <5@5.0>  
<6@5.0> <7@5.0> <8@5.0> <9@5.0> <0@0.0> <1@6.0> <2@6.0> <3@6.0> <4@6.0>  
<5@6.0> <6@6.0> <7@6.0> <8@6.0> <9@6.0> <0@0.0> <1@7.0> <2@7.0> <3@7.0>  
<4@7.0> <5@7.0> <6@7.0> <7@7.0> <8@7.0> <9@7.0> <0@0.0> <1@8.0> <2@8.0>  
<3@8.0> <4@8.0> <5@8.0> <6@8.0> <7@8.0> <8@8.0> <9@8.0> <0@0.0> <1@9.0>  
<2@9.0> <3@9.0> <4@9.0> <5@9.0> <6@9.0> <7@9.0> <8@9.0> <9@9.0> <0@0.1>  
<1@0.1> <2@0.1> <3@0.1> <4@0.1> <5@0.1> <6@0.1> <7@0.1> <8@0.1> <9@0.1>  
<0@1.1>  
<1@1.1> <2@1.1> <3@1.1> <4@1.1> <5@1.1> <6@1.1> 6508    16      Xref:  
news.spamcop.net spamcop.geeks:10090  
]  
(  sockets.c:242:  pan_socket_getline)(thread 0x8193f88)(time 07:44:22)(depth   4)  
TRACE: - pan_socket_getline  
Segmentation fault  
[nice@mothlight nice]$
Comment 1 Charles Kerr 2003-02-25 13:31:50 UTC
repeatable on my end, too.

backtrace:

Program received signal SIGSEGV, Segmentation fault.

Thread 1133718336 (LWP 2178)

  • #0 gnksa_split_from
    at gnksa.c line 531
  • #1 gnksa_do_check_from
    at gnksa.c line 662
  • #2 article_set_author_from_header_impl
    at article.c line 966
  • #3 article_init_author_from_header
    at article.c line 1001
  • #4 nntp_download_headers
    at nntp.c line 844
  • #5 task_headers_run_download
    at task-headers.c line 250
  • #6 queue_run_thread
    at queue.c line 928
  • #7 g_static_rw_lock_free
    from /usr/lib/libglib-2.0.so.0
  • #8 g_static_private_free
    from /usr/lib/libglib-2.0.so.0
  • #9 start_thread
    from /lib/tls/libpthread.so.0

Comment 2 Charles Kerr 2003-02-25 13:39:04 UTC
518-    end = &work [ strlen(work) - 1 ];
519-    debug2 (DEBUG_GNKSA, "work: [%s], end: [%s]", work, end);
520-    if (*end == '>') /* Charles Kerr <charles@rebelbase.com> */
521-    {
522-            *addrtype = GNKSA_ADDRTYPE_ROUTE;
523-
524-            /* get address part */
525-            begin = strrchr (work, '<');
526-            if (begin == NULL)
527-                    return GNKSA_LANGLE_MISSING;
528-
529-            /* copy route address from inside the <> brackets */
530-            g_strlcpy (addr_buf, begin+1, addr_max);
531:            *strchr(addr_buf, '>') = '\0';
532-
533-            /* From: [plain-phrase space] "<" address ">" */
534-            *begin = '\0';
535-            if (strict) {
536-                    const char * tmp = work;

Cute, his email is more than 500 characters long.

This is annoying as hell, but a great stress tester for Pan.
I need to tinker around with this some more. :)
Comment 4 Christophe Lambin 2003-02-26 20:19:23 UTC
*** Bug 107144 has been marked as a duplicate of this bug. ***