Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* rxvt segmentation fault.... anyone know of a fix?
@ 1998-12-28 10:42 Designer 7
  1998-12-28 18:19 ` Michal Jaegermann
  1998-12-28 22:47 ` warp
  0 siblings, 2 replies; 4+ messages in thread
From: Designer 7 @ 1998-12-28 10:42 UTC (permalink / raw)
  To: axp-list

Hi,

Anyone tried using rxvt on alpha? I'm on kernel 2.1.131 w/ac11. Rxvt 
keeps crashing with segmentation fault and core dump. I can start rxvt 
no problem, but issue a few commands like 'ls -al' and it's gone.

I recompiled from source (with -g, no -O?), same problem. Then I tried 
to debug, but I'm not an expert with gdb (can anyone help?). I got a 
message saying "dl-debug.c: file does not exist" when i tried a 'list' 
after rxvt seg faults. I tried a 'info line *0x????????' on the 
addresses that were outputed by gdb. This got me the message: "no line 
info for 0x???????". Backtrace didn't give anything useful either.

Anyways... I'm going to try to figure out how to use gdb better... but 
in the mean time, does anyone know of this problem already? And is there 
a fix? Any suggestions on using gdb?

Thanks for any help.
D7

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com


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

* Re: rxvt segmentation fault.... anyone know of a fix?
  1998-12-28 10:42 rxvt segmentation fault.... anyone know of a fix? Designer 7
@ 1998-12-28 18:19 ` Michal Jaegermann
  1998-12-28 19:04   ` Matt Wagner
  1998-12-28 22:47 ` warp
  1 sibling, 1 reply; 4+ messages in thread
From: Michal Jaegermann @ 1998-12-28 18:19 UTC (permalink / raw)
  To: axp-list

Designer 7 wrote:
> 
> Anyone tried using rxvt on alpha?

Yes, I am using it all the time for some years (on alpha).

> I'm on kernel 2.1.131 w/ac11. Rxvt 
> keeps crashing with segmentation fault and core dump.

There is probably a long list of different versions of rxvt, recompiled
with different headers and so on.

> I recompiled from source (with -g, no -O?), same problem. Then I tried 
> to debug, but I'm not an expert with gdb (can anyone help?).

Type 'info gdb'.  There are also some graphic front ends to gdb
(like xgdb - if my memory serves me right).  It is also a good idea
to run gdb from emacs (M-x gdb); gdb has extensive on-line help.
gdb can be also attached to an already running process ('help attach'
at gdb prompt).

BTW - it is usually a good idea to compile for debugging with -O2,
or at least -O, flag; but not with -fomit-frame-pointer.  Once you
will gain some experience with debugging with gdb you will see why.
True, some variables may "disappear" but gains are bigger than
losses.

> I got a 
> message saying "dl-debug.c: file does not exist" when i tried a 'list' 
> after rxvt seg faults.

Does it exist?  Maybe you have to add a directory to a list of
directories searched ('help dir' at gdb prompt).

> I tried a 'info line *0x????????' on the 
> addresses that were outputed by gdb. This got me the message: "no line 
> info for 0x???????". Backtrace didn't give anything useful either.

This sounds like one of two classics:
  - either there is "off-by-one" error somewhere and you write
    past memory you allocated in a form of an automatic array on stack
  - or somebody is passing int to a function which expects long
    or vice-versa (this bug is masked on Intel processor as long and
    int happen there to have the same size) or something of a similar
    kind.
In both cases you already messed up your stack and an information
you are trying to read is garbled and invalid.  You have to stop
the whole process before that and trace down, step-by-step, to find out
what is killing your stack.  Attaching 'strace' to your process and
analizing its output while you performed actions leading to a crash
can be of help here.

There are other ways to kill your stack but the two above are the
most popular.  There can be a bad interaction with your kernel
(some structures are misaligned) but in theory rxvt is a user space
application and it should not care at all what kernel you are
running.  This theory may be not entirely true in practice :-) but
rxvt is not something which has to mess up with network packets,
or something of that sort, so the theory should generally apply.

> Anyways... I'm going to try to figure out how to use gdb better... but 
> in the mean time, does anyone know of this problem already? And is there 
> a fix? Any suggestions on using gdb?

This is a bit of mystery as I am using rxvt with various Red Hat
distributions and I never seen something even close.  When you ask
questions like that an information about your enviroment and versions
of things you are using can be a crucial one.  It is missing from
what you posted.

  Michal


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

* Re: rxvt segmentation fault.... anyone know of a fix?
  1998-12-28 18:19 ` Michal Jaegermann
