Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Re: gdb
       [not found] <torvalds@cs.Helsinki.FI>
@ 1996-05-08 17:19 ` Eric Youngdale
  1996-05-08 18:24 ` gdb Eric Youngdale
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 6+ messages in thread
From: Eric Youngdale @ 1996-05-08 17:19 UTC (permalink / raw)


>Umm, while I agree that it might make it a lot easier to debug things on
the
>alpha, I hope nobody writes a patch like that for gdb. The reason I hope
>that is that I hope that it will be unnecessary. The _correct_ way to
handle >it is to never generate those d*mn instructions in the first place.
We need >an optimizing linker that gets rid of them and makes it into a
single "bsr"
>instruction instead.

	This wouldn't be a hard optimization, and in fact it would make
shared libraries a bit easier for those cases where you can safely call
without going through a PLT (i.e. we are not using up a valuable .got
slot for a pointer).  It would tend to be used for things like static
functions that we would want to do this in shared libs.   For normal
executables, it is more just a question of whether the branch is in range or
not.

	Remind me about this in about 4 months :-).  I think the actual
code for this would be relatively simple.  Note that we would leave behind
a NOP, since it would be a lot harder for the linker to compress this
out.

	If someone else wants to attempt this they can, of course, and I
can give pointers as to what would be needed.

-Eric

-- 
"The woods are lovely, dark and deep.  But I have promises to keep,
And lines to code before I sleep, And lines to code before I sleep."

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: gdb
       [not found] <torvalds@cs.Helsinki.FI>
  1996-05-08 17:19 ` gdb Eric Youngdale
@ 1996-05-08 18:24 ` Eric Youngdale
  1996-07-21  0:30 ` V2.0.8 Bryan W. Headley
  1996-09-09  9:03 ` Oops with 2.0.18 Martin Cornelius
  3 siblings, 0 replies; 6+ messages in thread
From: Eric Youngdale @ 1996-05-08 18:24 UTC (permalink / raw)


>Also note that the jsr->bsr optimization actually cuts down on the gp
>table quite a lot, so just applying the optimization would also make it
>less likely that we need multiple gp's per binary (I'm not counting
>shared libraries or stuff like that - they obviously have their own
>gp's).

	Actually, the .lita sections are generated by the assembler,
so the optimization would basically mean that there are unused portions
of the file.  The linker is just appending all of the .lita sections
that the assembler generates without removing duplicates, and without
compressing it.

	Frankly, I have doubts as to whether it is really wise
to generate .lita at assembly time (it should be generated by the linker
as required, instead), but I am not yet sure whether it is possible to
defer creation of this section to the linker.

-Eric

-- 
"The woods are lovely, dark and deep.  But I have promises to keep,
And lines to code before I sleep, And lines to code before I sleep."

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: V2.0.8
       [not found] <torvalds@cs.Helsinki.FI>
  1996-05-08 17:19 ` gdb Eric Youngdale
  1996-05-08 18:24 ` gdb Eric Youngdale
@ 1996-07-21  0:30 ` Bryan W. Headley
  1996-09-09  9:03 ` Oops with 2.0.18 Martin Cornelius
  3 siblings, 0 replies; 6+ messages in thread
From: Bryan W. Headley @ 1996-07-21  0:30 UTC (permalink / raw)


On Jul 20, 10:02am, Linus Torvalds wrote:
> Subject: V2.0.8
>
> I put out 2.0.8 which should fix the axp checksum routines (there are
> obviously other fixes there too, ppp fragmentation etc), but it seems
> ftp.funet.fi isn't feeling too well today and it has lost my password or
> something so I'm unable to upload it there. It's on ftp.cs.helsinki.fi,
> though.
>
> I also noticed that my harddisk on "linux.cs.helsinki.fi" (which is where
> I keep the primary development sources) seems to be going, so keep your
> fingers crossed. I thought I'd better upload what I have now, rather than
> notice that I lost everything when I get back to work on Monday..

Linus,

Yeah, and the ftp site at ftp.funet.fi is not feeling well, either! Empty
directories abound. . .

--
To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Oops with 2.0.18
@ 1996-09-06 14:03 Martin Cornelius
  0 siblings, 0 replies; 6+ messages in thread
From: Martin Cornelius @ 1996-09-06 14:03 UTC (permalink / raw)


Just compiled 2.0.18 on my Avanti and tried a recursive copy between filesystems.
After about 1 second i got:

