#2747 closed defect (fixed)

dlerror non-conformance

Reported by: Patrick Gauvin Owned by: Chris Johns
Priority: normal Milestone: 4.11.3
Component: lib/dl Version: 4.11
Severity: normal Keywords:
Cc: Ryan Slabaugh Blocked By:
Blocking: #3298


Expected behavior of dlerror:

  • The error is cleared after each invocation
  • NULL is returned when no error is set
  • Return value is char *, not const char *


I've attached patches that address these issues, please critique them and I will submit to the development mailing list. They should also apply to master, but they were generated against 4.11.

Development Environment:

arm-rtems4.11-gcc (GCC) 4.9.3 20150626 (RTEMS 4.11, RSB 1675a733536d1aec2020011e5e522497a442561a (HEAD, origin/4.11, 4.11), Newlib

  • RTEMS Configure Options:

../rtems/configure --target=arm-rtems4.11 --enable-rtemsbsp="xilinx_zynq_a9_qemu xilinx_zynq_zedboard xilinx_zynq_csp_cots xilinx_zynq_csp_hybrid" --enable-tests=samples --enable-posix --prefix=$HOME/development/rtems/4.11 --disable-networking

Attachments (4)

Change History (10)

Changed on 06/26/16 at 17:36:22 by Patrick Gauvin

Changed on 06/26/16 at 17:36:41 by Patrick Gauvin

comment:1 Changed on 08/14/17 at 00:12:35 by Chris Johns

Milestone: 4.11.3

comment:2 Changed on 02/05/18 at 04:41:10 by Chris Johns

Status: newaccepted

comment:3 Changed on 02/08/18 at 03:37:08 by Chris Johns

Blocking: 3298 added

comment:4 Changed on 02/08/18 at 22:32:42 by Chris Johns <chrisj@…>

In 7093cb5e/rtems:

libtest/dl01: Add dlerror tests.

Update #2747

comment:5 Changed on 02/08/18 at 22:34:06 by Chris Johns

Resolution: fixed
Status: acceptedclosed

comment:6 Changed on 02/16/18 at 02:16:46 by Chris Johns <chrisj@…>

In 7093cb5e/rtems:

libtest/dl01: Add dlerror tests.

Update #2747

Note: See TracTickets for help on using tickets.