#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 |
Description
Expected behavior of dlerror:
- The error is cleared after each invocation
NULL
is returned when no error is set- Return value is
char *
, notconst char *
http://pubs.opengroup.org/onlinepubs/9699919799/functions/dlerror.html
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:
- RTEMS Version: 4.11 (Branch "4.11", commit 3f72dda6ee518d3ea04341ad4df079ecb1895ef7)
- System Type: ARM Cortex-A9, xilinx_zynq_a9_qemu BSP
- GCC Version:
arm-rtems4.11-gcc (GCC) 4.9.3 20150626 (RTEMS 4.11, RSB 1675a733536d1aec2020011e5e522497a442561a (HEAD, origin/4.11, 4.11), Newlib 2.2.0.20150423)
- 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:02 by Patrick Gauvin
Attachment: | 0001-libdl-Clear-error-between-dlerror-invocations.patch added |
---|
Changed on 06/26/16 at 17:36:13 by Patrick Gauvin
Attachment: | 0002-libdl-dlerror-return-NULL-when-no-error.patch added |
---|
Changed on 06/26/16 at 17:36:22 by Patrick Gauvin
Attachment: | 0003-libdl-Fix-dlerror-return-type.patch added |
---|
Changed on 06/26/16 at 17:36:41 by Patrick Gauvin
Attachment: | 0004-Update-dlerror-usage.patch added |
---|
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: | new → accepted |
---|
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@…>
comment:5 Changed on 02/08/18 at 22:34:06 by Chris Johns
Resolution: | → fixed |
---|---|
Status: | accepted → closed |
In 7093cb5e/rtems: