[17:46:31.967] src/tools/ci/cores_backtrace.sh freebsd /tmp/cores [17:46:32.312] dumping /tmp/cores/postgres.13393.core for /tmp/cirrus-ci-build/build/tmp_install/usr/local/pgsql/bin/postgres [17:46:32.470] [New LWP 101791] [17:46:32.568] Core was generated by `postgres: cascade: startup recovering 000000020000000000000004'. [17:46:32.568] Program terminated with signal SIGQUIT, Quit. [17:46:32.568] Sent by thr_kill() from pid 13393 and user 1003. [17:46:32.568] #0 0x000000082abc28fa in _sigprocmask () from /lib/libc.so.7 [17:46:32.617] [17:46:32.617] Thread 1 (LWP 101791): [17:46:32.617] #0 0x000000082abc28fa in _sigprocmask () from /lib/libc.so.7 [17:46:32.617] No symbol table info available. [17:46:32.617] #1 0x000000082abfbf91 in _system () from /lib/libc.so.7 [17:46:32.617] No symbol table info available. [17:46:32.617] #2 0x0000000829cc99d3 in ?? () from /lib/libthr.so.3 [17:46:32.617] No symbol table info available. [17:46:32.617] #3 0x000000000066c7d5 in RestoreArchivedFile (path=path@entry=0x8215c81d0 "pg_wal/00000002", '0' , "4", xlogfname=xlogfname@entry=0x8215c85d0 "00000003.history", recovername=, expectedSize=expectedSize@entry=0, cleanupEnabled=) at ../src/backend/access/transam/xlogarchive.c:177 [17:46:32.617] xlogpath = "pg_wal/RECOVERYHISTORY", '\000' , "\200\t 4\b\000\000\000\210\206\\!\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\350NZ5\b\000\000\000\030NZ5\b\000\000\000\020NZ5\b\000\000\000\020IZ5\b\000\000\000\000\340\344\000\000\000\000\000\000\240\2204\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"... [17:46:32.617] lastRestartPointFname = '0' , "\000\000\000\000\000\000\000\000\030\000\000\0000\000\000\000\260|\\!\b\000\000\000`z\\!\b", '\000' , "\240F\307*\b", '\000' , "\005n\257\000\000\000\000\000\300y\\!\b\000\000\0000\000\000\000\000\000\000\000\210\200\\!\b", '\000' , "py\\!\b\000\000\000Sq\257", '\000' , "\005n\257\000\000\000\000\000\210\200\\!\b\000\000\000\376\377\377\377\000\000\000\000\002", '\000' ... [17:46:32.617] stat_buf = {st_dev = 90112, st_ino = 2, st_nlink = 34919449024, st_mode = 26771, st_padding0 = 175, st_uid = 0, st_gid = 559710656, st_padding1 = 8, st_rdev = 35076167143, st_atim = {tv_sec = 19377, tv_nsec = 3}, st_mtim = {tv_sec = 35313730508, tv_nsec = 29400}, st_ctim = {tv_sec = -72340172838076673, tv_nsec = -9187201950435737472}, st_birthtim = {tv_sec = 8149631739487877610, tv_nsec = 34919449008}, st_size = 6, st_blocks = 0, st_blksize = 78, st_flags = 0, st_gen = 35077441184, st_spare = {34919448944, 35076692655, 1739468421, 15598157584665683399, 8149631739487877610, 2, 0, 34919449008, 206158430240, 34919449040}} [17:46:32.617] restartRedoPtr = 34919448768 [17:46:32.617] restartTli = 8 [17:46:32.617] restartSegNo = [17:46:32.617] xlogRestoreCmd = 0x8348d3938 "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\"" [17:46:32.617] rc = [17:46:32.617] #4 0x00000000006537b8 in existsTimeLineHistory (probeTLI=probeTLI@entry=3) at ../src/backend/access/transam/timeline.c:235 [17:46:32.617] path = "pg_wal/00000002", '0' , "4", '\000' , "8\220\016\"\b\000\000\000\001\000\000\000\000\000\000\000\b4\016\"\b\000\000\0008R\251*\b\000\000\000\250\204\\!\b\000\000\000\360\203\\!\b\000\000\000`\202\\!\b", '\000' , "\b\300\r\"\b\000\000\000 \000\000\000\000\000\000\000\340\203\\!\b\000\000\000\347Ze\335\0300\000\000\b\300\r\"\b\000\000\000\b\304\r\"\b\000\000\000\b\310\r\"\b\000\000\000\b\314\r\"\b\000\000\000\b\000\016\"\b\000\000\000\b\004\016\"\b\000\000\000\b\b\016\"\b\000\000\000"... [17:46:32.617] histfname = "00000003.history\000\206\\!\b\000\000\000ϙ\221", '\000' , "\377\377\377\377\377\377\377\377\352ylr\343N\031q\000\000\000\000\000\000\000" [17:46:32.617] fd = [17:46:32.617] #5 0x0000000000653878 in findNewestTimeLine (startTLI=startTLI@entry=2) at ../src/backend/access/transam/timeline.c:277 [17:46:32.617] newestTLI = 2 [17:46:32.617] probeTLI = 3 [17:46:32.617] #6 0x0000000000677c4b in rescanLatestTimeLine (replayTLI=replayTLI@entry=2, replayLSN=replayLSN@entry=67199064) at ../src/backend/access/transam/xlogrecovery.c:4127 [17:46:32.617] oldtarget = 2 [17:46:32.617] currentTle = 0x0 [17:46:32.617] newtarget = [17:46:32.617] newExpectedTLEs = [17:46:32.617] found = [17:46:32.617] cell = [17:46:32.617] #7 0x0000000000673e33 in WaitForWALToBecomeAvailable (RecPtr=67199088, tliRecPtr=67199064, replayTLI=2, replayLSN=67199064, randAccess=, fetching_ckpt=, nonblocking=) at ../src/backend/access/transam/xlogrecovery.c:3689 [17:46:32.617] startWalReceiver = false [17:46:32.617] streaming_reply_sent = true [17:46:32.617] now = [17:46:32.617] startWalReceiver = [17:46:32.617] oldSource = [17:46:32.617] wait_time = [17:46:32.617] __error = [17:46:32.617] __error = [17:46:32.617] __error = [17:46:32.617] havedata = [17:46:32.617] ptr = [17:46:32.617] tli = [17:46:32.617] __error = [17:46:32.617] latestChunkStart = [17:46:32.617] __error = [17:46:32.617] #8 XLogPageRead (xlogreader=0x8347e3130, targetPagePtr=67198976, reqLen=112, targetRecPtr=67199064, readBuf=0x8348cfff8 "\030\321\006") at ../src/backend/access/transam/xlogrecovery.c:3355 [17:46:32.617] private = 0x8347e3110 [17:46:32.617] emode = 15 [17:46:32.617] targetSegNo = 4 [17:46:32.617] targetPageOff = 90112 [17:46:32.617] io_start = [17:46:32.617] r = [17:46:32.617] #9 0x000000000067ab92 in ReadPageInternal (state=state@entry=0x8347e3130, pageptr=67198976, reqLen=112) at ../src/backend/access/transam/xlogreader.c:1061 [17:46:32.617] targetSegNo = 4 [17:46:32.617] targetPageOff = 90112 [17:46:32.617] readLen = [17:46:32.617] hdr = [17:46:32.617] err = [17:46:32.617] #10 0x0000000000679a02 in XLogDecodeNextRecord (state=0x8347e3130, nonblocking=false) at ../src/backend/access/transam/xlogreader.c:598 [17:46:32.617] errormsg = 0x8215ccc98 "" [17:46:32.617] randAccess = [17:46:32.617] decoded = 0x0 [17:46:32.617] RecPtr = 67199064 [17:46:32.617] assembled = false [17:46:32.617] targetPagePtr = 34919446464 [17:46:32.617] readOff = [17:46:32.617] record = [17:46:32.617] gotheader = [17:46:32.617] targetRecOff = 88 [17:46:32.617] pageHeaderSize = [17:46:32.617] len = [17:46:32.617] total_len = [17:46:32.617] buffer = [17:46:32.617] gotlen = [17:46:32.617] pageHeader = [17:46:32.617] contdata = [17:46:32.617] save_copy = [17:46:32.617] #11 XLogReadAhead (state=0x8347e3130, nonblocking=false) at ../src/backend/access/transam/xlogreader.c:974 [17:46:32.617] result = [17:46:32.617] #12 0x00000000006710f8 in XLogPrefetcherNextBlock (pgsr_private=35241402376, lsn=0x8348fff98) at ../src/backend/access/transam/xlogprefetcher.c:490 [17:46:32.617] nonblocking = false [17:46:32.617] record = 0x0 [17:46:32.617] prefetcher = 0x8348d2008 [17:46:32.617] reader = 0x8347e3130 [17:46:32.617] replaying_lsn = 67198632 [17:46:32.617] #13 0x0000000000670d62 in lrq_prefetch (lrq=0x8348ffd28) at ../src/backend/access/transam/xlogprefetcher.c:252 [17:46:32.617] No locals. [17:46:32.617] #14 lrq_complete_lsn (lrq=0x8348ffd28, lsn=) at ../src/backend/access/transam/xlogprefetcher.c:290 [17:46:32.617] No locals. [17:46:32.617] #15 XLogPrefetcherReadRecord (prefetcher=prefetcher@entry=0x8348d2008, errmsg=errmsg@entry=0x8215ccd60) at ../src/backend/access/transam/xlogprefetcher.c:1035 [17:46:32.617] replayed_up_to = [17:46:32.617] record = [17:46:32.617] #16 0x00000000006748ea in ReadRecord (xlogprefetcher=0x8348d2008, emode=emode@entry=15, fetching_ckpt=false, replayTLI=replayTLI@entry=2) at ../src/backend/access/transam/xlogrecovery.c:3154 [17:46:32.617] errormsg = 0x8347e3940 "" [17:46:32.617] xlogreader = 0x8347e3130 [17:46:32.617] private = [17:46:32.617] record = [17:46:32.617] #17 0x00000000006751c9 in PerformWalRecovery () at ../src/backend/access/transam/xlogrecovery.c:1833 [17:46:32.617] ru0 = {tv = {tv_sec = 1739468421, tv_usec = 255484}, ru = {ru_utime = {tv_sec = 0, tv_usec = 0}, ru_stime = {tv_sec = 0, tv_usec = 1008}, ru_maxrss = 26432, ru_ixrss = 6104, ru_idrss = 368, ru_isrss = 128, ru_minflt = 158, 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}} [17:46:32.617] xtime = [17:46:32.617] reachedRecoveryTarget = false [17:46:32.617] replayTLI = 2 [17:46:32.617] record = [17:46:32.617] #18 0x0000000000665ae3 in StartupXLOG () at ../src/backend/access/transam/xlog.c:5869 [17:46:32.617] wasShutdown = false [17:46:32.617] haveTblspcMap = false [17:46:32.617] haveBackupLabel = true [17:46:32.617] promoted = false [17:46:32.617] didCrash = [17:46:32.617] 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} [17:46:32.617] oldestActiveXID = [17:46:32.617] performedWalRecovery = [17:46:32.617] endOfRecoveryInfo = [17:46:32.617] EndOfLog = [17:46:32.617] EndOfLogTLI = [17:46:32.617] abortedRecPtr = [17:46:32.617] missingContrecPtr = [17:46:32.617] newTLI = [17:46:32.617] Insert = [17:46:32.617] #19 0x000000000089fd1b in StartupProcessMain (startup_data=, startup_data_len=) at ../src/backend/postmaster/startup.c:258 [17:46:32.617] No locals. [17:46:32.617] #20 0x000000000089a0b5 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 [17:46:32.617] pid = [17:46:32.617] #21 0x000000000089ccb7 in StartChildProcess (type=type@entry=B_STARTUP) at ../src/backend/postmaster/postmaster.c:3905 [17:46:32.617] pmchild = 0x0 [17:46:32.617] pid = [17:46:32.617] #22 0x000000000089c852 in PostmasterMain (argc=argc@entry=4, argv=argv@entry=0x8215d1c78) at ../src/backend/postmaster/postmaster.c:1378 [17:46:32.617] userDoption = [17:46:32.617] listen_addr_saved = false [17:46:32.617] output_config_variable = [17:46:32.617] opt = [17:46:32.617] status = [17:46:32.617] #23 0x00000000007d2ce0 in main (argc=4, argv=0x8215d1c78) at ../src/backend/main/main.c:230 [17:46:32.617] do_check_root = [17:46:32.617] dispatch_option = DISPATCH_POSTMASTER