Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Thorsten Kranzkowski <th@Marvin.DL8BCU.ampr.org>
To: axp-list@redhat.com
Cc: rth@twiddle.net
Subject: Re: axp patch for 2.3.41
Date: Wed, 2 Feb 2000 00:17:08 +0000	[thread overview]
Message-ID: <20000202001708.A393@Marvin.DL8BCU.ampr.org> (raw)
In-Reply-To: <20000201121646.B646@twiddle.net>; from rth@twiddle.net on Tue, Feb 01, 2000 at 12:16:46PM -0800

On Tue, Feb 01, 2000 at 12:16:46PM -0800, Richard Henderson wrote:
> On Tue, Feb 01, 2000 at 04:00:25PM +0000, Thorsten Kranzkowski wrote:
> > DU-netscape (stuck right after exec, with 100% cpu-time).
> 
> Can you strace it?

of course :-) :


Marvin:~$ uname -a
Linux Marvin 2.3.42 #1 Tue Feb 1 12:22:41 UTC 2000 alpha unknown
Marvin:~$ export LD_LIBRARY_PATH=/usr/shlib
Marvin:~$ export MOZILLA_HOME=/usr/local/netscape
Marvin:~$ ldd /usr/local/netscape/netscape
        not a dynamic executable
Marvin:~$ file /usr/local/netscape/netscape
/usr/local/netscape/netscape: COFF format alpha executable paged dynamically linked stripped - version 3.11-10
Marvin:~$ strace /usr/local/netscape/netscape
execve("/usr/local/netscape/netscape", ["/usr/local/netscape/netscape"], [/* 29
vars */]) = 0

## Unfortunately that's all ... 
## Some other info you might find interesting:

Marvin:~$ top
 11:16pm  up 5 min,  3 users,  load average: 0.75, 0.36, 0.15
43 processes: 41 sleeping, 2 running, 0 zombie, 0 stopped
CPU states: 11.3% user, 88.6% system,  0.0% nice,  0.0% idle
Mem:  122256K av,  72944K used,  49312K free,      0K shrd,   2752K buff
Swap: 263864K av,      0K used, 263864K free                 36168K cached

  PID USER     PRI  NI  SIZE  RSS SHARE STAT  LIB %CPU %MEM   TIME COMMAND
  295 th        18   0    16   16     8 R       0 94.9  0.0   1:15 netscape
  302 th         9   0  2064 2064  1720 R    1984  4.3  0.8   0:02 top
  234 root       0   0   808  808   680 S     728  0.6  0.3   0:00 gpm
    1 root       0   0   856  856   720 S     784  0.0  0.3   0:06 init
    2 root       0   0     0    0     0 SW      0  0.0  0.0   0:00 kswapd
[...]

## Now I started 3 other netscapes so I can catch a PC-address:


<SysRq-T>:
strace    S fffffc000032bb0c  7056   294    262   295  (NOTLB)
   sig: 0 0000000000000000 0000000000000000 : X
netscape  R fffffc0000310e74   632   295    294        (NOTLB)
   sig: 0 0000000000000000 0000000000000000 : X
netscape  R fffffc0000310e74     0   314    265        (NOTLB)
   sig: 0 0000000000000000 0000000000000000 : X
netscape  R   current task       0   321    266        (NOTLB)
   sig: 0 0000000000000000 0000000000000000 : X
netscape  R fffffc0000310e74     0   328    267        (NOTLB)
   sig: 0 0000000000000000 0000000000000000 : X

Marvin:/usr/src/linux-2.3.42-work$ grep fffffc0000310e System.map
fffffc0000310e10 t syscall_error
fffffc0000310e34 t ret_success
fffffc0000310e40 t signal_return
fffffc0000310e60 t reschedule
fffffc0000310e88 t sys_sigreturn
fffffc0000310ea8 t sys_rt_sigreturn
fffffc0000310ec8 t sys_sigsuspend
fffffc0000310ee8 t sys_rt_sigsuspend

Marvin:/proc/295$ cat maps
000000011fffe000-0000000120000000 rwxp 0000000000000000 00:00 0
000003ff80000000-000003ff80020000 r-xp 0000000000000000 08:01 7832       /sbin/loader
000003ffc0000000-000003ffc0002000 rwxp 0000000000020000 08:01 7832       /sbin/loader
000003ffc0002000-000003ffc0004000 rwxp 0000000000000000 00:00 0

Marvin:/proc/295$ cat status
Name:   netscape
State:  R (running)
Pid:    295
PPid:   294
Uid:    101     101     101     101
Gid:    100     100     100     100
FDSize: 64
Groups: 100 11 12 16 40 41 80 81 82 84 85 200
VmSize:        8 kB
VmLck:         0 kB
VmRSS:        16 kB
VmData:        8 kB
VmStk:         8 kB
VmExe:       128 kB
VmLib:         0 kB
SigPnd: 0000000000000000
SigBlk: 0000000000000000
SigIgn: 0000000000000000
SigCgt: 0000000000000000
CapInh: 00000000fffffeff
CapPrm: 0000000000000000
CapEff: 0000000000000000


## Calling /sbin/loader directly shows similar behaviour.

[Marvin:/sbin#] gdb loader
GNU gdb 4.18
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "alpha-unknown-linux-gnu"...
(no debugging symbols found)...
(gdb) info files
Symbols from "/sbin/loader".
Local exec file:
        `/sbin/loader', file type ecoff-littlealpha.
        Entry point: 0x3ff80005cd0
        0x3ff80005cd0 - 0x3ff8001f160 is .text
        0x3ffc0000000 - 0x3ffc0000540 is .data
        0x3ff80000270 - 0x3ff80005cd0 is .rconst
        0x3ffc0000540 - 0x3ffc00017d0 is .lita
        0x3ffc00017d0 - 0x3ffc0001920 is .sdata
        0x3ffc0001920 - 0x3ffc0001d30 is .sbss
        0x3ffc0001d30 - 0x3ffc0002490 is .bss
(gdb) run
Starting program: /sbin/loader
warning: shared library handler failed to enable breakpoint

Program received signal SIGTSTP, Stopped (user).
warning: Hit heuristic-fence-post without finding
warning: enclosing function for address 0x3ff80005cd0
This warning occurs if you are debugging a function without any symbols
(for example, in a stripped executable).  In that case, you may wish to
increase the size of the search with the `set heuristic-fence-post' command.

Otherwise, you told GDB there was a function where there isn't one, or
(more likely) you have encountered a bug in GDB.
0x3ff80005cd0 in ?? ()
(gdb)

## After 'run' I waited about 20 seconds, then pressed ^z . The PC is still at
## the entry point ??!!
##
## With kernel 2.3.10 /sbin/loader shows a message (that it doesn't want to
## be called directly :-) and netscape works just fine.
##
## Anything else that I can test?

Thorsten

-- 
| Thorsten Kranzkowski         Internet: dl8bcu@gmx.net                        |
| Mobile: ++49 161 7210230        Snail: Niemannsweg 30, 49201 Dissen, Germany |
| Ampr: dl8bcu@db0lj.#rpl.deu.eu, dl8bcu@marvin.dl8bcu.ampr.org [44.130.8.19]  |


  reply	other threads:[~2000-02-02  0:35 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-02-01 10:28 axp patch for 2.3.41 Richard Henderson
2000-02-01 13:51 ` Dr. Andrew Almond
2000-02-01 14:19   ` Ivan Kokshaysky
2000-02-01 16:00     ` Thorsten Kranzkowski
2000-02-01 20:16       ` Richard Henderson
2000-02-02  0:17         ` Thorsten Kranzkowski [this message]
2000-02-02  7:59           ` Jean-Baptiste Vignaud
2000-02-04  8:14           ` Mysterious exec bug [Re: axp patch for 2.3.41] Ivan Kokshaysky
2000-02-01 20:16     ` axp patch for 2.3.41 Richard Henderson
2000-02-02 10:05       ` Ivan Kokshaysky
2000-02-02 19:52         ` Richard Henderson
2000-02-02 21:37           ` Peter Rival
2000-02-03  3:44         ` Richard Henderson
2000-02-03  4:32           ` Mitchell Blank Jr
2000-02-03  9:50           ` Ivan Kokshaysky
2000-02-03 10:23             ` Mitchell Blank Jr
2000-02-03 13:50           ` Peter Rival
2000-02-03 20:36             ` Peter Rival
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox