oprofile: opcontrol uses /bin/sh but on ubuntu should use /bin/bash

Monty Taylor mtaylor at mysql.com
Wed Jan 23 16:31:00 UTC 2008


Package: oprofile
Version: 0.9.3-1ubuntu1
Severity: grave
Justification: renders package unusable


oprofile has a control script, opcontrol. It lists /bin/sh in the top
line, but because of the dash conversion, this causes the script to not
so much work.

mtaylor at solace:~/src/ndb-connectors/devel$ sudo opcontrol --start-daemon
Using default event: CPU_CLK_UNHALTED:100000:0:1:1
/usr/bin/opcontrol: 1: arith: syntax error: "NR_CHOSEN - 1"
No events given.

If I change it to /bin/bash, it works:

mtaylor at solace:~/src/ndb-connectors/devel$ sudo opcontrol --start-daemon
Using default event: CPU_CLK_UNHALTED:100000:0:1:1
Using 2.6+ OProfile kernel interface.
Reading module info.
Using log file /var/lib/oprofile/samples/oprofiled.log
Daemon started.


-- System Information:
Debian Release: lenny/sid
  APT prefers gutsy-updates
  APT policy: (500, 'gutsy-updates'), (500, 'gutsy-security'), (500,
'gutsy-backports'), (500, 'gutsy')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.22-14-generic (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages oprofile depends on:
ii  binutils                2.18-0ubuntu3    The GNU assembler, linker
and bina
ii  debconf [debconf-2.0]   1.5.14ubuntu1    Debian configuration
management sy
ii  libc6                   2.6.1-1ubuntu10  GNU C Library: Shared libraries
ii  libgcc1                 1:4.2.1-5ubuntu4 GCC support library
ii  libpopt0                1.10-3build1     lib for parsing cmdline
parameters
ii  libstdc++6              4.2.1-5ubuntu4   The GNU Standard C++ Library v3

oprofile recommends no packages.

-- no debconf information




More information about the ubuntu-users mailing list