Bug 1504009 - undefined reference to `python_function__return_semaphore' with latest systemtap 3.2
Summary: undefined reference to `python_function__return_semaphore' with latest system...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: systemtap
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Frank Ch. Eigler
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-10-19 09:47 UTC by Charalampos Stratakis
Modified: 2017-11-11 03:01 UTC (History)
9 users (show)

Fixed In Version: systemtap-3.2-2.fc26 systemtap-3.2-2.fc25 systemtap-3.2-2.fc27
Clone Of:
Environment:
Last Closed: 2017-11-01 00:06:28 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Charalampos Stratakis 2017-10-19 09:47:14 UTC
Building python2 in rawhide (and I presume also for the rest of Fedora branches when updates reach stable), is failing with the latest systemtap with this error:

./libpython2.7_d.so: undefined reference to `python_function__return_semaphore'
./libpython2.7_d.so: undefined reference to `python_function__entry_semaphore'

Full log: https://kojipkgs.fedoraproject.org//work/tasks/3236/22543236/build.log


The issue seems to be similar to bug 711427 however in the current case it seems to affect all the archs.

Comment 1 Charalampos Stratakis 2017-10-19 18:17:42 UTC
Managed to bisect the issue down to that commit [0].

The patch that adds systemtap support for python2: [1]

The problem seems to be that the command 'dtrace -G -o /dev/null -s $srcdir/Include/pydtrace.d 2>/dev/null' is not successful.

[0] https://sourceware.org/git/gitweb.cgi?p=systemtap.git;a=commit;h=c245153ca193c471a8c8a2650834dc2f0b801bc1
[1] https://src.fedoraproject.org/rpms/python2/blob/master/f/00055-systemtap.patch

Comment 2 Frank Ch. Eigler 2017-10-19 18:56:56 UTC
Ah interesting.  The main effect of that patch to put the temporary file into the invoking directory rather than under /tmp.  ... and since the new file name is -fixed-, two concurrent copies of dtrace -G could fight over it.  Bummer.

We can't seem to reproduce the failure on this side yet.  Maybe it'd help if the python2 configure took out the 2>/dev/null bit, so as to see errors again.

Comment 3 Iryna Shcherbina 2017-10-20 13:09:05 UTC
If you redirect the error to a file, e.g:

> if dtrace -G -o /dev/null -s $srcdir/Include/pydtrace.d 2>filename1.txt


then you can see the error:

Traceback (most recent call last):
  File "/usr/bin/dtrace", line 441, in <module>
    sys.exit(main())
  File "/usr/bin/dtrace", line 414, in main
    fdesc = open(fname, mode='w')
PermissionError: [Errno 13] Permission denied: '/dev/null.dtrace-temp.c'

Comment 4 Frank Ch. Eigler 2017-10-20 13:17:00 UTC
That does explain it fully, thanks Iryna.

Comment 5 Frank Ch. Eigler 2017-10-20 14:10:12 UTC
systemtap-3.2-2.fc28 incoming
Will backport fix to the newer fedora respins too.

Comment 6 Charalampos Stratakis 2017-10-20 14:10:58 UTC
Thanks a lot Frank for addressing this!

Comment 7 Fedora Update System 2017-10-22 17:19:04 UTC
systemtap-3.2-2.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-01f2973345

Comment 8 Fedora Update System 2017-10-22 17:19:34 UTC
systemtap-3.2-2.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-dce5fba9d7

Comment 9 Fedora Update System 2017-10-22 17:20:24 UTC
systemtap-3.2-2.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2017-d565a535ec

Comment 10 Fedora Update System 2017-10-23 00:51:40 UTC
systemtap-3.2-2.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-d565a535ec

Comment 11 Fedora Update System 2017-10-23 23:21:09 UTC
systemtap-3.2-2.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-dce5fba9d7

Comment 12 Fedora Update System 2017-10-23 23:49:36 UTC
systemtap-3.2-2.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-01f2973345

Comment 13 Fedora Update System 2017-11-01 00:06:28 UTC
systemtap-3.2-2.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.

Comment 14 Fedora Update System 2017-11-01 16:42:24 UTC
systemtap-3.2-2.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.

Comment 15 Fedora Update System 2017-11-11 03:01:07 UTC
systemtap-3.2-2.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.


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