Skip to contentSkip to conversation

strace package

DISCUSSION Joe deBlaquiere 8 participants 17 messages Jan 12, 2001 – Feb 25, 2001 MIPS

lore
Share & tools
lore
#0 lore raw

Has anybody done a port of strace for linux/mips 2.4??? I'm trying to debug something and need something simple.

Signature · 6 lines
Joe deBlaquiere
Red Hat, Inc.
307 Wynn Drive
Huntsville AL, 35805
voice : (256)-704-9257
fax   : (256)-837-3839
#1 lore raw
Quoted 10 lines · Joe deBlaquiere

Has anybody done a port of strace for linux/mips 2.4??? I'm trying to debug something and need something simple.
--
Joe deBlaquiere
Red Hat, Inc.
307 Wynn Drive
Huntsville AL, 35805
voice : (256)-704-9257
fax : (256)-837-3839

strace is included in the MontaVista HHL distribution. You can find the rpm and srpm under ftp.mvista.com/pub/CDK?? and/or ftp.mvista.com/pub/area51.

Jun

#2 lore raw
Quoted 2 lines · Jun Sun

strace is included in the MontaVista HHL distribution. You can find the rpm and srpm under ftp.mvista.com/pub/CDK?? and/or ftp.mvista.com/pub/area51.

Thanks for the pointer.

Signature · 3 lines
+  Maciej W. Rozycki, Technical University of Gdansk, Poland   +
+--------------------------------------------------------------+
+        e-mail: [email protected], PGP key available        +
#3 lore raw
In reply to Jun Sun
Quoted 2 lines · Previously Jun Sun

strace is included in the MontaVista HHL distribution. You can find the rpm and srpm under ftp.mvista.com/pub/CDK?? and/or ftp.mvista.com/pub/area51.

Do you happen to know if those have any patches that are not already in CVS?

Wichert.

Signature · 4 lines
  _________________________________________________________________
 /       Nothing is fool-proof to a sufficiently talented fool     \
| [email protected]                  http://www.liacs.nl/~wichert/ |
| 1024D/2FA3BC2D 576E 100B 518D 2F16 36B0  2805 3CB8 9250 2FA3 BC2D |
#4 lore raw
In reply to Joe deBlaquiere
Quoted 11 lines · Joe deBlaquiere

Has anybody done a port of strace for linux/mips 2.4??? I'm trying to debug something and need something simple.

Signature · 6 lines
Joe deBlaquiere
Red Hat, Inc.
307 Wynn Drive
Huntsville AL, 35805
voice : (256)-704-9257
fax   : (256)-837-3839

There is a debian package of strace for mips in ftp://ftp.rfc822.org/pub/local/debian-mips/packages/. It is working with linux 2.4.

C

Signature · 8 lines
============================================================================
Christoph Martin, Uni-Mainz, Germany
 Internet-Mail:  [email protected]
--------------export-a-crypto-system-sig -RSA-3-lines-PERL------------------
#!/usr/bin/perl -sp0777i<X+d*lMLa^*lN%0]dsXx++lMlN/dsM0<j]dsj
$/=unpack('H*',$_);$_=`echo 16dio\U$k"SK$/SM$n\EsN0p[lN*1
lK[d2%Sa2/d0$^Ixp"|dc`;s/\W//g;$_=pack('H*',/((..)*)$/)
#what's this? see http://www.dcs.ex.ac.uk/~aba/rsa/
#5 lore raw
Quoted 3 lines · Christoph Martin

There is a debian package of strace for mips in ftp://ftp.rfc822.org/pub/local/debian-mips/packages/. It is working with linux 2.4.

And the sources are at...?

Signature · 3 lines
+  Maciej W. Rozycki, Technical University of Gdansk, Poland   +
+--------------------------------------------------------------+
+        e-mail: [email protected], PGP key available        +
#6 lore raw
Quoted 5 lines · Maciej W. Rozycki
Quoted 3 lines

There is a debian package of strace for mips in ftp://ftp.rfc822.org/pub/local/debian-mips/packages/. It is working with linux 2.4.

And the sources are at...?

See strace.sourceforge.net.

Ralf

#7 lore raw
Quoted 7 lines · Ralf Baechle
Quoted 5 lines
Quoted 3 lines

There is a debian package of strace for mips in ftp://ftp.rfc822.org/pub/local/debian-mips/packages/. It is working with linux 2.4.

And the sources are at...?

See strace.sourceforge.net.

I mean patches for MIPS, of course. Strace 4.2 does not work for MIPS
out of the box. The proper source still appears to be
http://www.liacs.nl/~wichert/strace/, BTW.

Signature · 3 lines
+  Maciej W. Rozycki, Technical University of Gdansk, Poland   +
+--------------------------------------------------------------+
+        e-mail: [email protected], PGP key available        +
#8 lore raw
Quoted 11 lines · Maciej W. Rozycki
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines

There is a debian package of strace for mips in ftp://ftp.rfc822.org/pub/local/debian-mips/packages/. It is working with linux 2.4.

And the sources are at...?

See strace.sourceforge.net.

I mean patches for MIPS, of course. Strace 4.2 does not work for MIPS
out of the box. The proper source still appears to be
http://www.liacs.nl/~wichert/strace/, BTW.

Wiggy somewhen gave me write access to the strace source some time ago, so I assume that the stuff on sourceforge is now the official CVS. For MIPS I was using some CVS snapshot which was working for me out of the box after I checked in some fixes. But that's again already some time ago, things may have changed since then.

Ralf

#9 lore raw
Quoted 5 lines · Ralf Baechle

Wiggy somewhen gave me write access to the strace source some time ago, so I assume that the stuff on sourceforge is now the official CVS. For MIPS I was using some CVS snapshot which was working for me out of the box after I checked in some fixes. But that's again already some time ago, things may have changed since then.

Well, here is most of the information available from the site...

Welcome to http://strace.sourceforge.net/

We're Sorry but this Project hasn't yet uploaded their personal
webpage yet.
Please check back soon for updates or visit SourceForge

Where is the CVS you refer to? A working strace would help me a lot.

Maciej

Signature · 3 lines
+  Maciej W. Rozycki, Technical University of Gdansk, Poland   +
+--------------------------------------------------------------+
+        e-mail: [email protected], PGP key available        +
#11 lore raw
Quoted 4 lines · On Mon, 22 Jan 2001, [iso-8859-1] Augusto César Radtke wrote:
Quoted 1 line

Where is the CVS you refer to? A working strace would help me a lot.

http://sourceforge.net/projects/strace
http://sourceforge.net/cvs/?group_id=2861

Thanks a lot -- these do work!

Signature · 3 lines
+  Maciej W. Rozycki, Technical University of Gdansk, Poland   +
+--------------------------------------------------------------+
+        e-mail: [email protected], PGP key available        +
#12 lore raw
In reply to Maciej W. Rozycki
Quoted 7 lines · Previously Maciej W. Rozycki

Well, here is most of the information available from the site...

Welcome to http://strace.sourceforge.net/

We're Sorry but this Project hasn't yet uploaded their personal
webpage yet.
Please check back soon for updates or visit SourceForge

Hmm, I guess I should fix that :)

I've started looking at strace again after not having had any time for it in a while, and strace 4.3 should appear in a week or so. If there are any problems with the MIPS support now is the time to tell me. I'm especially interesting in strace reporting umoven() errors while tracing a program.

Wichert.

Signature · 4 lines
  _________________________________________________________________
 /       Nothing is fool-proof to a sufficiently talented fool     \
| [email protected]                  http://www.liacs.nl/~wichert/ |
| 1024D/2FA3BC2D 576E 100B 518D 2F16 36B0  2805 3CB8 9250 2FA3 BC2D |
#13 lore raw
Quoted 7 lines · Wichert Akkerman

Hmm, I guess I should fix that :)

I've started looking at strace again after not having had any time for it in a while, and strace 4.3 should appear in a week or so. If there are any problems with the MIPS support now is the time to tell me. I'm especially interesting in strace reporting umoven() errors while tracing a program.

Conincidentally I today built strace-cvs for MIPS before receiving your message and found it to be working just fine. The only bug which my last several month old build from an older snapshot doesn't have is that syscall 4129 (from memory, number may be incorrect) gets decoded as a syscall with very many arguments (~ 20). Will have to look into it.

Ralf

#14 lore raw
Quoted 2 lines · Previously Ralf Baechle

Conincidentally I today built strace-cvs for MIPS before receiving your message and found it to be working just fine.

Good!

Quoted 3 lines

The only bug which my last several month old build from an older snapshot doesn't have is that syscall 4129 (from memory, number may be incorrect) gets decoded as a syscall with very many arguments (~ 20).

Hmm, 4129 is delete_module, which is handled exactly like sys_chdir (syscal with one string argument). Looking at the syscall table I can't find any syscall with that many argument, the highest number I can find is 6 (mmap, recvfrom and sendto).

Wichert.

Signature · 4 lines
  _________________________________________________________________
 /       Nothing is fool-proof to a sufficiently talented fool     \
| [email protected]                  http://www.liacs.nl/~wichert/ |
| 1024D/2FA3BC2D 576E 100B 518D 2F16 36B0  2805 3CB8 9250 2FA3 BC2D |
#15 lore raw
Quoted 7 lines · Wichert Akkerman
Quoted 2 lines · Previously Ralf Baechle

Conincidentally I today built strace-cvs for MIPS before receiving your message and found it to be working just fine.

Good!

I wonder whether it is my sillines, or something is wrong with strace or my mips tools. Checked out clean version from cvs.strace.sourceforge.net:/cvsroot/strace, run configure "NATIVELY" on mips32 system and got a whole bunch of errors on strace.c :

gcc -Wall -DHAVE_CONFIG_H -I. -Ilinux/mips -I./linux/mips -Ilinux
-I./linux -D_GNU_SOURCE -c syscall.c
syscall.c: In function `sys_sysmips':
syscall.c:103: parameter sysent0' is initialized syscall.c:106: parameter nsyscalls0' is initialized syscall.c:132: parameter `errnoent0' is initialized
In file included from syscall.c:133:
linux/mips/errnoent.h:1: warning: initialization from incompatible pointer type linux/mips/errnoent.h:2: warning: excess elements in scalar initializer after `errnoent0'
linux/mips/errnoent.h:3: warning: excess elements in scalar initializer after `errnoent0'
linux/mips/errnoent.h:4: warning: excess elements in scalar initializer after `errnoent0'
linux/mips/errnoent.h:5: warning: excess elements in scalar initializer after `errnoent0'
linux/mips/errnoent.h:6: warning: excess elements in scalar initializer after `errnoent0'
... < aroud 1000 errors like these >
syscall.c:135: parameter `nerrnos0' is initialized syscall.c:158: warning: parameter names (without types) in function declaration
syscall.c:158: parse error before `int'
syscall.c:158: declaration for parameter `set_personality' but no such parameter
syscall.c:154: declaration for parameter `current_personality' but no such parameter
syscall.c:152: declaration for parameter nerrnos' but no such parameter syscall.c:151: declaration for parameter errnoent' but no such parameter
syscall.c:135: declaration for parameter `nerrnos0' but no such parameter
syscall.c:132: declaration for parameter `errnoent0' but no such parameter
syscall.c:123: declaration for parameter `nsyscalls' but no such parameter
syscall.c:122: declaration for parameter sysent' but no such parameter syscall.c:106: declaration for parameter nsyscalls0' but no such parameter
syscall.c:103: declaration for parameter sysent0' but no such parameter linux/syscall.h:183: declaration for parameter sys_capset' but no such parameter
linux/syscall.h:183: declaration for parameter `sys_capget' but no such parameter
linux/syscall.h:182: declaration for parameter `sys_utimes' but no such parameter
linux/syscall.h:182: declaration for parameter `sys_getdtablesize' but no such parameter
linux/syscall.h:182: declaration for parameter `sys_gethostname' but no such parameter
linux/syscall.h:182: declaration for parameter `sys_setpgrp' but no such parameter
syscall.c:160: `personality' undeclared (first use this function) syscall.c:160: (Each undeclared identifier is reported only once syscall.c:160: for each function it appears in.)

Here's the info:
[michaels@verdi strace]$ gcc --version
egcs-2.90.27 980315 (egcs-1.0.2
release)
[michaels@verdi strace]$ rpm -q glibc
glibc-2.0.6-4
[michaels@verdi strace]$ uname -a
Linux verdi.home.krftech.com 2.2.12-MIPS-01.05 #1 Thu Sep 7 11:36:42 CEST 2000 mips unknown
[michaels@verdi strace]$ cat /proc/cpuinfo
cpu : MIPS
cpu model : MIPS 5Kc V0.1
system type : unknown unknown
BogoMIPS : 39.94
byteorder : big endian
unaligned accesses : 0
wait instruction : no
microsecond timers : no
extra interrupt vector : yes
hardware watchpoint : yes
VCED exceptions : not available
VCEI exceptions : not
available

Exactly same code compiles on i386 silently and clean. Audience, please, what seems to be my problem?

Sincerely yours,
Michael Shmulevich
______________________________________
Software Developer
Jungo - R&D
email: [email protected]
web: http://www.jungo.com
Phone: 1-877-514-0537(USA) +972-9-8859365(Worldwide) ext. 233
Fax: 1-877-514-0538(USA) +972-9-8859366(Worldwide)

#16 lore raw
Quoted 2 lines · On Sun, Feb 25, 2001 at 11:37:44AM +0200, [email protected] wrote:

Exactly same code compiles on i386 silently and clean. Audience, please, what seems to be my problem?

I've used glibc 2.1.95.

Ralf