Sep  6 14:31:57 fabserver1 kernel: Unable to handle kernel paging request at virtual address 0000000000f3a121
Sep  6 14:31:57 fabserver1 kernel: swapper(0): Oops 0
Sep  6 14:31:57 fabserver1 kernel: pc = [<fffffc000031a7d0>] ps = 0007
Sep  6 14:31:57 fabserver1 kernel: rp = [<fffffc000033d510>] sp = fffffc0000303c90
Sep  6 14:31:57 fabserver1 kernel: r0=7 r1=40000996711 r2=1 r3=fffffc0004b18a18
Sep  6 14:31:57 fabserver1 kernel: r8=a0
Sep  6 14:31:57 fabserver1 kernel: r16=fffffc00005a3a18 r17=1 r18=a0 r19=2000
Sep  6 14:31:57 fabserver1 kernel: r20=7 r21=7 r22=0 r23=ffffffffffffffff
Sep  6 14:31:57 fabserver1 kernel: r24=2f800000000 r25=6f800000000 r26=fffffc000033d510 r27=fffffc000031a778
Sep  6 14:31:57 fabserver1 kernel: r28=1 r29=fffffc0000463250 r30=fffffc0000303c90
Sep  6 14:31:57 fabserver1 kernel: Code: a5dd8d90  a5bd8d98  47ff041f <a4690000> a5290008  e460002d  a4230000  40205521  e4200003 
Sep  6 14:31:57 fabserver1 kernel: Aiee, killing interrupt handler
Sep  6 14:31:57 fabserver1 kernel: kfree of non-kmalloced memory: fffffc0000442678, next= 0000000000000000, order=0
Sep  6 14:31:57 fabserver1 kernel: kfree of non-kmalloced memory: fffffc0000442660, next= 0000000000000000, order=0
Sep  6 14:31:57 fabserver1 kernel: kfree of non-kmalloced memory: fffffc0000442f80, next= 0000000000000000, order=0

disassembling pc and rp:

(gdb) disassemble 0xfffffc000031a7d0
Dump of assembler code for function wake_up:
0xfffffc000031a778 <wake_up>:           27bb0015        ldah    gp, 1376256(t12)

(gdb) disassemble 0xfffffc000033d510
Dump of assembler code for function unlock_buffer:
0xfffffc000033d390 <unlock_buffer>:
        27bb0012        ldah    gp, 1179648(t12)

-- 
Martin Cornelius, ZARMFAB software development, University of Bremen
phone: 49-421-218-4807    FAX: 49-421-218-3889
email: fabsoft@zarm.uni-bremen.de
paper-mail: Hochschulring / Am Fallturm, 28359 BREMEN, Germany

--
To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Oops with 2.0.18
       [not found] <9609061603.ZM2165@fabsoft2.zarm.uni-bremen.de>
@ 1996-09-07 21:03 ` Linus Torvalds
  0 siblings, 0 replies; 6+ messages in thread
From: Linus Torvalds @ 1996-09-07 21:03 UTC (permalink / raw)


On Fri, 6 Sep 1996, Martin Cornelius wrote:
> 
> Just compiled 2.0.18 on my Avanti and tried a recursive copy between filesystems.
> After about 1 second i got:

Uhhuh.. This is the "wake_up(&page->wait)" call in unlock_buffer() that 
seems to fail, and it looks like the "next" pointer for the wait queue is 
bogus (0xf3a121 is definitely not a valid kernel address ;)

The instruction that fails is actually kernel/sched.c, line 441

	struct task_struct *p = next->task;

but the corruption must have happened somewhere earlier.. 

What kind of hardware is the Avanti? NCR scsi driver? Have you tried "the 
other" driver for that controller?

		Linus

--
To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Oops with 2.0.18
       [not found] <torvalds@cs.Helsinki.FI>
                   ` (2 preceding siblings ...)
  1996-07-21  0:30 ` V2.0.8 Bryan W. Headley
@ 1996-09-09  9:03 ` Martin Cornelius
  3 siblings, 0 replies; 6+ messages in thread
From: Martin Cornelius @ 1996-09-09  9:03 UTC (permalink / raw)


On Sep 8, 12:03am, Linus Torvalds wrote:

> 
> What kind of hardware is the Avanti? NCR scsi driver? Have you tried "the 
> other" driver for that controller?
> 

My Avanti has 160 Megs of Ram and an NCR Scsi Controller with 3 Harddisks,
( 9 GB alltogether) one Tape and 2 CDROMS connected. The reported oops happened
with the 'old' scsi driver CONFIG_SCSI_NCR53C7xx=y, without any options enabled.
I tried the new driver as well, ( CONFIG_SCSI_NCR53C8XX=y ) ,using 
cp -a /bigarchive /tmp as crash-test again, and  immediately got a kernel panic:
Sep  6 19:57:52 fabserver1 kernel: EXT2-fs warning (device 08:13): ext2_bmap: block > big
Sep  6 19:57:52 fabserver1 last message repeated 7 times
Sep  6 19:57:52 fabserver1 kernel: Kernel panic: brw_page: page not locked for I/O

hope thet helps,
		Martin

-- 
Martin Cornelius, ZARMFAB software development, University of Bremen
phone: 49-421-218-4807    FAX: 49-421-218-3889
email: fabsoft@zarm.uni-bremen.de
paper-mail: Hochschulring / Am Fallturm, 28359 BREMEN, Germany

--
To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~1996-09-09  9:03 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <torvalds@cs.Helsinki.FI>
1996-05-08 17:19 ` gdb Eric Youngdale
1996-05-08 18:24 ` gdb Eric Youngdale
1996-07-21  0:30 ` V2.0.8 Bryan W. Headley
1996-09-09  9:03 ` Oops with 2.0.18 Martin Cornelius
     [not found] <9609061603.ZM2165@fabsoft2.zarm.uni-bremen.de>
1996-09-07 21:03 ` Linus Torvalds
1996-09-06 14:03 Martin Cornelius

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