Bug 587817 - valgrind gets SIGSEGV on a failure of fork()
Summary: valgrind gets SIGSEGV on a failure of fork()
Keywords:
Status: ASSIGNED
Alias: None
Product: Fedora
Classification: Fedora
Component: valgrind
Version: 37
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Mark Wielaard
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-04-30 23:20 UTC by Kamil Dudka
Modified: 2022-08-09 13:41 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-12-20 12:02:48 UTC
Type: ---


Attachments (Terms of Use)
a reproducer (547 bytes, text/plain)
2010-04-30 23:20 UTC, Kamil Dudka
no flags Details
more reliable reproducer (581 bytes, text/plain)
2010-05-01 10:16 UTC, Kamil Dudka
no flags Details


Links
System ID Private Priority Status Summary Last Updated
KDE Software Compilation 237920 0 NOR CONFIRMED valgrind segfault on fork failure 2020-11-09 08:56:06 UTC

Description Kamil Dudka 2010-04-30 23:20:43 UTC
Created attachment 410613 [details]
a reproducer

Originally reported by Jakub Sochor.

Version-Release number of selected component (if applicable):
valgrind-3.5.0-16.fc12

How reproducible:
code dependent

Steps to Reproduce:
1. download the attached reproducer
2. sh valgrind-fork-sigsegv.c
  
Actual results:
$ sh valgrind-fork-sigsegv.c
valgrind-fork-sigsegv.c: line 4: 10005 Segmentation fault      (core dumped) valgrind -q ./a.out

Expected results:
no crash

Additional info:
The crash does not occur if the call of fprintf() is omitted.

Comment 1 Kamil Dudka 2010-05-01 10:16:58 UTC
Created attachment 410658 [details]
more reliable reproducer

The call of sleep() ensures it works on faster computers, too.

Comment 2 Kamil Dudka 2010-09-02 09:15:30 UTC
upstream bug:

https://bugs.kde.org/show_bug.cgi?id=237920

Comment 3 Bug Zapper 2010-11-03 15:56:01 UTC
This message is a reminder that Fedora 12 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 12.  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 WONTFIX if it remains open with a Fedora 
'version' of '12'.

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 prior to Fedora 12's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 12 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 please change the 'version' of this 
bug to the applicable version.  If you are unable to change the version, 
please add a comment here and someone will do it for you.

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.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 4 Kamil Dudka 2010-11-03 17:35:09 UTC
issue still present in valgrind-3.5.0-17.fc13.x86_64, easy to reproduce...

Comment 5 Bug Zapper 2011-06-02 14:39:39 UTC
This message is a reminder that Fedora 13 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 13.  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 WONTFIX if it remains open with a Fedora 
'version' of '13'.

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 prior to Fedora 13's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 13 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 please change the 'version' of this 
bug to the applicable version.  If you are unable to change the version, 
please add a comment here and someone will do it for you.

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.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 6 Kamil Dudka 2011-06-02 14:50:25 UTC
issue still present in valgrind-3.5.0-20.fc14.x86_64, easy to reproduce...

Comment 7 Fedora End Of Life 2012-08-16 18:19:40 UTC
This message is a notice that Fedora 14 is now at end of life. Fedora 
has stopped maintaining and issuing updates for Fedora 14. It is 
Fedora's policy to close all bug reports from releases that are no 
longer maintained.  At this time, all open bugs with a Fedora 'version'
of '14' have been closed as WONTFIX.

(Please note: Our normal process is to give advanced warning of this 
occurring, but we forgot to do that. A thousand apologies.)

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

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we were unable to fix it before Fedora 14 reached 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 to click on 
"Clone This Bug" (top right of this page) and open it against that 
version of Fedora.

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.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 8 Mark Wielaard 2012-08-18 14:44:57 UTC
The upstream bug is still open, but I can no longer replicate with valgrind > 3.6.0. I could replicate it with valgrind 3.5.0.

Comment 9 Mark Wielaard 2012-08-18 14:49:08 UTC
Actually I could just now replicate it again against valgrind-3.8.0-1.fc18.x86_64

Comment 10 Fedora End Of Life 2013-04-03 20:04:54 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 19 development cycle.
Changing version to '19'.

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

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

Comment 11 Kamil Dudka 2015-01-09 16:24:21 UTC
still a bug in valgrind-3.10.1-1.fc21.x86_64

