zsh-workers
 help / color / mirror / code / Atom feed
* weird bus errors with zsh-3.1.5-pws-20 ?
@ 1999-06-01  4:12 Timothy J Luoma
  1999-06-01  5:30 ` Bart Schaefer
  0 siblings, 1 reply; 2+ messages in thread
From: Timothy J Luoma @ 1999-06-01  4:12 UTC (permalink / raw)
  To: zsh-workers


zsh pws20 was giving me a bus error

Now I can't figure out why it stopped.

NOTE: my login shell is /usr/bin/zsh which is a symlink to  
/usr/bin/zsh-3.1.5-pws-20


# gdb /usr/bin/zsh-3.1.5-pws-20

GDB 4.7 (NeXT 3.1), Copyright 1992 Free Software Foundation, Inc...
Reading symbols from /usr/bin/zsh-3.1.5-pws-20...(no debugging symbols  
found)...done.

(gdb) run
Starting program: /usr/bin/zsh-3.1.5-pws-20
[ioctl TIOCSPGRP failed in terminal_inferior: Invalid argument]
Program generated(1): Memory access exception on address 0x1 (protection failure).
Program generated(1): Memory access exception on address 0x1 (protection failure).
0x363d0 in ?? ()
(gdb)


I can't, for some reason, reproduce this now, and I can't figure out why it  
happened.

If I try to 'strip zsh' it doesn't seem to have an effect -- should it?

TjL





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

* Re: weird bus errors with zsh-3.1.5-pws-20 ?
  1999-06-01  4:12 weird bus errors with zsh-3.1.5-pws-20 ? Timothy J Luoma
@ 1999-06-01  5:30 ` Bart Schaefer
  0 siblings, 0 replies; 2+ messages in thread
From: Bart Schaefer @ 1999-06-01  5:30 UTC (permalink / raw)
  To: Timothy J Luoma, zsh-workers

On Jun 1, 12:12am, Timothy J Luoma wrote:
} Subject: weird bus errors with zsh-3.1.5-pws-20 ?
}
} zsh pws20 was giving me a bus error
} 
} Now I can't figure out why it stopped.

In another message you talked about intermittent problems with "cd .".
Are you sure your OS and filesystem are in good shape?

} Starting program: /usr/bin/zsh-3.1.5-pws-20
} [ioctl TIOCSPGRP failed in terminal_inferior: Invalid argument]

Hrm.  This could be related to the newly-added tty process group stuff in
exec.c and jobs.c; try running "zsh -x" ("run -x" in GDB) so you can see
whether zsh is processing any of your startup scripts at the time of the
crash.  (Assuming it starts crashing again.)  I'd like to find out soon
whether that's it, as I'm about to put that pgrp stuff into 3.0.6.

However, this looks more like the operating system is having trouble with
the pseudo-terminal (pty) on which you're running zsh.  There's no such
call as "terminal_inferior" anywhere in zsh, but ptys are organized as a
"master" device and a "slave" or inferior device.

But I don't know why either of those cases would produce this:

} Program generated(1): Memory access exception on address 0x1 (protection failure).

} If I try to 'strip zsh' it doesn't seem to have an effect -- should it?

All 'strip zsh' does is rip out the debugging symbols, which makes GDB
pretty useless.  You should only strip binaries if you need to conserve
the space occupied by the symbol table or are desperate to have it start
up a fraction of a second faster, and never do so if you expect to need
to diagnose a crash.

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com


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

end of thread, other threads:[~1999-06-01  5:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-06-01  4:12 weird bus errors with zsh-3.1.5-pws-20 ? Timothy J Luoma
1999-06-01  5:30 ` Bart Schaefer

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).