Reply
Thread Tools
Posts: 2,802 | Thanked: 4,491 times | Joined on Nov 2007
#11
Originally Posted by AapoRantalainen View Post
I think solution is installing package: libc6-dbg
Probably, I do have that installed on the N810. Perhaps the package should depend on it to avoid confusion.
 

The Following User Says Thank You to lma For This Useful Post:
Posts: 838 | Thanked: 3,384 times | Joined on Mar 2009
#12
Originally Posted by lma View Post
Probably, I do have that installed on the N810. Perhaps the package should depend on it to avoid confusion.
Package libc6-dbg is on
deb http://repository.maemo.org/ fremantle/sdk free

Installing that and valgrind works.

Package will be messy because it depends another 'non-trivial' repository.

I started packaging: http://maemo.org/packages/view/valgrind-3.6.0/

It is version from Ubuntu 10.10. (Not optified). Some mystery reason it doesn't include compiled binaries in the package (=package is totally useless at this moment).
 

The Following User Says Thank You to AapoRantalainen For This Useful Post:
Posts: 838 | Thanked: 3,384 times | Joined on Mar 2009
#13
At last I got this working. Package valgrind-3.6.0 is now on extras-devel.

It is valgrind-3.6.1 from http://valgrind.org/downloads/
It doesn't contain any code modifications, only configure is tuned [http://permalink.gmane.org/gmane.com...valgrind/10563
Default suppression files are from debian-valgrind-3.6.0.

Download size: 30MB
Installed size: 80MB (optified, it install only couple of small files to rootfs)

And yes, it is slow. According to the documentation "the slowdown factor can range from 5--100"

Link to the bug tracker:
http://valgrind.org/support/bug_reports.html
 

The Following 2 Users Say Thank You to AapoRantalainen For This Useful Post:
ArnimS's Avatar
Posts: 1,107 | Thanked: 720 times | Joined on Mar 2007 @ Germany
#14
hi thanks for this!

[EDIT] when i first installed package didn't work with current libc6/libc6-dbg on n900

but then i downloaded and ran

dpkg -i libc6-dbg_2.5.1-1eglibc27\+0m5_armel.deb
dpkg -i valgrind-3.6.0_3.6.1-maemo1_armel.deb

and install went fine. dunno why - heh

[EDIT2] however using 'callgrind' gives me errors
Callgrind: jumps.c:164 (new_jcc): Assertion '(0 <= jmp) && (jmp <= from->bb->cjmp_count)' failed.

it seems to happen when executing a libphysfs without debugging symbols (?)

this bugreport and patch may be relevant:
http://permalink.gmane.org/gmane.com...nd.devel/12835

Last edited by ArnimS; 2011-04-16 at 01:20. Reason: suddenly worked
 
Posts: 838 | Thanked: 3,384 times | Joined on Mar 2009
#15
Originally Posted by ArnimS View Post

when i first installed package didn't work with current libc6/libc6-dbg on n900

but then i downloaded and ran

dpkg -i libc6-dbg_2.5.1-1eglibc27\+0m5_armel.deb
dpkg -i valgrind-3.6.0_3.6.1-maemo1_armel.deb

and install went fine.
I have flashed my phone and now installed valgrind as wiki says (I just started http://wiki.maemo.org/Documentation/...lgrind_on_n900 )

Row
Code:
deb http://repository.maemo.org/ fremantle/sdk free
to the file /etc/apt/sources.list.d/hildon-application-manager.list

And then run:
Code:
apt-get update 
apt-get install valgrind-3.6.0
And it works.

Originally Posted by ArnimS View Post
however using 'callgrind' gives me errors
Callgrind: jumps.c:164 (new_jcc): Assertion '(0 <= jmp) && (jmp <= from->bb->cjmp_count)' failed.

it seems to happen when executing a libphysfs without debugging symbols (?)

What is smallest case to trigger this?
I tested
Code:
valgrind --tool=callgrind ls
without errors.

Originally Posted by ArnimS View Post
this bugreport and patch may be relevant:
http://permalink.gmane.org/gmane.com...nd.devel/12835
It seems that patch is just a workaround. Maybe it will be fixed on 3.6.1? I will run valgrind-tests and report issues to the upstream.
 
Reply


 
Forum Jump


All times are GMT. The time now is 08:17.