Re: atomic pin/unpin causing errors - Mailing list pgsql-hackers
From | Teodor Sigaev |
---|---|
Subject | Re: atomic pin/unpin causing errors |
Date | |
Msg-id | 572B2561.2030102@sigaev.ru Whole thread Raw |
In response to | Re: atomic pin/unpin causing errors (Teodor Sigaev <teodor@sigaev.ru>) |
Responses |
Re: quickdie doing memory allocations (was atomic
pin/unpin causing errors)
|
List | pgsql-hackers |
> I'll try to get a coredump after SIGSEGV, but it could take a time. Got it! #0 0x00000008014321d7 in sbrk () from /lib/libc.so.7 #1 0x0000000801431ddd in sbrk () from /lib/libc.so.7 #2 0x000000080142e5bb in sbrk () from /lib/libc.so.7 #3 0x000000080142e085 in sbrk () from /lib/libc.so.7 #4 0x000000080142de28 in sbrk () from /lib/libc.so.7 #5 0x000000080142e1cf in sbrk () from /lib/libc.so.7 #6 0x0000000801439815 in free () from /lib/libc.so.7 #7 0x000000080149e3d6 in nsdispatch () from /lib/libc.so.7 #8 0x00000008014a41c6 in __cxa_finalize () from /lib/libc.so.7 #9 0x000000080144525c in exit () from /lib/libc.so.7 #10 0x00000000008e1bc2 in quickdie (postgres_signal_arg=3) at postgres.c:2623 #11 <signal handler called> #12 0x0000000801431847 in sbrk () from /lib/libc.so.7 #13 0x0000000801431522 in sbrk () from /lib/libc.so.7 #14 0x000000080142d47f in sbrk () from /lib/libc.so.7 #15 0x0000000801434628 in malloc () from /lib/libc.so.7 #16 0x0000000000aca278 in AllocSetAlloc (context=0x801c0bb88, size=24) at aset.c:853 #17 0x0000000000acca0e in MemoryContextAlloc (context=0x801c0bb88, size=24) at mcxt.c:764 #18 0x0000000000aebdb8 in PushActiveSnapshot (snap=0xf4ae10) at snapmgr.c:652 #19 0x00000000008e54bd in exec_bind_message (input_message=0x7fffffffdf60) at postgres.c:1602 #20 0x00000000008e3957 in PostgresMain (argc=1, argv=0x801d3c968, dbname=0x801d3c948 "teodor", username=0x801d3c928 "teodor") at postgres.c:4105 #21 0x0000000000839744 in BackendRun (port=0x801c991c0) at postmaster.c:4258 #22 0x0000000000838d54 in BackendStartup (port=0x801c991c0) at postmaster.c:3932 #23 0x0000000000835617 in ServerLoop () at postmaster.c:1690 #24 0x0000000000832c69 in PostmasterMain (argc=4, argv=0x7fffffffe420) at postmaster.c:1298 #25 0x000000000075f228 in main (argc=4, argv=0x7fffffffe420) at main.c:228 Seems, we have some memory corruption, but it could either separate or the same problem. Another one: #0 0x00000008014321d7 in sbrk () from /lib/libc.so.7 #1 0x0000000801431ddd in sbrk () from /lib/libc.so.7 #2 0x000000080142e5bb in sbrk () from /lib/libc.so.7 #3 0x000000080142e085 in sbrk () from /lib/libc.so.7 #4 0x000000080142de28 in sbrk () from /lib/libc.so.7 #5 0x000000080142e1cf in sbrk () from /lib/libc.so.7 #6 0x0000000801439815 in free () from /lib/libc.so.7 #7 0x000000080149e3d6 in nsdispatch () from /lib/libc.so.7 #8 0x00000008014a41c6 in __cxa_finalize () from /lib/libc.so.7 #9 0x000000080144525c in exit () from /lib/libc.so.7 #10 0x00000000008e1bc2 in quickdie (postgres_signal_arg=3) at postgres.c:2623 #11 <signal handler called> #12 0x000000080143277a in sbrk () from /lib/libc.so.7 #13 0x00000008014318b5 in sbrk () from /lib/libc.so.7 #14 0x000000080142e483 in sbrk () from /lib/libc.so.7 #15 0x000000080142e75b in sbrk () from /lib/libc.so.7 #16 0x00000008014398bd in free () from /lib/libc.so.7 #17 0x0000000000aca676 in AllocSetFree (context=0x801e710d0, pointer=0x801e65038) at aset.c:976 #18 0x0000000000acbe93 in pfree (pointer=0x801e65038) at mcxt.c:1015 #19 0x00000000004a7986 in ginendscan (scan=0x801e61de0) at ginscan.c:445 #20 0x0000000000504818 in index_endscan (scan=0x801e61de0) at indexam.c:339 #21 0x0000000000719d21 in ExecEndBitmapIndexScan (node=0x801e619c8) at nodeBitmapIndexscan.c:183 #22 0x00000000006fce9e in ExecEndNode (node=0x801e619c8) at execProcnode.c:685 #23 0x0000000000719195 in ExecEndBitmapHeapScan (node=0x801d63700) at nodeBitmapHeapscan.c:508 #24 0x00000000006fceaf in ExecEndNode (node=0x801d63700) at execProcnode.c:689 #25 0x000000000072b64a in ExecEndModifyTable (node=0x801d632a0) at nodeModifyTable.c:1978 #26 0x00000000006fcde3 in ExecEndNode (node=0x801d632a0) at execProcnode.c:638 #27 0x00000000006f6ed9 in ExecEndPlan (planstate=0x801d632a0, estate=0x801d63038) at execMain.c:1451 #28 0x00000000006f6e56 in standard_ExecutorEnd (queryDesc=0x801e42af0) at execMain.c:468 #29 0x00000008020038f2 in pgss_ExecutorEnd (queryDesc=0x801e42af0) at pg_stat_statements.c:938 #30 0x00000000006f6d3c in ExecutorEnd (queryDesc=0x801e42af0) at execMain.c:437 #31 0x00000000008ea387 in ProcessQuery (plan=0x801e43898, sourceText=0x801e42838 "update foo set count=count+1 where text_array @> $1", params=0x801e428b8, dest=0xf3fcc8, completionTag=0x7fffffffdd00 "UPDATE 1") at pquery.c:230 #32 0x00000000008e9540 in PortalRunMulti (portal=0x801dc5038, isTopLevel=1 '\001', dest=0xf3fcc8, altdest=0xf3fcc8, completionTag=0x7fffffffdd00 "UPDATE 1") at pquery.c:1267 #33 0x00000000008e8cd6 in PortalRun (portal=0x801dc5038, count=9223372036854775807, isTopLevel=1 '\001', dest=0x801c96450, altdest=0x801c96450, completionTag=0x7fffffffdd00 "UPDATE 1") at pquery.c:813 #34 0x00000000008e61ef in exec_execute_message (portal_name=0x801c96038 "", max_rows=9223372036854775807) at postgres.c:1979 #35 0x00000000008e39ae in PostgresMain (argc=1, argv=0x801d56bc8, dbname=0x801d56ba8 "teodor", username=0x801d56b88 "teodor") at postgres.c:4122 #36 0x0000000000839744 in BackendRun (port=0x801d571c0) at postmaster.c:4258 #37 0x0000000000838d54 in BackendStartup (port=0x801d571c0) at postmaster.c:3932 #38 0x0000000000835617 in ServerLoop () at postmaster.c:1690 #39 0x0000000000832c69 in PostmasterMain (argc=4, argv=0x7fffffffe420) at postmaster.c:1298 #40 0x000000000075f228 in main (argc=4, argv=0x7fffffffe420) at main.c:228 -- Teodor Sigaev E-mail: teodor@sigaev.ru WWW: http://www.sigaev.ru/
pgsql-hackers by date: