[00:06:00.734] src/tools/ci/cores_backtrace.sh freebsd /tmp/cores [00:06:01.081] dumping /tmp/cores/postgres.13220.core for /tmp/cirrus-ci-build/build/tmp_install/usr/local/pgsql/bin/postgres [00:06:01.217] [New LWP 101800] [00:06:01.300] Core was generated by `postgres: cascade: startup recovering 000000020000000000000004'. [00:06:01.300] Program terminated with signal SIGQUIT, Quit. [00:06:01.300] Sent by thr_kill() from pid 13220 and user 1003. [00:06:01.300] #0 0x000000082b7dc8fa in _sigprocmask () from /lib/libc.so.7 [00:06:01.348] [00:06:01.348] Thread 1 (LWP 101800): [00:06:01.348] #0 0x000000082b7dc8fa in _sigprocmask () from /lib/libc.so.7 [00:06:01.348] No symbol table info available. [00:06:01.348] #1 0x000000082b815f91 in _system () from /lib/libc.so.7 [00:06:01.348] No symbol table info available. [00:06:01.348] #2 0x000000082a6d19d3 in ?? () from /lib/libthr.so.3 [00:06:01.348] No symbol table info available. [00:06:01.348] #3 0x000000000066a375 in RestoreArchivedFile (path=path@entry=0x8213f31d0 "pg_wal/00000002", '0' , "4", xlogfname=xlogfname@entry=0x8213f35d0 "00000003.history", recovername=, expectedSize=expectedSize@entry=0, cleanupEnabled=) at ../src/backend/access/transam/xlogarchive.c:177 [00:06:01.348] xlogpath = "pg_wal/RECOVERYHISTORY", '\000' , "\200\t 4\b\000\000\000\2106?!\b\000\000\0009\000\000\000\000\000\000\000\000\000\344\000\000\000\000\000\000\020\n\000\000\000\000\000\200\315 4\b\000\000\000(7\3724\b\000\000\000H6\3724\b\000\000\000@6\3724\b\000\000\000@1\3724\b\000\000\000\000\340\344\000\000\000\000\000\000\000a4\b\000\000\000\000\020\n\000\000\000\000\000 -?!\b\000\000\000 -?!\b", '\000' , "\350.?!\b\000\000\000h-?!\b\000\000\000\b\000\000\0000\000\000\000"... [00:06:01.348] lastRestartPointFname = '0' , "\000\000\000\000\000\000\000\000\030\000\000\0000\000\000\000\260,?!\b\000\000\000`*?!\b", '\000' , "\240\346\210+\b", '\000' , "E'\257\000\000\000\000\000\300)?!\b\000\000\0000\000\000\000\000\000\000\000\2100?!\b", '\000' , "p)?!\b\000\000\000\223*\257", '\000' , "E'\257\000\000\000\000\000\2100?!\b\000\000\000\376\377\377\377\000\000\000\000\002", '\000' ... [00:06:01.348] stat_buf = {st_dev = 67117056, st_ino = 2, st_nlink = 34917528000, st_mode = 8659, st_padding0 = 175, st_uid = 0, st_gid = 557789504, st_padding1 = 8, st_rdev = 1, st_atim = {tv_sec = 11941, tv_nsec = 3}, st_mtim = {tv_sec = 35278733444, tv_nsec = 28560}, st_ctim = {tv_sec = -72340172838076673, tv_nsec = 6160702154534289409}, st_birthtim = {tv_sec = -12157472691094186, tv_nsec = 34917527984}, st_size = 6, st_blocks = 0, st_blksize = 78, st_flags = 0, st_gen = 35090130592, st_spare = {34917527920, 35089382063, 1738281618, 10180814622909380151, 18434586601018457430, 2, 0, 34917527984, 206158430240, 34917528016}} [00:06:01.348] restartRedoPtr = 34917527744 [00:06:01.348] restartTli = 8 [00:06:01.348] restartSegNo = [00:06:01.348] xlogRestoreCmd = 0x8345d8c78 "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\"" [00:06:01.348] rc = [00:06:01.348] #4 0x0000000000651438 in existsTimeLineHistory (probeTLI=probeTLI@entry=3) at ../src/backend/access/transam/timeline.c:235 [00:06:01.348] path = "pg_wal/00000002", '0' , "4", '\000' , "8`]!\b\000\000\000\001\000\000\000\000\000\000\000\b\004]!\b\000\000\0008\362j+\b\000\000\000\2504?!\b\000\000\000\3603?!\b\000\000\000`2?!\b", '\000' , "\b\220\\!\b\000\000\000 \000\000\000\000\000\000\000\3403?!\b\000\000\000\347J\234%\302*\000\000\b\220\\!\b\000\000\000\b\224\\!\b\000\000\000\b\230\\!\b\000\000\000\b\234\\!\b\000\000\000\b\320\\!\b\000\000\000\b\324\\!\b\000\000\000\b\330\\!\b\000\000\000"... [00:06:01.348] histfname = "00000003.history\000}\341\316\327\316\324\377\000\000\000\000\000\000\000\000\240\346\210+\b\000\000\000\000!\3126\b\000\000\000@6?!\b\000\000\000\272\237u+\b\000\000" [00:06:01.348] fd = [00:06:01.348] #5 0x00000000006514f8 in findNewestTimeLine (startTLI=startTLI@entry=2) at ../src/backend/access/transam/timeline.c:277 [00:06:01.348] newestTLI = 2 [00:06:01.348] probeTLI = 3 [00:06:01.348] #6 0x000000000067579b in rescanLatestTimeLine (replayTLI=replayTLI@entry=2, replayLSN=replayLSN@entry=67199064) at ../src/backend/access/transam/xlogrecovery.c:4115 [00:06:01.348] oldtarget = 2 [00:06:01.348] currentTle = 0x0 [00:06:01.348] newtarget = [00:06:01.348] newExpectedTLEs = [00:06:01.348] found = [00:06:01.348] cell = [00:06:01.348] #7 0x00000000006719e3 in WaitForWALToBecomeAvailable (RecPtr=67117056, tliRecPtr=67199064, replayTLI=2, replayLSN=67199064, randAccess=, fetching_ckpt=, nonblocking=) at ../src/backend/access/transam/xlogrecovery.c:3677 [00:06:01.348] startWalReceiver = false [00:06:01.348] streaming_reply_sent = false [00:06:01.348] now = [00:06:01.348] startWalReceiver = [00:06:01.348] oldSource = [00:06:01.348] wait_time = [00:06:01.348] __error = [00:06:01.348] __error = [00:06:01.348] __error = [00:06:01.348] havedata = [00:06:01.348] ptr = [00:06:01.348] tli = [00:06:01.348] __error = [00:06:01.348] latestChunkStart = [00:06:01.348] __error = [00:06:01.348] #8 XLogPageRead (xlogreader=0x8344eb130, targetPagePtr=67108864, reqLen=8192, targetRecPtr=67199064, readBuf=0x8345d5338 "\030\321\005") at ../src/backend/access/transam/xlogrecovery.c:3353 [00:06:01.348] private = 0x8344eb110 [00:06:01.348] emode = 15 [00:06:01.348] targetSegNo = 4 [00:06:01.348] targetPageOff = 0 [00:06:01.348] r = [00:06:01.348] #9 0x0000000000678666 in ReadPageInternal (state=state@entry=0x8344eb130, pageptr=67198976, reqLen=112) at ../src/backend/access/transam/xlogreader.c:1040 [00:06:01.348] targetSegmentPtr = 67108864 [00:06:01.348] targetSegNo = 4 [00:06:01.348] targetPageOff = 90112 [00:06:01.348] readLen = [00:06:01.348] hdr = [00:06:01.348] err = [00:06:01.348] #10 0x0000000000677552 in XLogDecodeNextRecord (state=0x8344eb130, nonblocking=false) at ../src/backend/access/transam/xlogreader.c:597 [00:06:01.348] errormsg = 0x8213f7c98 "" [00:06:01.348] randAccess = [00:06:01.348] decoded = 0x0 [00:06:01.348] RecPtr = 67199064 [00:06:01.348] assembled = false [00:06:01.348] targetPagePtr = 34917525440 [00:06:01.348] readOff = [00:06:01.348] record = [00:06:01.348] gotheader = [00:06:01.348] targetRecOff = 88 [00:06:01.348] pageHeaderSize = [00:06:01.348] len = [00:06:01.348] total_len = [00:06:01.348] buffer = [00:06:01.348] gotlen = [00:06:01.348] pageHeader = [00:06:01.348] contdata = [00:06:01.348] save_copy = [00:06:01.348] #11 XLogReadAhead (state=0x8344eb130, nonblocking=false) at ../src/backend/access/transam/xlogreader.c:973 [00:06:01.348] result = [00:06:01.348] #12 0x000000000066ec98 in XLogPrefetcherNextBlock (pgsr_private=35238277960, lsn=0x834606358) at ../src/backend/access/transam/xlogprefetcher.c:490 [00:06:01.348] nonblocking = false [00:06:01.348] record = 0x0 [00:06:01.348] prefetcher = 0x8345d7348 [00:06:01.348] reader = 0x8344eb130 [00:06:01.348] replaying_lsn = 67198632 [00:06:01.348] #13 0x000000000066e902 in lrq_prefetch (lrq=0x8346060e8) at ../src/backend/access/transam/xlogprefetcher.c:252 [00:06:01.348] No locals. [00:06:01.348] #14 lrq_complete_lsn (lrq=0x8346060e8, lsn=) at ../src/backend/access/transam/xlogprefetcher.c:290 [00:06:01.348] No locals. [00:06:01.348] #15 XLogPrefetcherReadRecord (prefetcher=prefetcher@entry=0x8345d7348, errmsg=errmsg@entry=0x8213f7d60) at ../src/backend/access/transam/xlogprefetcher.c:1035 [00:06:01.348] replayed_up_to = [00:06:01.348] record = [00:06:01.348] #16 0x000000000067243a in ReadRecord (xlogprefetcher=0x8345d7348, emode=emode@entry=15, fetching_ckpt=false, replayTLI=replayTLI@entry=2) at ../src/backend/access/transam/xlogrecovery.c:3153 [00:06:01.348] errormsg = 0x8344eb940 "" [00:06:01.348] xlogreader = 0x8344eb130 [00:06:01.348] private = [00:06:01.348] record = [00:06:01.348] #17 0x0000000000672d19 in PerformWalRecovery () at ../src/backend/access/transam/xlogrecovery.c:1832 [00:06:01.348] ru0 = {tv = {tv_sec = 1738281617, tv_usec = 973582}, ru = {ru_utime = {tv_sec = 0, tv_usec = 0}, ru_stime = {tv_sec = 0, tv_usec = 1061}, ru_maxrss = 0, ru_ixrss = 0, ru_idrss = 0, ru_isrss = 0, ru_minflt = 150, ru_majflt = 0, ru_nswap = 0, ru_inblock = 0, ru_oublock = 0, ru_msgsnd = 0, ru_msgrcv = 0, ru_nsignals = 0, ru_nvcsw = 12, ru_nivcsw = 2}} [00:06:01.348] xtime = [00:06:01.348] reachedRecoveryTarget = false [00:06:01.348] replayTLI = 2 [00:06:01.348] record = [00:06:01.348] #18 0x00000000006636a3 in StartupXLOG () at ../src/backend/access/transam/xlog.c:5848 [00:06:01.348] wasShutdown = false [00:06:01.348] haveTblspcMap = false [00:06:01.348] haveBackupLabel = true [00:06:01.348] promoted = false [00:06:01.348] didCrash = [00:06:01.348] checkPoint = {redo = 33554472, ThisTimeLineID = 1, PrevTimeLineID = , fullPageWrites = true, wal_level = , nextXid = {value = }, nextOid = , nextMulti = , nextMultiOffset = , oldestXid = , oldestXidDB = 1, oldestMulti = , oldestMultiDB = , time = , oldestCommitTsXid = 0, newestCommitTsXid = 0, oldestActiveXid = 743} [00:06:01.348] oldestActiveXID = [00:06:01.348] performedWalRecovery = [00:06:01.348] endOfRecoveryInfo = [00:06:01.348] EndOfLog = [00:06:01.348] EndOfLogTLI = [00:06:01.348] abortedRecPtr = [00:06:01.348] missingContrecPtr = [00:06:01.348] newTLI = [00:06:01.348] Insert = [00:06:01.348] #19 0x000000000089c08b in StartupProcessMain (startup_data=, startup_data_len=) at ../src/backend/postmaster/startup.c:258 [00:06:01.348] No locals. [00:06:01.348] #20 0x0000000000896425 in postmaster_child_launch (child_type=child_type@entry=B_STARTUP, child_slot=57, 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:274 [00:06:01.348] pid = [00:06:01.348] #21 0x0000000000899027 in StartChildProcess (type=type@entry=B_STARTUP) at ../src/backend/postmaster/postmaster.c:3905 [00:06:01.348] pmchild = 0x0 [00:06:01.348] pid = [00:06:01.348] #22 0x0000000000898bc2 in PostmasterMain (argc=argc@entry=4, argv=argv@entry=0x8213fc7e0) at ../src/backend/postmaster/postmaster.c:1378 [00:06:01.348] userDoption = [00:06:01.348] listen_addr_saved = false [00:06:01.348] output_config_variable = [00:06:01.348] opt = [00:06:01.348] status = [00:06:01.348] #23 0x00000000007cf320 in main (argc=4, argv=0x8213fc7e0) at ../src/backend/main/main.c:230 [00:06:01.348] do_check_root = [00:06:01.348] dispatch_option = DISPATCH_POSTMASTER