@ 1998-12-28 19:04   ` Matt Wagner
  0 siblings, 0 replies; 4+ messages in thread
From: Matt Wagner @ 1998-12-28 19:04 UTC (permalink / raw)
  To: axp-list

i have experienced the same problems with rxvt in Redhat 5.2.



On Mon, 28 Dec 1998, Michal Jaegermann wrote:

> Designer 7 wrote:
> > 
> > Anyone tried using rxvt on alpha?
> 
> Yes, I am using it all the time for some years (on alpha).
> 
> > I'm on kernel 2.1.131 w/ac11. Rxvt 
> > keeps crashing with segmentation fault and core dump.
> 
> There is probably a long list of different versions of rxvt, recompiled
> with different headers and so on.
> 
> > I recompiled from source (with -g, no -O?), same problem. Then I tried 
> > to debug, but I'm not an expert with gdb (can anyone help?).
> 
> Type 'info gdb'.  There are also some graphic front ends to gdb
> (like xgdb - if my memory serves me right).  It is also a good idea
> to run gdb from emacs (M-x gdb); gdb has extensive on-line help.
> gdb can be also attached to an already running process ('help attach'
> at gdb prompt).
> 
> BTW - it is usually a good idea to compile for debugging with -O2,
> or at least -O, flag; but not with -fomit-frame-pointer.  Once you
> will gain some experience with debugging with gdb you will see why.
> True, some variables may "disappear" but gains are bigger than
> losses.
> 
> > I got a 
> > message saying "dl-debug.c: file does not exist" when i tried a 'list' 
> > after rxvt seg faults.
> 
> Does it exist?  Maybe you have to add a directory to a list of
> directories searched ('help dir' at gdb prompt).
> 
> > I tried a 'info line *0x????????' on the 
> > addresses that were outputed by gdb. This got me the message: "no line 
> > info for 0x???????". Backtrace didn't give anything useful either.
> 
> This sounds like one of two classics:
>   - either there is "off-by-one" error somewhere and you write
>     past memory you allocated in a form of an automatic array on stack
>   - or somebody is passing int to a function which expects long
>     or vice-versa (this bug is masked on Intel processor as long and
>     int happen there to have the same size) or something of a similar
>     kind.
> In both cases you already messed up your stack and an information
> you are trying to read is garbled and invalid.  You have to stop
> the whole process before that and trace down, step-by-step, to find out
> what is killing your stack.  Attaching 'strace' to your process and
> analizing its output while you performed actions leading to a crash
> can be of help here.
> 
> There are other ways to kill your stack but the two above are the
> most popular.  There can be a bad interaction with your kernel
> (some structures are misaligned) but in theory rxvt is a user space
> application and it should not care at all what kernel you are
> running.  This theory may be not entirely true in practice :-) but
> rxvt is not something which has to mess up with network packets,
> or something of that sort, so the theory should generally apply.
> 
> > Anyways... I'm going to try to figure out how to use gdb better... but 
> > in the mean time, does anyone know of this problem already? And is there 
> > a fix? Any suggestions on using gdb?
> 
> This is a bit of mystery as I am using rxvt with various Red Hat
> distributions and I never seen something even close.  When you ask
> questions like that an information about your enviroment and versions
> of things you are using can be a crucial one.  It is missing from
> what you posted.
> 
>   Michal
> 
> -- 
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com
> 
> 


----------------------------------
the SYSTEM owns you

SYSTEM, n.:
   1: a regular union of principles or parts forming one entire thing.
   2: the economic/capitalistic entity that exploits *your* life.
   3: that strange attractor in your perception of the world that you
      have dubbed as, "they".

wags@driver8.org	http://www.driver8.org/
			http://www.mw.driver8.org/


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

* Re: rxvt segmentation fault.... anyone know of a fix?
  1998-12-28 10:42 rxvt segmentation fault.... anyone know of a fix? Designer 7
  1998-12-28 18:19 ` Michal Jaegermann
@ 1998-12-28 22:47 ` warp
  1 sibling, 0 replies; 4+ messages in thread
From: warp @ 1998-12-28 22:47 UTC (permalink / raw)
  To: axp-list

Designer 7 wrote:

> I recompiled from source (with -g, no -O?), same problem. Then I tried
> to debug, but I'm not an expert with gdb (can anyone help?). I got a
> message saying "dl-debug.c: file does not exist" when i tried a 'list'
> after rxvt seg faults. I tried a 'info line *0x????????' on the
> addresses that were outputed by gdb. This got me the message: "no line
> info for 0x???????". Backtrace didn't give anything useful either.

Everything upto rxvt 2.48 compiles/works fine here, I'm using
RH-5.2 & egcs 1.3a and I'm using -O3 for CFLAGS.

Regards,
Antoine


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

end of thread, other threads:[~1998-12-28 23:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-12-28 10:42 rxvt segmentation fault.... anyone know of a fix? Designer 7
1998-12-28 18:19 ` Michal Jaegermann
1998-12-28 19:04   ` Matt Wagner
1998-12-28 22:47 ` warp

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