Skip to contentSkip to conversation

ltrace hangings

Buildroot Maxime Ripard 2 participants 3 messages Feb 28, 2012 – Feb 29, 2012

lore
Share & tools
lore
#0 lore raw

Hi everyone,

I'm having a hard time here using ltrace with buildroot or crosstool-ng.

Basically, with a crosstool-NG 1.13.4, with the sample arm-unknown-linux-gnueabi (so uclibc 0.9.30.2), I get :
__uClibc_main(52956, 2, 0xbec42db4, 47280, 521292 and it hangs.

Same thing with a toolchain built by buildroot and with uclibc 0.9.32.

Finally, I tried still with buildroot, but using the latest codebench glibc toolchain, I get:

# ltrace cat /proc/self/cmdline
__libc_start_main(53812, 2, 0xbefeedb4, 518624, 518824

Is it a wild guess to think that ltrace 0.5.3 is buggy, or am I doing something wrong ?

Signature · 4 lines
Maxime Ripard, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
#1 lore raw

Maxime, All,

Quoted 9 lines · On Tuesday 28 February 2012 17:47:40 Maxime Ripard wrote:

I'm having a hard time here using ltrace with buildroot or crosstool-ng.

Basically, with a crosstool-NG 1.13.4, with the sample arm-unknown-linux-gnueabi (so uclibc 0.9.30.2), I get :
__uClibc_main(52956, 2, 0xbec42db4, 47280, 521292 and it hangs.

Same thing with a toolchain built by buildroot and with uclibc 0.9.32.

Quoted 8 lines

Finally, I tried still with buildroot, but using the latest codebench glibc toolchain, I get:

# ltrace cat /proc/self/cmdline
__libc_start_main(53812, 2, 0xbefeedb4, 518624, 518824

Is it a wild guess to think that ltrace 0.5.3 is buggy, or am I doing something wrong ?

0.5.3 is now a bit old (2 years), and there has been a new release about four months ago:
http://anonscm.debian.org/gitweb/?p=collab-maint/ltrace.git;a=summary

Maybe it's time we upgrade crosstool-NG to this new version...

Also, there seems to be a revamp in the process:
http://lists.alioth.debian.org/pipermail/ltrace-devel/2012-January/000540.html

Regards,
Yann E. MORIN.

Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
#2 lore raw

Hi Yann,

Quoted 16 lines · Yann E. MORIN
Quoted 15 lines · On Tuesday 28 February 2012 17:47:40 Maxime Ripard wrote:

I'm having a hard time here using ltrace with buildroot or crosstool-ng.

Basically, with a crosstool-NG 1.13.4, with the sample arm-unknown-linux-gnueabi (so uclibc 0.9.30.2), I get :
__uClibc_main(52956, 2, 0xbec42db4, 47280, 521292 and it hangs.

Same thing with a toolchain built by buildroot and with uclibc 0.9.32.

Finally, I tried still with buildroot, but using the latest codebench glibc toolchain, I get:

# ltrace cat /proc/self/cmdline
__libc_start_main(53812, 2, 0xbefeedb4, 518624, 518824
Quoted 8 lines
Quoted 2 lines

Is it a wild guess to think that ltrace 0.5.3 is buggy, or am I doing something wrong ?

0.5.3 is now a bit old (2 years), and there has been a new release about four months ago:
http://anonscm.debian.org/gitweb/?p=collab-maint/ltrace.git;a=summary

Maybe it's time we upgrade crosstool-NG to this new version...

I've upgraded the package in buildroot to 0.6.0, and same problem here on ARM. However, it works fine on x86 either using directly their build-system and Ubuntu's gcc or using buildroot's internal toolchain for x86 (with uClibc).

It seems like the bug is probably more arch-specific than I thought.

Signature · 4 lines
Maxime Ripard, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com