Bug 515870 - Error message about missing module uprobes when updating package systemtap
Summary: Error message about missing module uprobes when updating package systemtap
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: systemtap
Version: rawhide
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: ---
Assignee: Frank Ch. Eigler
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 516166 518015 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-08-06 06:44 UTC by Joachim Frieben
Modified: 2009-08-18 21:15 UTC (History)
8 users (show)

Fixed In Version: 0.9.9-3.fc11
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-08-18 21:11:53 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Joachim Frieben 2009-08-06 06:44:36 UTC
Description of problem:
When updating package systemtap on a current "rawhide" system, an error message is issued:

  Updating :        systemtap-0.9.9-2.fc12.x86_64        54/115
  ERROR: Module uprobes does not exist in /proc/modules

Version-Release number of selected component (if applicable):
systemtap-0.9.9-2.fc12.x86_64

How reproducible:
Always.

Steps to Reproduce:
1. Update package systemtap.
  
Actual results:
Above error message is returned.

Expected results:
Update completes silently.

Additional info:
No module uprobes.ko is found in /lib/modules/2.6.31-0.132.rc5.git3.fc12.x86_64. However, source file are present in /usr/share/systemtap/runtime/uprobes/ and /usr/share/systemtap/runtime/uprobes2 respectively.
If module uprobes.ko is required for systemtap to work properly, then it should be provided by Fedora. Otherwise the error message should be silenced.

Comment 1 Mark Wielaard 2009-08-06 07:46:30 UTC
This is caused by this part of the spec file:

%post
# Remove any previously-built uprobes.ko materials
(make -C /usr/share/systemtap/runtime/uprobes clean) >/dev/null 3>&1 || true
(/sbin/rmmod uprobes) >/dev/null 3>&1 || true
 
%preun
# Ditto
(make -C /usr/share/systemtap/runtime/uprobes clean) >/dev/null 3>&1 || true
(/sbin/rmmod uprobes) >/dev/null 3>&1 || true

Which was introduced to fix upstream bug:
PR10182 systemtap.spec should try to clean up old leftover uprobes module.
http://sourceware.org/bugzilla/show_bug.cgi?id=10182

Obviously the '>/dev/null 3>&1' part doesn't work as intended.
What would be the correct magic incantation to make this completely silent?

Alternatively we could grep /proc/modules first before even attempting.

Comment 2 Frank Ch. Eigler 2009-08-06 10:49:52 UTC
3>&1 should probably have been 2>&1

Comment 3 Mark Wielaard 2009-08-06 15:55:44 UTC
(In reply to comment #2)
> 3>&1 should probably have been 2>&1  

ah, seems 3>&1 is just a typo. Doing 2>&1 silences the output. OK. Fixed upstream.

commit 70f2bd1fc3db8e2b555234d45e6bc3856d8afee5
Author: Mark Wielaard <mjw>
Date:   Thu Aug 6 17:46:27 2009 +0200

    RH515870 Error message about missing module uprobes when updating.
    
    Fix 3>&1 typo.
    
    * systemtap.spec: Use 2>&1 to redirect error messages.

Should be pulled in with the next fedora build. Then it will still give one more spurious error message on erasing the old package, but after that it is all fine.

Comment 4 Mark Wielaard 2009-08-07 07:54:57 UTC
*** Bug 516166 has been marked as a duplicate of this bug. ***

Comment 5 Fedora Update System 2009-08-17 16:51:50 UTC
systemtap-0.9.9-3.fc11 has been submitted as an update for Fedora 11.
http://admin.fedoraproject.org/updates/systemtap-0.9.9-3.fc11

Comment 6 Fedora Update System 2009-08-17 16:51:55 UTC
systemtap-0.9.9-3.fc10 has been submitted as an update for Fedora 10.
http://admin.fedoraproject.org/updates/systemtap-0.9.9-3.fc10

Comment 7 Frank Ch. Eigler 2009-08-18 14:19:55 UTC
*** Bug 518015 has been marked as a duplicate of this bug. ***

Comment 8 Fedora Update System 2009-08-18 21:11:48 UTC
systemtap-0.9.9-3.fc10 has been pushed to the Fedora 10 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 9 Fedora Update System 2009-08-18 21:15:28 UTC
systemtap-0.9.9-3.fc11 has been pushed to the Fedora 11 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.