Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 920718

Summary: app-misc/utimer-0.4-r1: core dump on invalid TIMELENGTH
Product: Gentoo Linux Reporter: lekto
Component: Current packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: RESOLVED OBSOLETE    
Severity: normal CC: ceamac, jstein, treecleaner
Priority: Normal Keywords: PMASKED
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info
btimer

Description lekto 2023-12-26 15:01:08 UTC
Created attachment 880315 [details]
emerge --info

Hi, I needed to wait for 5min, so I run utimer:
> lekto@lapek ~ $ utimer --countdown=5min
> 
> ** (utimer:17110): ERROR **: 15:43:45.468: Error when trying to parse: in
> Trace/breakpoint trap (core dumped)

It took me longer than I want to admit to realize I should not use 5min, but 5m to set timer. I reporting this, because I think core dump shouldn't happened on invalid argument. Also, looks like project is dead, homepage from ebuild isn't exist and last commit on launchpad (https://code.launchpad.net/utimer) is from over 10 years ago.
Comment 1 Jonas Stein gentoo-dev 2023-12-27 11:19:07 UTC
Thank you for the report. 
This should be fixed upstream. 
So if there is a real need for such a tool, someone should fork it and maintain it. 

One has to keep in mind that a proper parser for utime will have 10x more code lines than the utime source.

Hardly any distributions ship this package:
https://repology.org/project/utimer/versions

The bug seems to be not very critical to me and such a simple program could work for another decade.

Which alternative tools do the same job?
Comment 2 lekto 2023-12-27 16:37:35 UTC
Honestly, ping -c could be used instead of it, but utimer has better interface. I had some time and willingness to write Bash script as utimer replacement, I called it btimer from Bash timer.
Comment 3 lekto 2023-12-27 16:38:08 UTC
Created attachment 880744 [details]
btimer
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2024-02-02 17:03:53 UTC
Package removed.