Re: debugging? (segmentation fault)

Rhialto <[email protected]>
Newsgroups gmane.comp.gnome.apps.pan.user
Message-ID <[email protected]>
On Sun 13 Feb 2022 at 15:12:44 +0100, Rhialto wrote:
> I'm not sure what input it's trying to parse there:

Going by the comments earlier in headers.cc, it's likely to be one of
the files in ~/.pan2/groups. So it's a file that Pan wrote itself.
Somehow it got corrupted apparently.
You could try moving aside the files in the  ~/.pan2/groups directory
and putting them back gradually, to find which one is the bad one.

The data the code is trying to parse looks something like this:

0
<Xns9BA78C87E9BCTheLoneAndLevelSands-Bt1SeHfVOa+mWbt5HBLnPQ@public.gmane.org>
        Wolf Walls (1600x1200) - File 01 of 47 - $index1.jpg (/2)
        m
        1233640308
        6:a:60114 
        t 2 2 9743
        1 <Xns9BA78C87E9BCTheLoneAndLevelSands-Bt1SeHfVOa+mWbt5HBLnPQ@public.gmane.org> 505347
        2 <Xns9BA78CCB35D0TheLoneAndLevelSands-Bt1SeHfVOa+mWbt5HBLnPQ@public.gmane.org> 110836

where the code that crashed tries to look at one of the bottom 2 lines,
but appparently it got an empty line (or just whitespace) instead.

The top of each file explains the format:

# C. The group's headers section.
#    The first line tells the number of articles to follow,
#    then articles which each have the following lines:
#    1. message-id
#    2. subject
#    3. author
#    4. references. This line is omitted if the Article has an empty References header.
#    5. time-posted. This is a time_t (see http://en.wikipedia.org/wiki/Unix_time)
#    6. xref line, server1:group1:number1 server2:group2:number2 ...
#    7. has-attachments [parts-total-count parts-found-count] line-count
#       If has-attachments isn't 't' (for true), fields 2 and 3 are omitted.
#       If fields 2 and 3 are equal, the article is `complete'.
#    8. One line per parts-found-count: part-index message-id byte-count

-Olaf.
-- 
___ "Buying carbon credits is a bit like a serial killer paying someone else to
\X/  have kids to make his activity cost neutral." -The BOFH    falu.nl@rhialto

_______________________________________________
Pan-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/pan-users
signature.asc (application/pgp-signature, 488 B)
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEFVAhiiWjqgwBVdQAmYnGRWHD+9MFAmIJGccACgkQmYnGRWHD
+9NUtQgAoYukbUcluwii4D++ht0vkr3d+wolk4uc1hviLXQmHEAjOt8I65n8vTkU
NmyutHrGmWNh3FmON5Z933LPb9ssHRRNlxGIn/9HWqYkwahyloTo/WkfQqJxBHBT
Tx5RC8lKFYn9CiJArPNAh9yUxuaUmkF2YaDnWuyh724Kjlv2n0bfbdtAETPNKQti
PLQjF87FWeAe1152Y9nbyQCU7V/wn/e7tkTeP37qMOb8I09uByHl4Qxga/HeFNiR
tZk5KoExK5t73mDchZqVzs5uGDGJLZTODfjIG+yGVbANHm7OCJ0t+dQoRpGz5Ejv
eoN2bcz2OIQCA2/lTfwWRi99bQM0cQ==
=fHNY
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.