On 02/04/2011 11:29 PM Petter Reinholdtsen wrote: > Can you try to reproduce it while running psql using valgrind, to get > more information about the segfault? > > Happy hacking,
Hi,
here's the Valgrind output, generated right after the segmentation
fault. Please let me know if I should pass any options to Valgrind.
Regards,
Pascal
-- Valgrind output:
==31630== Warning: ignored attempt to set SIGSTOP handler in sigaction();
==31630== the SIGSTOP signal is uncatchable
vmm06=# ==31630== Invalid write of size 1
==31630== at 0x52AE388: ??? (in /usr/lib/libedit.so.2.11)
==31630== by 0x52B09AF: ??? (in /usr/lib/libedit.so.2.11)
==31630== by 0x52B6EDD: el_gets (in /usr/lib/libedit.so.2.11)
==31630== by 0x52C06E6: readline (in /usr/lib/libedit.so.2.11)
==31630== by 0x11C916: ??? (in /usr/lib/postgresql/8.4/bin/psql)
==31630== by 0x11F9BF: ??? (in /usr/lib/postgresql/8.4/bin/psql)
==31630== by 0x122943: main (in /usr/lib/postgresql/8.4/bin/psql)
==31630== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==31630==
==31630==
==31630== Process terminating with default action of signal 11 (SIGSEGV)
==31630== Access not within mapped region at address 0x0
==31630== at 0x52AE388: ??? (in /usr/lib/libedit.so.2.11)
==31630== by 0x52B09AF: ??? (in /usr/lib/libedit.so.2.11)
==31630== by 0x52B6EDD: el_gets (in /usr/lib/libedit.so.2.11)
==31630== by 0x52C06E6: readline (in /usr/lib/libedit.so.2.11)
==31630== by 0x11C916: ??? (in /usr/lib/postgresql/8.4/bin/psql)
==31630== by 0x11F9BF: ??? (in /usr/lib/postgresql/8.4/bin/psql)
==31630== by 0x122943: main (in /usr/lib/postgresql/8.4/bin/psql)
==31630== If you believe this happened as a result of a stack
==31630== overflow in your program's main thread (unlikely but
==31630== possible), you can try to increase the size of the
==31630== main thread stack using the --main-stacksize= flag.
==31630== The main thread stack size used in this run was 8388608.
==31630==
==31630== HEAP SUMMARY:
==31630== in use at exit: 90,261 bytes in 311 blocks
==31630== total heap usage: 668 allocs, 357 frees, 149,661 bytes allocated
==31630==
==31630== LEAK SUMMARY:
==31630== definitely lost: 186 bytes in 4 blocks
==31630== indirectly lost: 480 bytes in 20 blocks
==31630== possibly lost: 0 bytes in 0 blocks
==31630== still reachable: 89,595 bytes in 287 blocks
==31630== suppressed: 0 bytes in 0 blocks
==31630== Rerun with --leak-check=full to see details of leaked memory
==31630==
==31630== For counts of detected and suppressed errors, rerun with: -v
==31630== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 8 from 6)
Segmentation fault
user@localhost ~ $
--
Ubuntu is an ancient African word meaning “I can’t install Debian.”
-- unknown
smime.p7s
Description: S/MIME Cryptographic Signature

