Bug 697482 - gcore does not have "-h" help option
Summary: gcore does not have "-h" help option
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: gdb
Version: 23
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jan Kratochvil
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-04-18 12:38 UTC by Steve Tyler
Modified: 2016-12-20 12:06 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-12-20 12:06:45 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Steve Tyler 2011-04-18 12:38:08 UTC
Description of problem:

No man page.
"-h", "--help" are interpreted as process ids.

$ man gcore
No manual entry for gcore

$ gcore -h
Illegal process-id: -h.
You can't do that without a process to debug.
The program is not being run.
gcore: failed to create core.-h

$ gcore --help
Illegal process-id: --help.
You can't do that without a process to debug.
The program is not being run.
gcore: failed to create core.--help

Version-Release number of selected component (if applicable):
gdb-7.2.90.20110411-34.fc15.x86_64

How reproducible:
Always.

Steps to Reproduce:
1. See above.
  
Actual results:
See above.

Expected results:
gcore has a man page.
gcore accepts "-h" or "--help".

Additional info:

It might also be helpful if gcore printed the process name:

$ gcore 3309
0x00000036a10adcd0 in __nanosleep_nocancel () at ../sysdeps/unix/syscall-template.S:82
82	T_PSEUDO (SYSCALL_SYMBOL, SYSCALL_NAME, SYSCALL_NARGS)
Saved corefile core.3309

$ file core.3309 
core.3309: ELF 64-bit LSB core file x86-64, version 1 (SYSV), SVR4-style, from 'sleep 1000'

Comment 1 Steve Tyler 2011-04-18 12:46:13 UTC
Just discovered that gcore is a shell script:

$ gcore
usage:  gcore [-o filename] pid

Comment 2 Steve Tyler 2011-04-18 12:50:13 UTC
(In reply to comment #1)
> Just discovered that gcore is a shell script:
> 
> $ gcore
> usage:  gcore [-o filename] pid

gcore accepts multiple pids:
...
# Loop through pids
for pid in $*
...

Comment 3 Jan Kratochvil 2011-04-25 07:43:30 UTC
[patch] gdb_gcore man/help/install [+doc]
http://sourceware.org/ml/gdb-patches/2011-04/msg00436.html

It is now being tracked upstream and it will get into Fedora 16 unless you reopen it for F-15.  Thanks.

Comment 4 Steve Tyler 2011-04-25 11:21:33 UTC
(In reply to comment #3)
> [patch] gdb_gcore man/help/install [+doc]
> http://sourceware.org/ml/gdb-patches/2011-04/msg00436.html
> 
> It is now being tracked upstream and it will get into Fedora 16 unless you
> reopen it for F-15.  Thanks.

Thanks, Jan. That looks great. F16 is fine with me.
Very good to know that "programs being dumped remain running unaffected ...".

Comment 5 Jan Kurik 2015-07-15 15:16:35 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 23 development cycle.
Changing version to '23'.

(As we did not run this process for some time, it could affect also pre-Fedora 23 development
cycle bugs. We are very sorry. It will help us with cleanup during Fedora 23 End Of Life. Thank you.)

More information and reason for this action is here:
https://fedoraproject.org/wiki/BugZappers/HouseKeeping/Fedora23

Comment 6 Fedora End Of Life 2016-11-24 10:30:30 UTC
This message is a reminder that Fedora 23 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 23. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '23'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 23 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 7 Fedora End Of Life 2016-12-20 12:06:45 UTC
Fedora 23 changed to end-of-life (EOL) status on 2016-12-20. Fedora 23 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


Note You need to log in before you can comment on or make changes to this bug.