Teodor Sigaev wrote:
How do I make a backtrace?
- if you have coredump, just execute gdb /PATH1/postgres gdb /PATH2/core
and type bt. Linux doesn't make core by default, so you allow to do it
by ulimit -c unlimited for postgresql user
- connect to db, and attach gdb to backend process: gdb /PATH1/postgres
BACKEND_PID and type run in gdb, next, execute CREATE DICTIONARY and
type bt in gdb
I am completely unfamiliar with gdb, but hopefully, this is what you are
after?
(gdb) continue
Continuing.
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 182898870848 (LWP 606)]
0x00000000005a6f65 in makeCompoundFlags ()
(gdb) bt
#0 0x00000000005a6f65 in makeCompoundFlags ()
#1 0x00000000005a712a in mkSPNode ()
#2 0x00000000005a709b in mkSPNode ()
#3 0x00000000005a709b in mkSPNode ()
#4 0x00000000005a709b in mkSPNode ()
#5 0x00000000005a71a2 in mkSPNode ()
#6 0x00000000005a734d in NISortDictionary ()
#7 0x00000000005a4dae in dispell_init ()
#8 0x0000000000638823 in OidFunctionCall1 ()
#9 0x00000000004f4800 in verify_dictoptions ()
#10 0x00000000004f48da in DefineTSDictionary ()
#11 0x000000000059c4fe in PortalRunUtility ()
#12 0x000000000059c5dc in PortalRunMulti ()
#13 0x000000000059bf28 in PortalRun ()
#14 0x00000000005977d2 in exec_simple_query ()
#15 0x000000000059a874 in PostgresMain ()
#16 0x0000000000572821 in BackendRun ()
#17 0x0000000000572112 in BackendStartup ()
#18 0x000000000057034c in ServerLoop ()
#19 0x000000000056f938 in PostmasterMain ()
#20 0x0000000000529f5b in main ()
--
Tommy Gildseth
--
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general