Package: postgresql-client-8.4 Version: 8.4.7-0squeeze2 Severity: normal Hi,
pgsql crashes in interactive mode when you execute a multiline query which takes up more than the height of the screen, then press the up-arrow key to edit that query. I can reliably reproduce this problem on two amd64 machines (assuming bash as the shell for $LINES): 1. Run this to generate a long query. python -c 'import sys; count, = map (int, sys.argv[1:]); print "SELECT " + ",\n".join (map (str, range (1, count + 1))) + ";"' "$(expr "$LINES" + 1)" 2. Run pgsql. 3. Copy and paste the long, generated query into pgsql. This query should be longer in lines than the height of your screen, so the initial "SELECT 1," should not be visible. 4. Exit your pager (if your pager came up to show the long query result). 5. Press up-arrow. 6. Voila! Segmentation fault. Hope this helps, -- System Information: Debian Release: 6.0.1 APT prefers squeeze-updates APT policy: (750, 'squeeze-updates'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 2.6.32-5-amd64 (SMP w/1 CPU core) Locale: LANG=C, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages postgresql-client-8.4 depends on: ii libc6 2.11.2-10 Embedded GNU C Library: Shared lib ii libedit2 2.11-20080614-2 BSD editline and history libraries ii libpq5 8.4.7-0squeeze2 PostgreSQL C client library ii libssl0.9.8 0.9.8o-4squeeze1 SSL shared libraries ii postgresql-client-commo 113 manager for multiple PostgreSQL cl ii zlib1g 1:1.2.3.4.dfsg-3 compression library - runtime postgresql-client-8.4 recommends no packages. Versions of packages postgresql-client-8.4 suggests: pn postgresql-8.4 <none> (no description available) pn postgresql-doc-8.4 <none> (no description available) -- no debconf information -- J.P. Larocque <jpl-debian-...@thoughtcrime.us> -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org