opreport crashes with "error: basic_string::erase"

Bug #310824 reported by Magnus Hjorth
18
This bug affects 2 people
Affects Status Importance Assigned to Milestone
oprofile (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: oprofile

I had problems with opreport crashing with the message "error: basic_string::erase". I'm on Intrepid, but I also tried building the package source from Jaunty with the same result.

This seems to be the exact same bug that is described in upstream bug #1930788, which seems to be fixed in 0.9.4.

http://sourceforge.net/tracker/index.php?func=detail&aid=1930788&group_id=16191&atid=116191

Adding the attached patch (taken from the bug above) to the package source's patch set and rebuilding the package made the problem go away.

Related branches

Revision history for this message
Magnus Hjorth (magnus-hjorth) wrote :
Revision history for this message
thsths (thomas-steffen+ubuntu) wrote :

I am using the AMD64 version of Ubuntu 8.10, and I have run into exactly the same problem.

The patch fixes it for me, although I have no idea whether there are any side effects.

Another strange issue that I observed is that I cannot compile the version for 8.10 (oprofile_0.9.3-1.1ubuntu2.dsc) on 8.10. I get

bfd_support.cpp:86: error: 'strlen' was not declared in this scope

which according to google is an issue with gcc 4.3. The source package from 9.04 to be (oprofile_0.9.3-2ubuntu1.dsc) compiles fine.

Revision history for this message
Benjamin Herrenschmidt (benh-kernel) wrote :

I confirm here, oprofile doesn't work for me at all on i386 due to that error:

$ sudo opcontrol --setup --no-vmlinux
$ sudo opcontrol --start

 <do things>

$ sudo opcontrol --stop
$ opreport -l
opreport error: basic_string::erase

Please fix, the package is basically unuseable. Another thing while at it is do we have a package
containing the plain "vmlinux" binary image of the kernel (the uncompressed ELF image) ? This
is what oprofile needs to be fed to be able to output kernel samples.

Revision history for this message
Stephane Belmon (sbelmon) wrote :

The patch Magnus's mentioned also fixes it for me.

Revision history for this message
Alexander Sashnov (sashnov) wrote :

curl http://launchpadlibrarian.net/20680947/anon-map-names.patch | md5sum
66a42965f1f0e160857b3def2d7a3258 -

this patch is helpfull.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package oprofile - 0.9.4+cvs20090629-2ubuntu1

---------------
oprofile (0.9.4+cvs20090629-2ubuntu1) karmic; urgency=low

  * Merge from debian unstable (LP: #392346), remaining changes:
    - debian/control:
      + Add LPIA architecture.
      + Build-depend on autoconf, ppu-binutils [powerpc] and quilt.
    - debian/patches/config-in-etc.patch, debian/oprofile-gui.postinst:
      + Move configuration file to /etc.
    - debian/patches/oprofile-sdk3-m4.diff:
      + Change m4 file for SDK build process.
    - debian/patches/oprofile-sdk3-stackcode.diff:
      + Add changes to allow profiling of code that the SPU runtime
        dynamically creates and runs on the stack.
    - debian/patches/unstatic_libbfd.patch:
      + Link bfd dynamically.
    - debian/rules:
      + Add patch/unpatch targets in debian/rules.
      + On powerpc configure --with-target=cell-be.
  * Changes dropped:
    - debian/patches/libc_open.patch: fixed upstream.
    - debian/patches/oprofile-sdk3-opcontrol.diff: fixed upstream.
  * Fixes LP: #310824, LP: #322074.

 -- Chris Coulson <email address hidden> Mon, 27 Jul 2009 00:30:16 +0100

Changed in oprofile (Ubuntu):
status: New → Fix Released
Revision history for this message
Pierre GAUTHIER (pierre-gauthier) wrote :

I am using Ubuntu 8.1 and Oprofile 0.9.5 and have the same error.

Pierre.

Revision history for this message
Behrooz (behroozn) wrote :

I am also getting the same error using Ubuntu 9.04 and Oprofile 0.9.4cvs Apr 20 2010. I can find a bunch of "{anon:/" under:
/var/lib/oprofile/samples/current/

Any clue?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.