[00:58:22.871] src/tools/ci/cores_backtrace.sh freebsd /tmp/cores [00:58:23.158] dumping /tmp/cores/postgres.14277.core for /tmp/cirrus-ci-build/build/tmp_install/usr/local/pgsql/bin/postgres [00:58:23.289] [New LWP 101901] [00:58:23.368] Core was generated by `postgres: cascade: startup recovering 000000020000000000000004'. [00:58:23.368] Program terminated with signal SIGQUIT, Quit. [00:58:23.368] Sent by thr_kill() from pid 14277 and user 1003. [00:58:23.368] #0 0x000000082bd9d8fa in _sigprocmask () from /lib/libc.so.7 [00:58:23.411] [00:58:23.411] Thread 1 (LWP 101901): [00:58:23.411] #0 0x000000082bd9d8fa in _sigprocmask () from /lib/libc.so.7 [00:58:23.411] No symbol table info available. [00:58:23.411] #1 0x000000082bdd6f91 in _system () from /lib/libc.so.7 [00:58:23.411] No symbol table info available. [00:58:23.411] #2 0x00000008295ed9d3 in ?? () from /lib/libthr.so.3 [00:58:23.411] No symbol table info available. [00:58:23.411] #3 0x0000000000670d75 in RestoreArchivedFile (path=path@entry=0x820f231d0 "pg_wal/00000002", '0' , "4", xlogfname=xlogfname@entry=0x820f235d0 "00000003.history", recovername=, expectedSize=expectedSize@entry=0, cleanupEnabled=) at ../src/backend/access/transam/xlogarchive.c:177 [00:58:23.411] xlogpath = "pg_wal/RECOVERYHISTORY", '\000' , "\200\t\2403\b\000\000\000\2106\362 \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͠3\b\000\000\0008*\0325\b\000\000\000h)\0325\b\000\000\000`)\0325\b\000\000\000`$\0325\b\000\000\000\000\340\344\000\000\000\000\000\000@G4\b\000\000\000\000\020\n\000\000\000\000\000 -\362 \b\000\000\000 -\362 \b", '\000' , "\350.\362 \b\000\000\000h-\362 \b\000\000\000\b\000\000\0000\000\000\000\320"... [00:58:23.411] lastRestartPointFname = '0' , "\000\000\000\000\000\000\000\000\030\000\000\0000\000\000\000\260,\362 \b\000\000\000`*\362 \b", '\000' , "\240\366\344+\b", '\000' , "\325;\257\000\000\000\000\000\300)\362 \b\000\000\0000\000\000\000\000\000\000\000\2100\362 \b", '\000' , "p)\362 \b\000\000\000#?\257", '\000' , "\325;\257\000\000\000\000\000\2100\362 \b\000\000\000\376\377\377\377\000\000\000\000\002", '\000' ... [00:58:23.411] stat_buf = {st_dev = 98304, st_ino = 2, st_nlink = 34912481728, st_mode = 13923, st_padding0 = 175, st_uid = 0, st_gid = 552743360, st_padding1 = 8, st_rdev = 35094889959, st_atim = {tv_sec = 15014, tv_nsec = 3}, st_mtim = {tv_sec = 35304599172, tv_nsec = 28560}, st_ctim = {tv_sec = -72340172838076673, tv_nsec = -9187201950435737472}, st_birthtim = {tv_sec = 4578281121142456479, tv_nsec = 34912481712}, st_size = 6, st_blocks = 0, st_blksize = 78, st_flags = 0, st_gen = 35096164000, st_spare = {34912481648, 35095415471, 1735087761, 3661648917806380112, 4578281121142456479, 2, 0, 34912481712, 206158430240, 34912481744}} [00:58:23.411] restartRedoPtr = 34912481472 [00:58:23.411] restartTli = 8 [00:58:23.411] restartSegNo = [00:58:23.411] xlogRestoreCmd = 0x83443d8b8 "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:58:23.411] rc = [00:58:23.411] #4 0x0000000000657e28 in existsTimeLineHistory (probeTLI=probeTLI@entry=3) at ../src/backend/access/transam/timeline.c:235 [00:58:23.411] path = "pg_wal/00000002", '0' , "4\000 1\362 \b\000\000\000\231ì\000\000\000\000\000\360\000\000\000\000\000\000\000d\000\000\000\000\000\000\000\000\34044\b", '\000' , "\017\276\000\000\000\000\000\0001\276\000\000\000\000\000@6\362 \b\000\000\000\371h\252\000\000\000\000\000\b\340\225!\b\000\000\000 \000\000\000\000\000\000\000\3403\362 \b\000\000\000\347\372\017\027\026\005\000\000\b\340\225!\b\000\000\000\b\344\225!\b\000\000\000\b\350\225!\b\000\000\000\b\354\225!\b\000\000\000\b \226!\b\000\000\000\b$\226!\b\000\000\000\b(\226!\b\000\000\000\b"... [00:58:23.411] histfname = "00000003.history\0006\362 \b\000\000\000_\210\221\000\000\000\000\000\377\377\377\377\377\377\377\377\000\000\000\000\000\000\000\000\237\300\222ClR\211?\000\000\000\000\000\000\000" [00:58:23.411] fd = [00:58:23.411] #5 0x0000000000657ee8 in findNewestTimeLine (startTLI=startTLI@entry=2) at ../src/backend/access/transam/timeline.c:277 [00:58:23.411] newestTLI = 2 [00:58:23.411] probeTLI = 3 [00:58:23.411] #6 0x000000000067c18b in rescanLatestTimeLine (replayTLI=replayTLI@entry=2, replayLSN=replayLSN@entry=67210800) at ../src/backend/access/transam/xlogrecovery.c:4114 [00:58:23.411] oldtarget = 2 [00:58:23.411] currentTle = 0x0 [00:58:23.411] newtarget = [00:58:23.411] newExpectedTLEs = [00:58:23.411] found = [00:58:23.411] cell = [00:58:23.411] #7 0x00000000006783e3 in WaitForWALToBecomeAvailable (RecPtr=67210824, tliRecPtr=67210800, replayTLI=2, replayLSN=67210800, randAccess=, fetching_ckpt=, nonblocking=) at ../src/backend/access/transam/xlogrecovery.c:3676 [00:58:23.411] startWalReceiver = false [00:58:23.411] streaming_reply_sent = true [00:58:23.411] now = [00:58:23.411] startWalReceiver = [00:58:23.411] oldSource = [00:58:23.411] wait_time = [00:58:23.411] __error = [00:58:23.411] __error = [00:58:23.411] __error = [00:58:23.411] havedata = [00:58:23.411] ptr = [00:58:23.411] tli = [00:58:23.411] __error = [00:58:23.411] latestChunkStart = [00:58:23.411] __error = [00:58:23.411] #8 XLogPageRead (xlogreader=0x83434d130, targetPagePtr=67207168, reqLen=3656, targetRecPtr=67210800, readBuf=0x834439f78 "\030\321\006") at ../src/backend/access/transam/xlogrecovery.c:3353 [00:58:23.411] private = 0x83434d110 [00:58:23.411] emode = 15 [00:58:23.411] targetSegNo = 4 [00:58:23.411] targetPageOff = 98304 [00:58:23.411] r = [00:58:23.411] #9 0x000000000067f0d2 in ReadPageInternal (state=state@entry=0x83434d130, pageptr=67207168, reqLen=3656) at ../src/backend/access/transam/xlogreader.c:1060 [00:58:23.411] targetSegNo = 4 [00:58:23.411] targetPageOff = 98304 [00:58:23.411] readLen = [00:58:23.411] hdr = [00:58:23.411] err = [00:58:23.411] #10 0x000000000067df42 in XLogDecodeNextRecord (state=0x83434d130, nonblocking=false) at ../src/backend/access/transam/xlogreader.c:597 [00:58:23.411] errormsg = 0x820f27c98 "" [00:58:23.411] randAccess = [00:58:23.411] decoded = 0x0 [00:58:23.411] RecPtr = 67210800 [00:58:23.411] assembled = false [00:58:23.411] targetPagePtr = 34912479168 [00:58:23.411] readOff = [00:58:23.411] record = [00:58:23.411] gotheader = [00:58:23.411] targetRecOff = 3632 [00:58:23.411] pageHeaderSize = [00:58:23.411] len = [00:58:23.411] total_len = [00:58:23.411] buffer = [00:58:23.411] gotlen = [00:58:23.411] pageHeader = [00:58:23.411] contdata = [00:58:23.411] save_copy = [00:58:23.411] #11 XLogReadAhead (state=0x83434d130, nonblocking=false) at ../src/backend/access/transam/xlogreader.c:973 [00:58:23.411] result = [00:58:23.411] #12 0x0000000000675698 in XLogPrefetcherNextBlock (pgsr_private=35236593544, lsn=0x83446a308) at ../src/backend/access/transam/xlogprefetcher.c:490 [00:58:23.411] nonblocking = false [00:58:23.411] record = 0x0 [00:58:23.411] prefetcher = 0x83443bf88 [00:58:23.411] reader = 0x83434d130 [00:58:23.411] replaying_lsn = 67210392 [00:58:23.411] #13 0x0000000000675302 in lrq_prefetch (lrq=0x83446a068) at ../src/backend/access/transam/xlogprefetcher.c:252 [00:58:23.411] No locals. [00:58:23.411] #14 lrq_complete_lsn (lrq=0x83446a068, lsn=) at ../src/backend/access/transam/xlogprefetcher.c:290 [00:58:23.411] No locals. [00:58:23.411] #15 XLogPrefetcherReadRecord (prefetcher=prefetcher@entry=0x83443bf88, errmsg=errmsg@entry=0x820f27d60) at ../src/backend/access/transam/xlogprefetcher.c:1035 [00:58:23.411] replayed_up_to = [00:58:23.411] record = [00:58:23.411] #16 0x0000000000678e2a in ReadRecord (xlogprefetcher=0x83443bf88, emode=emode@entry=15, fetching_ckpt=false, replayTLI=replayTLI@entry=2) at ../src/backend/access/transam/xlogrecovery.c:3153 [00:58:23.411] errormsg = 0x83434d940 "" [00:58:23.411] xlogreader = 0x83434d130 [00:58:23.411] private = [00:58:23.411] record = [00:58:23.411] #17 0x0000000000679709 in PerformWalRecovery () at ../src/backend/access/transam/xlogrecovery.c:1832 [00:58:23.411] ru0 = {tv = {tv_sec = 1735087760, tv_usec = 479575}, ru = {ru_utime = {tv_sec = 0, tv_usec = 0}, ru_stime = {tv_sec = 0, tv_usec = 1023}, ru_maxrss = 0, ru_ixrss = 0, ru_idrss = 0, ru_isrss = 0, ru_minflt = 148, 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:58:23.411] xtime = [00:58:23.411] reachedRecoveryTarget = false [00:58:23.411] replayTLI = 2 [00:58:23.411] record = [00:58:23.411] #18 0x000000000066a0a3 in StartupXLOG () at ../src/backend/access/transam/xlog.c:5848 [00:58:23.411] wasShutdown = false [00:58:23.411] haveTblspcMap = false [00:58:23.411] haveBackupLabel = true [00:58:23.411] promoted = false [00:58:23.411] didCrash = [00:58:23.411] 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:58:23.411] oldestActiveXID = [00:58:23.411] performedWalRecovery = [00:58:23.411] endOfRecoveryInfo = [00:58:23.411] EndOfLog = [00:58:23.411] EndOfLogTLI = [00:58:23.411] abortedRecPtr = [00:58:23.411] missingContrecPtr = [00:58:23.411] newTLI = [00:58:23.411] Insert = [00:58:23.411] #19 0x000000000089f3cb in StartupProcessMain (startup_data=, startup_data_len=) at ../src/backend/postmaster/startup.c:258 [00:58:23.411] No locals. [00:58:23.411] #20 0x00000000008999f5 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:58:23.411] pid = [00:58:23.411] #21 0x000000000089c5f7 in StartChildProcess (type=type@entry=B_STARTUP) at ../src/backend/postmaster/postmaster.c:3711 [00:58:23.411] pmchild = 0x0 [00:58:23.411] pid = [00:58:23.411] #22 0x000000000089c192 in PostmasterMain (argc=argc@entry=4, argv=argv@entry=0x820f2cd08) at ../src/backend/postmaster/postmaster.c:1363 [00:58:23.411] userDoption = [00:58:23.411] listen_addr_saved = false [00:58:23.411] output_config_variable = [00:58:23.411] opt = [00:58:23.411] status = [00:58:23.411] #23 0x00000000007d3b50 in main (argc=4, argv=0x820f2cd08) at ../src/backend/main/main.c:230 [00:58:23.411] do_check_root = [00:58:23.411] dispatch_option = DISPATCH_POSTMASTER