Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 920718 - app-misc/utimer-0.4-r1: core dump on invalid TIMELENGTH
Summary: app-misc/utimer-0.4-r1: core dump on invalid TIMELENGTH
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: PMASKED
Depends on:
Blocks:
 
Reported: 2023-12-26 15:01 UTC by lekto
Modified: 2024-02-02 17:03 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge.info,6.70 KB, text/plain)
2023-12-26 15:01 UTC, lekto
Details
btimer (btimer.sh,2.88 KB, application/x-shellscript)
2023-12-27 16:38 UTC, lekto
Details

Note You need to log in before you can comment on or make changes to this bug.
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.