Mail Archives: cygwin/2004/02/11/23:15:37
Thomas L Roche 02/11/2004 06:08 PM
>>> it seems pretty clear to me that something "down deep" in the base
>>> broke after 1.5.5-1:
>>> 0 both character-mode (e.g. unzip) and X (e.g. emacs) apps are
>>> broken
>>> 1 inputs that worked in 1.5.5-1 don't work now
>>> 2 failures are intermittent and apparently random
>>> 3 error messages suggest malloc problems
>>> Am I missing something?
Christopher Faylor Wed, 11 Feb 2004 18:45:42 -0500
>> Actual debugging of the problem, with a debugger?
Fortunately, useful help arrives:
Igor Pechtchanski 02/11/2004 09:20:22 PM:
> Make sure you have the "tar", "patch", "gcc", "gcc-g++", "gdb", and
> "make" packages installed (via Cygwin's setup).
> Download the unzip source (e.g., "wget ftp://mirrors.rcn.
> net/pub/sourceware/cygwin/release/unzip/unzip-5.50-5-src.tar.bz2").
> Untar the unzip source to /usr/src (e.g., "tar -C /usr/src -xjf
> unzip-5.50-5-src.tar.bz2").
> Enter that directory and run the prep, conf, build, and install
> steps of the script (e.g., "cd /usr/src && ./unzip-5.50-5.sh prep &&
> . /unzip-5.50-5.sh conf && ./unzip-5.50-5.sh build &&
> ./unzip-5.50-5.sh install").
> You should now have a debug build of unzip sitting in
> /usr/src/unzip-5.50/.inst (the maintainer graciously set it up to
> build with debugging by default)
more below
> Enter that directory and run gdb: "cd /usr/src/unzip-5.50/.inst && gdb
> --args ./unzip failing_zip_file"
almost: ./usr/bin/unzip.exe
I do
wget -O -
ftp://mirrors.rcn.net/pub/sourceware/cygwin/release/unzip/unzip-5.50-5-src.tar.bz2
| tar -C /usr/src -xj
cd /usr/src && ./unzip-5.50-5.sh prep && ./unzip-5.50-5.sh conf &&
./unzip-5.50-5.sh build && ./unzip-5.50-5.sh install
cd /usr/src/unzip-5.50/.inst && gdb --args ./usr/bin/unzip.exe
/d/eclipse/zips/wsa-jdk-20040210_1925-WB213-AD-V512D-W5.zip
and get
> GNU gdb 2003-09-20-cvs (cygwin-special)
> Copyright 2003 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you
are
> welcome to change it and/or distribute copies of it under certain
conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB. Type "show warranty" for
details.
> This GDB was configured as "i686-pc-cygwin"...(no debugging symbols
found)...
Igor Pechtchanski 02/11/2004 09:20:22 PM:
> Set a breakpoint at the failing line (fileio.c, line 146) and start
> debugging :-)
I do
(gdb) break fileio.c:146
> No symbol table is loaded. Use the "file" command.
(gdb) file ./usr/bin/unzip.exe
> Reading symbols from ./usr/bin/unzip.exe...(no debugging symbols
found)...done.
This sounds bad: if so, how to tweak the script above to include
debugging?
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
- Raw text -