From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12448 invoked by alias); 12 Aug 2010 17:08:39 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 28157 Received: (qmail 28317 invoked from network); 12 Aug 2010 17:08:36 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, SPF_HELO_PASS autolearn=ham version=3.3.1 Received-SPF: none (ns1.primenet.com.au: domain at bewatermyfriend.org does not designate permitted sender hosts) From: Frank Terbeck To: Philipp Hartwig Cc: zsh-workers@zsh.org Subject: Re: segfault on menu-select In-Reply-To: <20100812165307.GA24998@ph> (Philipp Hartwig's message of "Thu, 12 Aug 2010 18:53:07 +0200") References: <20100812144626.GI28144@ph> <8762zf6fwo.fsf@ft.bewatermyfriend.org> <20100812152044.GJ28144@ph> <87wrrv4yrg.fsf@ft.bewatermyfriend.org> <20100812165307.GA24998@ph> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Date: Thu, 12 Aug 2010 19:07:38 +0200 Message-ID: <87r5i34v51.fsf@ft.bewatermyfriend.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Df-Sender: 430444 Philipp Hartwig wrote: >> Still. Can you reproduce this with CVS HEAD? > > Building this was not so easy. Installing the man pages (and hence a > normal make install) still fails, but make, make check, make > install.bin, make install.modules were successful and yes, I can > reproduce the issue. Still not with zsh -f of course, but with the > minimal .zshrc from before. To generate the manuals, you need the `yodl' package. >> If it's reproducible with CVS HEAD, it would be good to create a debug >> build and fetch a back trace from the core file. > > Sorry, I don't know what that means but I'll be happy to follow any > instructions. >>From a fresh checkout, here's what I usually do: % ./Util/preconfig % /configure --enable-cap --enable-function-subdirs \ --enable-largefile --enable-maildir-support \ --enable-multibyte --enable-pcre --enable-zsh-debug % make % su # make install Then when you've crashed the application, you can load the core file together with the program's binary and use the "bt full" command to produce a backtrace. To put the backtrace to a file, the following oneliner works: % gdb -c core /usr/local/bin/zsh <<< $'bt full\nquit\n' > backtrace.txt Where `core' is the core file and `/usr/local/bin/zsh' being the installed zsh binary which you just crashed. The backtrace will only be useful if the zsh binary is from a debugging build. Regards, Frank