[12:03:17.781] src/tools/ci/cores_backtrace.sh freebsd /tmp/cores [12:03:18.099] dumping /tmp/cores/postgres.27598.core for /tmp/cirrus-ci-build/build/tmp_install/usr/local/pgsql/bin/postgres [12:03:18.228] [New LWP 102092] [12:03:18.318] Core was generated by `postgres: cascade: startup recovering 000000020000000000000004'. [12:03:18.318] Program terminated with signal SIGQUIT, Quit. [12:03:18.318] Sent by thr_kill() from pid 27598 and user 1002. [12:03:18.318] #0 0x000000082d57d75a in _sigprocmask () from /lib/libc.so.7 [12:03:18.363] [12:03:18.363] Thread 1 (LWP 102092): [12:03:18.363] #0 0x000000082d57d75a in _sigprocmask () from /lib/libc.so.7 [12:03:18.363] No symbol table info available. [12:03:18.363] #1 0x000000082d5baa2f in _system () from /lib/libc.so.7 [12:03:18.363] No symbol table info available. [12:03:18.363] #2 0x000000082c7628a3 in ?? () from /lib/libthr.so.3 [12:03:18.363] No symbol table info available. [12:03:18.363] #3 0x000000000068a857 in RestoreArchivedFile (path=path@entry=0x82112e1e0 "pg_wal/00000002", '0' , "4", xlogfname=xlogfname@entry=0x82112e5e0 "00000003.history", recovername=, expectedSize=expectedSize@entry=0, cleanupEnabled=) at ../src/backend/access/transam/xlogarchive.c:177 [12:03:18.363] xlogpath = "pg_wal/RECOVERYHISTORY\000p\320\032c-\b\000\000\000\005\000\000\000\000\000\000\000\002\000\000\000\000\000\000\000\000\342\022!\b\000\000\000\001\000\000\000\000\000\000\000\360\335\022!\b\000\000\000\027~O-\b", '\000' , "\240\204\301\000\000\000\000\000002", '\000' , "002\000\000\000\000\00000000000", '\000' , "\260\335\022!\b\000\000\000\315b\276\215X&\000\000\250\336D-\b\000\000\000"... [12:03:18.363] lastRestartPointFname = '0' , '\000' , "\225v\262\000\000\000\000\0008\340\022!\b\000\000\000\376\377\377\377\000\000\000\000\304\331\022!\b\000\000\000\377\377\377\377\000\000\000\000\210\340\022!\b", '\000' , "p\331\022!\b\000\000\000\326y\262", '\000' , "\225v\262\000\000\000\000\000\210\340\022!\b\000\000\000\376\377\377\377\000\000\000\000\002", '\000' ... [12:03:18.363] stat_buf = {st_dev = 4, st_ino = 2, st_nlink = 34914623952, st_mode = 28963, st_padding0 = 178, st_uid = 0, st_gid = 554885584, st_padding1 = 8, st_rdev = 35119922711, st_atim = {tv_sec = 34914623848, tv_nsec = 3}, st_mtim = {tv_sec = 0, tv_nsec = 0}, st_ctim = {tv_sec = 3420208, tv_nsec = 3472328296227680304}, st_birthtim = {tv_sec = 206158430224, tv_nsec = 4070481716353957889}, st_size = 8085711695820220718, st_blocks = 35121208016, st_blksize = 6, st_flags = 0, st_gen = 0, st_spare = {34914623936, 2, 34914623888, 35120450133, 34914623968, 1750334034, 2174841254820471848, 8085711695820220718, 206158430240, 34914623968}} [12:03:18.363] restartRedoPtr = 34914623696 [12:03:18.363] restartTli = 8 [12:03:18.363] restartSegNo = [12:03:18.363] xlogRestoreCmd = 0x5c37a76c5a8 "cp \"/tmp/cirrus-ci-build/build/testrun/recovery/025_stuck_on_old_timeline/data/t_025_stuck_on_old_timeline_primary_data/archives/00000003.history\" \"pg_wal/RECOVERYHISTORY\"" [12:03:18.363] rc = [12:03:18.363] #4 0x00000000006716a8 in existsTimeLineHistory (probeTLI=probeTLI@entry=3) at ../src/backend/access/transam/timeline.c:235 [12:03:18.363] path = "pg_wal/00000002", '0' , "4", '\000' , "P\000!z\303\005\000\000\001\000\000\000\000\000\000\000\b\244 z\303\005\000\000 \315D-\b\000\000\000\270\344\022!\b\000\000\000\b\344\022!\b\000\000\000p\342\022!\b", '\000' , "\b0 z\303\005\000\000 \000\000\000\000\000\000\000\360\343\022!\b\000\000\000w\374\275\215X&\000\000\b0 z\303\005\000\000\b4 z\303\005\000\000\b8 z\303\005\000\000\b< z\303\005\000\000\bp z\303\005\000\000\bt z\303\005\000\000\bx z\303\005\000\000"... [12:03:18.363] histfname = "00000003.history\000\346\022!\b\000\000\000\3550\225\000\000\000\000\000\377\377\377\377\377\377\377\377\000\000\000\000\000\000\000\0000\346\022!\b\000\000\000b\211W-\b\000\000" [12:03:18.363] fd = [12:03:18.363] #5 0x0000000000671768 in findNewestTimeLine (startTLI=startTLI@entry=2) at ../src/backend/access/transam/timeline.c:277 [12:03:18.363] newestTLI = 2 [12:03:18.363] probeTLI = 3 [12:03:18.363] #6 0x0000000000695c9b in rescanLatestTimeLine (replayTLI=replayTLI@entry=2, replayLSN=replayLSN@entry=67209304) at ../src/backend/access/transam/xlogrecovery.c:4135 [12:03:18.363] oldtarget = 2 [12:03:18.363] currentTle = 0x0 [12:03:18.363] newtarget = [12:03:18.363] newExpectedTLEs = [12:03:18.363] found = [12:03:18.363] cell = [12:03:18.363] #7 0x0000000000691e93 in WaitForWALToBecomeAvailable (RecPtr=67209328, tliRecPtr=67209304, replayTLI=2, replayLSN=67209304, randAccess=, fetching_ckpt=, nonblocking=) at ../src/backend/access/transam/xlogrecovery.c:3697 [12:03:18.363] startWalReceiver = false [12:03:18.363] streaming_reply_sent = true [12:03:18.363] now = [12:03:18.363] startWalReceiver = [12:03:18.363] oldSource = [12:03:18.363] wait_time = [12:03:18.363] __error = [12:03:18.363] __error = [12:03:18.363] __error = [12:03:18.363] havedata = [12:03:18.363] ptr = [12:03:18.363] tli = [12:03:18.363] __error = [12:03:18.363] latestChunkStart = [12:03:18.363] __error = [12:03:18.363] #8 XLogPageRead (xlogreader=0x5c37a61d130, targetPagePtr=67207168, reqLen=2160, targetRecPtr=67209304, readBuf=0x5c37a73c1f8 "\030\321\006") at ../src/backend/access/transam/xlogrecovery.c:3363 [12:03:18.363] private = 0x5c37a61d110 [12:03:18.363] emode = 15 [12:03:18.363] targetSegNo = 4 [12:03:18.363] targetPageOff = 98304 [12:03:18.363] io_start = [12:03:18.363] r = [12:03:18.363] #9 0x0000000000698bfa in ReadPageInternal (state=state@entry=0x5c37a61d130, pageptr=67207168, reqLen=2160) at ../src/backend/access/transam/xlogreader.c:1061 [12:03:18.363] targetSegNo = 4 [12:03:18.363] targetPageOff = 98304 [12:03:18.363] readLen = [12:03:18.363] hdr = [12:03:18.363] err = [12:03:18.363] #10 0x0000000000697a28 in XLogDecodeNextRecord (state=0x5c37a61d130, nonblocking=false) at ../src/backend/access/transam/xlogreader.c:598 [12:03:18.363] errormsg = 0x821132c98 "" [12:03:18.363] randAccess = [12:03:18.363] decoded = 0x0 [12:03:18.363] RecPtr = 67209304 [12:03:18.363] assembled = false [12:03:18.363] targetPagePtr = 67207168 [12:03:18.363] readOff = [12:03:18.363] record = [12:03:18.363] gotheader = [12:03:18.363] targetRecOff = 2136 [12:03:18.363] pageHeaderSize = [12:03:18.363] len = [12:03:18.363] total_len = [12:03:18.363] buffer = [12:03:18.363] gotlen = [12:03:18.363] pageHeader = [12:03:18.363] contdata = [12:03:18.363] save_copy = [12:03:18.363] #11 XLogReadAhead (state=0x5c37a61d130, nonblocking=false) at ../src/backend/access/transam/xlogreader.c:974 [12:03:18.363] result = [12:03:18.363] #12 0x000000000068f148 in XLogPrefetcherNextBlock (pgsr_private=6337131176456, lsn=0x5c37a76c008) at ../src/backend/access/transam/xlogprefetcher.c:490 [12:03:18.363] nonblocking = false [12:03:18.363] record = 0x0 [12:03:18.363] prefetcher = 0x5c37a73e208 [12:03:18.363] reader = 0x5c37a61d130 [12:03:18.363] replaying_lsn = 67208896 [12:03:18.363] #13 0x000000000068edb5 in lrq_prefetch (lrq=0x5c37a76bd98) at ../src/backend/access/transam/xlogprefetcher.c:252 [12:03:18.363] No locals. [12:03:18.363] #14 lrq_complete_lsn (lrq=0x5c37a76bd98, lsn=) at ../src/backend/access/transam/xlogprefetcher.c:290 [12:03:18.363] No locals. [12:03:18.363] #15 XLogPrefetcherReadRecord (prefetcher=prefetcher@entry=0x5c37a73e208, errmsg=errmsg@entry=0x821132d60) at ../src/backend/access/transam/xlogprefetcher.c:1035 [12:03:18.363] replayed_up_to = [12:03:18.363] record = [12:03:18.363] #16 0x000000000069294a in ReadRecord (xlogprefetcher=0x5c37a73e208, emode=emode@entry=15, fetching_ckpt=false, replayTLI=replayTLI@entry=2) at ../src/backend/access/transam/xlogrecovery.c:3162 [12:03:18.363] errormsg = 0x5c37a61d940 "" [12:03:18.363] xlogreader = 0x5c37a61d130 [12:03:18.363] private = [12:03:18.363] record = [12:03:18.363] #17 0x0000000000693239 in PerformWalRecovery () at ../src/backend/access/transam/xlogrecovery.c:1840 [12:03:18.363] ru0 = {tv = {tv_sec = 1750334033, tv_usec = 534392}, ru = {ru_utime = {tv_sec = 0, tv_usec = 0}, ru_stime = {tv_sec = 0, tv_usec = 1234}, ru_maxrss = 0, ru_ixrss = 0, ru_idrss = 0, ru_isrss = 0, ru_minflt = 160, ru_majflt = 0, ru_nswap = 0, ru_inblock = 0, ru_oublock = 0, ru_msgsnd = 0, ru_msgrcv = 0, ru_nsignals = 0, ru_nvcsw = 11, ru_nivcsw = 4}} [12:03:18.363] xtime = [12:03:18.363] reachedRecoveryTarget = false [12:03:18.363] replayTLI = 2 [12:03:18.363] record = [12:03:18.363] #18 0x0000000000683923 in StartupXLOG () at ../src/backend/access/transam/xlog.c:6033 [12:03:18.363] wasShutdown = false [12:03:18.363] haveTblspcMap = false [12:03:18.363] haveBackupLabel = true [12:03:18.363] promoted = false [12:03:18.363] didCrash = [12:03:18.363] checkPoint = {redo = 33554472, ThisTimeLineID = 1, PrevTimeLineID = , fullPageWrites = true, wal_level = , nextXid = {value = }, nextOid = , nextMulti = , nextMultiOffset = , oldestXid = , oldestXidDB = , oldestMulti = , oldestMultiDB = , time = , oldestCommitTsXid = 0, newestCommitTsXid = 0, oldestActiveXid = 752} [12:03:18.363] oldestActiveXID = [12:03:18.363] performedWalRecovery = [12:03:18.363] endOfRecoveryInfo = [12:03:18.363] EndOfLog = [12:03:18.363] EndOfLogTLI = [12:03:18.363] abortedRecPtr = [12:03:18.363] missingContrecPtr = [12:03:18.363] newTLI = [12:03:18.363] Insert = [12:03:18.363] #19 0x00000000008c545b in StartupProcessMain (startup_data=, startup_data_len=) at ../src/backend/postmaster/startup.c:258 [12:03:18.363] No locals. [12:03:18.363] #20 0x00000000008beeeb in postmaster_child_launch (child_type=child_type@entry=B_STARTUP, child_slot=89, startup_data=startup_data@entry=0x0, startup_data_len=startup_data_len@entry=0, client_sock=client_sock@entry=0x0) at ../src/backend/postmaster/launch_backend.c:290 [12:03:18.363] pid = [12:03:18.363] #21 0x00000000008c1cc7 in StartChildProcess (type=type@entry=B_STARTUP) at ../src/backend/postmaster/postmaster.c:3973 [12:03:18.363] pmchild = 0x0 [12:03:18.363] pid = [12:03:18.363] #22 0x00000000008c16c2 in PostmasterMain (argc=argc@entry=4, argv=argv@entry=0x821138548) at ../src/backend/postmaster/postmaster.c:1393 [12:03:18.363] userDoption = [12:03:18.363] listen_addr_saved = false [12:03:18.363] output_config_variable = [12:03:18.363] opt = [12:03:18.363] status = [12:03:18.363] #23 0x00000000007f4850 in main (argc=4, argv=0x821138548) at ../src/backend/main/main.c:227 [12:03:18.363] do_check_root = [12:03:18.363] dispatch_option = DISPATCH_POSTMASTER