zsh-workers
 help / color / mirror / code / Atom feed
* 'cd' built-in crashed zsh on a broken file system
@ 2015-01-20 12:35 Kamil Dudka
  2015-01-20 18:28 ` Bart Schaefer
  0 siblings, 1 reply; 9+ messages in thread
From: Kamil Dudka @ 2015-01-20 12:35 UTC (permalink / raw)
  To: zsh-workers

The following bug report describes a crash of the 'cd' built-in of zsh:

https://bugzilla.redhat.com/1183238

The root cause was probably an inconsistent state of the sshfs file system 
after resume from suspend-to-ram.  However, the segmentation fault suggests 
there might be some insufficient error handling in zsh code.

unmeta() was called with NULL as pwd at the following line:

http://sourceforge.net/p/zsh/code/ci/638bfa93/tree/Src/builtin.c#l807

It is not clear to me why pwd was NULL after the return from cd_new_pwd()
and I was not able to trigger the bug myself to debug it further.  The full 
backtrace is available here:

https://bugzilla.redhat.com/attachment.cgi?id=981010

Kamil


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

end of thread, other threads:[~2015-01-25 18:00 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-20 12:35 'cd' built-in crashed zsh on a broken file system Kamil Dudka
2015-01-20 18:28 ` Bart Schaefer
2015-01-20 20:34   ` Peter Stephenson
2015-01-20 21:57     ` Bart Schaefer
2015-01-23 13:31     ` Kamil Dudka
2015-01-24 19:09     ` Mikael Magnusson
2015-01-24 21:56       ` Mikael Magnusson
2015-01-25  3:54       ` Bart Schaefer
2015-01-25 17:54       ` Peter Stephenson

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).