Comment 12 Fedora End Of Life 2015-01-09 21:43:41 UTC
This message is a notice that Fedora 19 is now at end of life. Fedora 
has stopped maintaining and issuing updates for Fedora 19. It is 
Fedora's policy to close all bug reports from releases that are no 
longer maintained. Approximately 4 (four) weeks from now this bug will
be closed as EOL if it remains open with a Fedora 'version' of '19'.

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 19 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 13 Fedora End Of Life 2015-11-04 15:46:04 UTC
This message is a reminder that Fedora 21 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 21. 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 '21'.

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 21 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 14 Kamil Dudka 2015-11-04 16:02:05 UTC
Still reproducible with valgrind-3.11.0-1.fc23.x86_64 and 'ulimit -u 512'.

Comment 15 Fedora End Of Life 2016-11-24 10:27:27 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 16 Fedora End Of Life 2016-12-20 12:02:48 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.

Comment 17 Kamil Dudka 2016-12-21 15:35:50 UTC
Still reproducible with valgrind-3.12.0-1.fc25.x86_64 and attachment #410658 [details].

Comment 18 Fedora End Of Life 2017-11-16 19:34:53 UTC
This message is a reminder that Fedora 25 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 25. 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 '25'.

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 25 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 19 Kamil Dudka 2017-11-19 23:14:27 UTC
Still reproducible with valgrind-3.13.0-10.fc28.x86_64 and attachment #410658 [details].

Comment 20 Mark Wielaard 2017-11-20 08:55:08 UTC
(In reply to Kamil Dudka from comment #19)
> Still reproducible with valgrind-3.13.0-10.fc28.x86_64 and attachment
> #410658 [details].

Thanks for testing. There have been several changes to how valgrind handles forks in the last version. But apparently there are still races.

Comment 21 Fedora End Of Life 2018-02-20 15:28:38 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 28 development cycle.
Changing version to '28'.

Comment 22 Ben Cotton 2019-05-02 22:05:27 UTC
This message is a reminder that Fedora 28 is nearing its end of life.
On 2019-May-28 Fedora will stop maintaining and issuing updates for
Fedora 28. 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 '28'.

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 28 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 23 Mark Wielaard 2019-05-06 11:09:29 UTC
I cannot replicate this anymore with valgrind-3.15.0-1.fc30.x86_64

Comment 24 Kamil Dudka 2019-05-06 11:30:38 UTC
I am still able to crash valgrind-3.15.0-2.fc31.x86_64 using attachment #410658 [details].

Comment 25 Ben Cotton 2019-08-13 16:59:50 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 31 development cycle.
Changing version to '31'.

Comment 26 Ben Cotton 2019-08-13 19:22:09 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 31 development cycle.
Changing version to 31.

Comment 27 Ben Cotton 2020-11-03 17:29:50 UTC
This message is a reminder that Fedora 31 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora 31 on 2020-11-24.
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 '31'.

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 31 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 28 Kamil Dudka 2020-11-04 08:51:08 UTC
I am still able to crash valgrind-3.16.1-6.fc34 using attachment #410658 [details].

Comment 29 Ben Cotton 2021-02-09 16:25:35 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 34 development cycle.
Changing version to 34.

Comment 30 Fedora Update System 2021-10-20 14:05:58 UTC
FEDORA-2021-07e75edcab has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2021-07e75edcab

Comment 31 Fedora Update System 2021-10-20 20:03:47 UTC
FEDORA-2021-07e75edcab has been pushed to the Fedora 34 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-07e75edcab`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-07e75edcab

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 32 Mark Wielaard 2021-10-20 20:28:22 UTC
Apparently still fails for the reporter, so for now removed from the update.

Comment 33 Kamil Dudka 2021-10-21 12:47:43 UTC
I am still able to reproduce it on a fresh 1minutetip Fedora 34 machine.  For some reason, the bug does not trigger for the root user, only for the unprivileged one:

# yum -y install valgrind --enablerepo=updates-testing
# su - fedora
$ rpm -q valgrind
valgrind-3.18.1-1.fc34.x86_64

$ curl -o valgrind-fork-sigsegv.c -s 'https://bugzilla-attachments.redhat.com/attachment.cgi?id=410658'
$ sh valgrind-fork-sigsegv.c 
valgrind-fork-sigsegv.c: line 4:  1288 Segmentation fault      (core dumped) valgrind -q ./a.out

Comment 34 Ben Cotton 2022-05-12 16:53:54 UTC
This message is a reminder that Fedora Linux 34 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 34 on 2022-06-07.
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
'version' of '34'.

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

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 34 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 Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 35 Kamil Dudka 2022-05-13 06:37:07 UTC
The bug is still reproducible with valgrind-3.19.0-1.fc37.

Comment 36 Ben Cotton 2022-08-09 13:41:26 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 37 development cycle.
Changing version to 37.


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