[postgres@testbed arttoday]$ gdb /usr/local/pgsql/bin/postgres core GNU gdb 19991004 Copyright 1998 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 "i386-redhat-linux"... warning: core file may not match specified executable file. Core was generated by `/usr/local/pgsql/bin/postgres 192.168.3.65 atoday arttoda y SELEC'. Program terminated with signal 11, Segmentation fault. Reading symbols from /lib/libcrypt.so.1...done. Reading symbols from /lib/libnsl.so.1...done. Reading symbols from /lib/libdl.so.2...done. Reading symbols from /lib/libm.so.6...done. Reading symbols from /lib/libutil.so.1...done. Reading symbols from /usr/lib/libreadline.so.3...done. Reading symbols from /lib/libtermcap.so.2...done. Reading symbols from /usr/lib/libncurses.so.4...done. Reading symbols from /lib/libc.so.6...done. Reading symbols from /lib/ld-linux.so.2...done. #0 0x8124f12 in AllocSetContains () (gdb) bt #0 0x8124f12 in AllocSetContains () #1 0x812568d in PortalHeapMemoryFree () #2 0x81253de in MemoryContextFree () #3 0x811b714 in numeric_to_char () #4 0x8122b40 in fmgr_c () #5 0x809e27a in ExecMakeFunctionResult () #6 0x809e2f8 in ExecEvalFunc () #7 0x809e59b in ExecEvalExpr () #8 0x809e0a6 in ExecEvalFuncArgs () #9 0x809e156 in ExecMakeFunctionResult () #10 0x809e2f8 in ExecEvalFunc () #11 0x809e59b in ExecEvalExpr () #12 0x809e0a6 in ExecEvalFuncArgs () #13 0x809e156 in ExecMakeFunctionResult () #14 0x809e2bc in ExecEvalOper () #15 0x809e58b in ExecEvalExpr () #16 0x809e77f in ExecTargetList () #17 0x809ea41 in ExecProject () #18 0x809eaf3 in ExecScan () #19 0x80a3571 in ExecSeqScan () #20 0x809d386 in ExecProcNode () #21 0x809c699 in ExecutePlan () #22 0x809bcee in ExecutorRun () ---Type to continue, or q to quit--- #23 0x80ec112 in ProcessQueryDesc () #24 0x80ec17c in ProcessQuery () #25 0x80eada7 in pg_exec_query_dest () #26 0x80eac87 in pg_exec_query () #27 0x80ebb82 in PostgresMain () #28 0x80d61d2 in DoBackend () #29 0x80d5db1 in BackendStartup () #30 0x80d516a in ServerLoop () #31 0x80d4bf4 in PostmasterMain () #32 0x80ab716 in main () #33 0x401049cb in __libc_start_main (main=0x80ab6b0
, argc=8, argv=0xbffff5f4, init=0x8063f84 <_init>, fini=0x812956c <_fini>, rtld_fini=0x4000ae60 <_dl_fini>, stack_end=0xbffff5ec) at ../sysdeps/generic/libc-start.c:92 (gdb)