functracer fails to run on Panda

Bug #832686 reported by Avik Sil
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linaro Ubuntu
Fix Released
Wishlist
Riku Voipio

Bug Description

maemo functracer tool fails to run on Panda:

# functracer -r -s uname
version=2.0, arch=armv7l, timestamp=24.08.2011 11:23:41, process=uname, pid=1364, backtrace depth=10, origin=functracer 1.2.1,
<1> : memory (memory allocation in bytes)
Process/Thread 1364 (uname) was created
functracer: ssol.c:89: syscall_remote: Assertion `ret == proc->pid && ((((__extension__ (((union { __typeof(status) __in; int __i; }) { .__in = (status) }).__i))) & 0xff) == 0x.
Aborted

Changed in linaro-ubuntu:
importance: Undecided → Medium
status: New → Confirmed
milestone: none → 11.08
Changed in linaro-ubuntu:
milestone: 11.08 → 11.09
Changed in linaro-ubuntu:
milestone: 11.09 → 11.10
Fathi Boudra (fboudra)
Changed in linaro-ubuntu:
milestone: 11.10 → 11.11
Changed in linaro-ubuntu:
assignee: nobody → Avik Sil (aviksil)
milestone: 11.11 → none
Revision history for this message
Eero Tamminen (oak-helsinkinet) wrote :

Siarhei had a Panda board with Gentoo where he could reproduce and fix this issue[1]. The new Functracer v1.4 release has now proper Thumb2 support:
  http://maemo.gitorious.org/maemo-tools/functracer

Could you test that Functracer works now fine also with Ubuntu ARM?

[1] The issue was completely broken Thumb instruction set support. Functracer originates from Maemo & MeeGo/Harmattan which don't build for Thumb instruction set like Ubuntu does, so Functracer's preliminary Thumb support was besides broken, also completely untested.

Fathi Boudra (fboudra)
Changed in linaro-ubuntu:
milestone: none → 12.06
Revision history for this message
Fathi Boudra (fboudra) wrote :

It requires libunwind, which isn't built on Ubuntu Precise/ARMHF.

Revision history for this message
Avik Sil (aviksil) wrote :

libunwind is not available for armel/armhf

Revision history for this message
Fathi Boudra (fboudra) wrote :

Set importance to wishlist. We need to make libunwind available in our PPA and then retry functracer.

Changed in linaro-ubuntu:
assignee: Avik Sil (aviksil) → Fathi Boudra (fboudra)
importance: Medium → Wishlist
milestone: 12.06 → 12.07
Revision history for this message
Eero Tamminen (oak-helsinkinet) wrote :

> It requires libunwind, which isn't built on Ubuntu Precise/ARMHF.
...
> libunwind is not available for armel/armhf

Debian has an ancient v0.99 libunwind version, which doesn't support ARM.

You need to update the code in the Debian package to a newer libunwind release:
  https://savannah.nongnu.org/news/?group=libunwind

Which do have proper ARM support.

> We need to make libunwind available in our PPA and then retry functracer.

Functracer sources contain a dejagnu based testsuite for checking that catching the function calls and the basic functionality works.

Changed in linaro-ubuntu:
milestone: 12.07 → 12.08
Changed in linaro-ubuntu:
assignee: Fathi Boudra (fboudra) → Riku Voipio (riku-voipio)
milestone: 12.08 → 12.09
Revision history for this message
Riku Voipio (riku-voipio) wrote :

I've verified this fixed with the Functracer 1.4 just pushed to linaro overlay ppa:

https://launchpad.net/~linaro-maintainers/+archive/overlay/

sp-rtrace and libunwind was updated at the same time.

Changed in linaro-ubuntu:
status: Confirmed → Fix Committed
Changed in linaro-ubuntu:
status: Fix Committed → Fix Released
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.