bugGNU Accounting Utilities - Bugs: bug #49930, should not segfault on gzip files...

 
 

bug #49930: should not segfault on gzip files - FORWARDED FROM DEBIAN

Submitter:  None
Submitted:  Sun 25 Dec 2016 11:22:42 PM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  None Privacy:  Public
Assigned to:  None Open/Closed:  Open
* Mandatory Fields

Post a Comment

Add a New Comment Rich Markup
   

Discussion

Mon 22 Sep 2025 08:11:47 PM UTC, comment #1: 

This doesn't seem to happen with --forwards. Since lastcomm reads files backwards this seems to me to be another case of the issue in bug #56282. I think the patch for that bug (file #57676) also fixes this issue.

Andrew Bower <abower>
Sun 25 Dec 2016 11:22:42 PM UTC, original submission:  

From: Justin T Pryzby <justinpryzby@users.sourceforge.net>
To: -email is unavailable-
Subject: acct: should not segfault on gzip files
Date: Sun, 23 Nov 2008 13:50:00 -0700
Package: acct
Version: 6.4~pre1-3
Tags: upstream

Ideally gzip files would be transparently handled, but at least it
should not crash.

gdb --args ./lastcomm -f /var/log/account/pacct.1.gz

Program received signal SIGSEGV, Segmentation fault.
pacct_get_entry () at pacct_rd.c:375
375       if (rec_in->ac_version != 0
(gdb) bt
#0  pacct_get_entry () at pacct_rd.c:375
#1  0x00000000004014b9 in parse_entries () at lastcomm.c:320
#2  0x00000000004019da in main (argc=3, argv=0x7fff2ceda708) at lastcomm.c:283

Anonymous

 

Attached Files

This item currently has no attached files.

(Note: upload size limit is set to 16MiB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

Carbon-Copy List
  • -email is unavailable- added by abower (Posted a comment)
  •  

    Votes

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    History

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.16.
    Corresponding source code