Commit Graph
17883 Commits
Author SHA1 Message Date
Andrew Johnson 4a69f8f339 macOS: Drop the XCode -flat_namespace flag when possible (#897)
Exactly when this flag was no longer required is unclear, see some
discussion in the linked issue.

Adds Release Notes entry.

Fixes #895.
2026-07-16 17:05:56 -05:00
Jacqueline GarrahanandClaude Opus 4.8 ec0ae7d831 errlog: fix out-of-bounds read when resizing the print buffer
errlogBufResize copied the print buffer from &pvt.print->base (the
address of the char* field inside the buffer_t struct) instead of
pvt.print->base (the buffer it points to), reading bufSize bytes from an
~8-byte struct field.  Drop the stray & so it reads the actual buffer,
matching the adjacent log-buffer copy.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-16 16:57:57 -05:00
Andrew Johnson 605542ece7 Release notes, add a drvet to the example template 2026-07-16 16:16:39 -05:00
Andrew Johnson cd6d2ed042 Move -DUSE_TYPED_DRVET to USR_CPPFLAGS
Also fixes an issue in the generated registerRecordDeviceDriver code.
2026-07-16 16:16:39 -05:00
Érico Nogueira b87b6c91ff Fix UAF in caRepeaterThread
The ca_repeater function has some failure cases which can cause it to
return. In such a situation, a reference to the current thread's
epicsThreadId is kept in the taskwd, causing an eventual use-after-free
when the taskwd tries to determine the task's status.

We fix this problem by removing the thread from the taskwd if
ca_repeater ever returns.
2026-07-06 16:29:52 -07:00
Michael Davidsaver cf85a1a5eb rsrv: log_header paddr=
Currently prints dbChannel**
2026-06-24 18:16:55 -07:00
Michael Davidsaver 07da9aeb32 minor 2026-06-24 18:16:55 -07:00
Michael Davidsaver f634d3d885 fix last LOCAL 2026-06-24 18:16:55 -07:00
Jeremy Lorelli 35a91eed8d database: Replace epicsEventMustSignal -> epicsEventMustTrigger in comments 2026-06-24 17:00:30 -07:00
Michael Davidsaver 4240bc89f9 RtD show typed APIs 2026-06-21 14:49:25 -07:00
Michael Davidsaver 499fec4120 doc devSup.h 2026-06-21 14:49:25 -07:00
Michael Davidsaver 46ab847d8a Document dbScan.h 2026-06-21 14:23:12 -07:00
Michael Davidsaver db67227a96 dbScan one more NUM_TIME_EVENTS 2026-06-21 09:27:55 -07:00
Michael Davidsaver 45a1edcfac minor 2026-06-21 09:27:55 -07:00
mdavidsaver 4b03e97d7b Embed GDB helper
* Add GDB helper script

Pretty printing of some common argument types

Need to add a line to ~/.gdbinit

> add-auto-load-safe-path /path/to/base/checkout/

afterwards verify at GDB shell with

> info auto-load python-scripts
> info pretty-printer

Tested with GDB 16.3 circa Debian 13

Add $rcast(dbCommon) to up-cast
Add $record("name") to lookup record
Add $elln(ELLLIST,#) to index into list
2026-06-21 07:18:08 -07:00
mdavidsaver 58152f6a42 configure: fail hard if RPATH ORIGIN requested, but makeRPath errors out (#890)
* configure: fail hard if RPATH ORIGIN requested, but makeRPath errors out

The $(shell ...) construct stores the numeric exit code in
$(.SHELLSTATUS).  Map zero to empty string, so that
non-zero values select $(error ...).
2026-06-21 07:09:43 -07:00
rhong 987b21f68a Slow search_reply_udp in RTEMS IOCs (#836)
* Use malloc_free_space() instead of malloc_info( &info ) in osiSufficentSpaceInPool
2026-06-18 11:27:53 -05:00
zimoch c5d1668895 print help without echo 2026-06-10 09:56:06 -05:00
zimoch a9444938ed run one Windows build with cmd shell 2026-06-10 09:56:06 -05:00
zimoch 7ceff6087d remove quotes causing problems with Windows cmd shell 2026-06-10 09:56:06 -05:00
zimoch 27b1244e3c fix RELEASE.$(EPICS_HOST_ARCH).local on Windows 2026-06-10 09:56:06 -05:00
Abdalla Al-Dalleh 678092d033 biRecord.c/boRecord.c: Fix gcc -Wsizeof-pointer-memaccess (#887)
../rec/biRecord.c:191:42: warning: argument to ‘sizeof’ in ‘strncpy’
call is the same expression as the source; did you mean to use the
size of the destination? [-Wsizeof-pointer-memaccess]
  191 |         strncpy(pstring,prec->znam,sizeof(prec->znam));
      |                                          ^

Use memcpy instead of snprintf.

STATIC_ASSERT is added to ensure znam and onam are sized enough.
2026-06-10 09:53:31 -05:00
Andrew Johnson 31405196cf Fix #859 in template CONFIG file
Instructions on updating existing modules in the Notes entry.

Also prints warning messages from the modules/Makefile if
$(INSTALL_LOCATION) is empty.
2026-06-09 20:54:08 -05:00
Michael Davidsaver 7e18b8cff0 asDump* quote UAG and HAG entries 2026-06-07 16:35:25 -07:00
Michael Davidsaver 69b91e8074 GHA churn 2026-06-05 16:11:11 -07:00
Torsten Bögershausen 87ee088728 dbAccess.c: Improve logging of illegal field_type
Debugging a problem and looking at the message

recGblDbaddrError: dbPut: Request type is 0 Illegal Database Request Type...
does not help very much: request type 0 is a legal value.

Improve the message to show the field type as well:
recGblDbaddrError: dbPut: dbrType = 0 field_type = DBF_INLIK (14)...

Do the same for both dbPut and dbGet.
2026-05-27 09:52:14 -05:00
Simon Rose d1705d46f2 Refactor tests and add test that errlogInit() can be run more than once 2026-05-27 09:50:20 -05:00
Simon Rose 5122fabf74 Add error/warning ANSI prefixes to error/warning messages 2026-05-27 09:50:20 -05:00
Simon Rose c0117c4b1d Add unrelease for errloginit2 change 2026-05-27 09:50:20 -05:00
Simon Rose cb5c540c4e Block resizes from listener callbacks 2026-05-27 09:50:20 -05:00
Simon Rose 8834727b5b Lock buffer size changes while running thread 2026-05-27 09:50:20 -05:00
Simon Rose 70e34a7a2e Call errlogClampConfig only a single time 2026-05-27 09:50:20 -05:00
Simon Rose 73b89cbcd9 Move frees out of mutex lock 2026-05-27 09:50:20 -05:00
Simon Rose 5037f55ad7 Add release note 2026-05-27 09:50:20 -05:00
Simon Rose a3d76ef8fb Stop flushing the errorlog during init 2026-05-27 09:50:20 -05:00
Simon Rose bf5e39976f Change initial errlogprintfs to printfs
RTEMS performs a few early errlogPrintf calls. This initialises
the errlog buffers to some default values blocking certain tests
from re-initialising the error log later.
2026-05-27 09:50:20 -05:00
Simon Rose 68763a9ae9 Remove errlogBufResize in favour of allowing errlogInit[2] to be called repeatedly 2026-05-27 09:50:20 -05:00
Simon Rose f7c74a04b1 Add warning if errorlog configuration has been clamped 2026-05-27 09:50:20 -05:00
Simon Rose 3b7a5b5106 Make the maximum message size dependent on the buffer size 2026-05-27 09:50:20 -05:00
Simon Rose b334ec80bb Update the error log functionality to avoid losing writes 2026-05-27 09:50:20 -05:00
Simon Rose bb5f12b2fa Add command to show errlog buffer contents 2026-05-27 09:50:20 -05:00
Simon Rose a03d1fbe45 Add commandline utility to resize buffer after being initialised 2026-05-27 09:50:20 -05:00
Simon Rose 6b80b0cfb9 Modify errorlog initialisation to add separate default value 2026-05-27 09:50:20 -05:00
Andrew Johnson 7e68cf7ea6 Adjust make-notes.pl sorting code to avoid a Perl warning 2026-05-15 17:17:07 -05:00
Michael Davidsaver 2f20e78e43 epicsStrPrintEscaped() operate on unterminated string
see 3a2d225682
see f488765631
2026-05-14 08:44:38 -07:00
Michael Davidsaver 8bfe89b57d doc dbBase.h
document dbBase list node types
2026-05-12 18:50:54 -07:00
Andrew Johnson ac0fc2efff Reformat the ReleaseChecklist file
- Remove all the HTML tags
- Convert the table into Markdown sections
- Set release version to 7.0.11
2026-04-15 10:09:52 -05:00
Andrew Johnson 6b6e73b416 Adjust the sort order of the new-notes files
Preparing to sort PR-999.md and PR-1000.md correctly
2026-04-15 10:09:52 -05:00
Andrew Johnson 7ec20ec4d3 Remove duplicate link to dbDefs
Header file lives in libCom so that's what we keep.
2026-04-15 10:09:52 -05:00
Andrew Johnson b5434c1e6b Error message fixes/improvements 2026-04-15 10:09:52 -05:00