gcompat issueshttps://git.adelielinux.org/adelie/gcompat/-/issues2020-08-11T00:17:02Zhttps://git.adelielinux.org/adelie/gcompat/-/issues/341Inverted assertion in __poll_chk2020-08-11T00:17:02ZEmilyInverted assertion in __poll_chk| | |
| --- | --- |
| Bugzilla ID | 341 |
| Reporter | Magne Hov |
| Assignee | A. Wilcox (awilfox) |
| Reported | 2020-08-05 13:11:25 -0500 |
| Modified | 2020-08-10 19:17:02 -0500 |
| Status | RESOLVED FIXED |
| Version | 0.2.0 |
| H...| | |
| --- | --- |
| Bugzilla ID | 341 |
| Reporter | Magne Hov |
| Assignee | A. Wilcox (awilfox) |
| Reported | 2020-08-05 13:11:25 -0500 |
| Modified | 2020-08-10 19:17:02 -0500 |
| Status | RESOLVED FIXED |
| Version | 0.2.0 |
| Hardware | Adélie Linux / Intel x86 (64-bit) |
| Importance | --- / normal |
| URL | https://code.foxkit.us/adelie/gcompat/commit/2d75993 |
## Description
**Created [attachment 35](/uploads/40c8a832037b9f01e551c3df095ae881/reproducer.c)**
Reproducer program
When compiling the attached reproducer with gcc -D_FORTIFY_SOURCE=1 -O1 reproducer.c, I get the following failure when running it in a paleozogt/adelie docker image:
# ./a.out
Assertion failed: (fdslen / sizeof(*fds)) < nfds (libgcompat/socket.c: __poll_chk: 52)
This assertion seems bogus to me:
https://code.foxkit.us/adelie/gcompat/-/blob/715b50e/libgcompat/socket.c#L52
The expression is identical to that in glibc, but the logic is inverted:
https://sourceware.org/git/?p=glibc.git;a=blob;f=debug/poll_chk.c;hb=07ed32f920f0bcb1ddb400e4ed606104756dee32#l24
Reproducer compiled on Ubuntu 19.10 with gcc (Ubuntu 9.2.1-9ubuntu2) 9.2.1 20191008.
# apk list | grep gcompat
gcompat-0.4.0-r0 x86_64 {gcompat} (UoI-NCSA) [installed]1.0-RELEASEhttps://git.adelielinux.org/adelie/gcompat/-/issues/302Cannot build gcompat in Ubuntu 18.042021-05-12T03:50:15ZEmilyCannot build gcompat in Ubuntu 18.04| | |
| --- | --- |
| Bugzilla ID | 302 |
| Reporter | Nikos Dragazis |
| Assignee | A. Wilcox (awilfox) |
| Reported | 2020-06-11 06:19:10 -0500 |
| Modified | 2020-06-23 11:28:42 -0500 |
| Status | CONFIRMED |
| Version | 0.2.0 |
| ...| | |
| --- | --- |
| Bugzilla ID | 302 |
| Reporter | Nikos Dragazis |
| Assignee | A. Wilcox (awilfox) |
| Reported | 2020-06-11 06:19:10 -0500 |
| Modified | 2020-06-23 11:28:42 -0500 |
| Status | CONFIRMED |
| Version | 0.2.0 |
| Hardware | Other Linux / Intel x86 (64-bit) |
| Importance | --- / blocker |
## Description
OS: Ubuntu 18.04 (bionic)
kernel: 5.3.0-53-generic
arch: x86_64
gcompat version: https://github.com/AdelieLinux/gcompat
Steps to reproduce:
$ cd gcompat
$ make
Actual output:
cc -c -D_BSD_SOURCE \
-DLIBGCOMPAT='"/lib/libgcompat.so.0"' \
-DLINKER='""' -DLOADER='"ld-linux.so.2"' \
-fPIC -Ilibgcompat -std=c99 \
-Wall -Wextra -Wno-frame-address -Wno-unused-parameter \
-o libgcompat/ctype.o libgcompat/ctype.c
cc -c -D_BSD_SOURCE \
-DLIBGCOMPAT='"/lib/libgcompat.so.0"' \
-DLINKER='""' -DLOADER='"ld-linux.so.2"' \
-fPIC -Ilibgcompat -std=c99 \
-Wall -Wextra -Wno-frame-address -Wno-unused-parameter \
-o libgcompat/cxx_thread.o libgcompat/cxx_thread.c
In file included from /usr/include/pthread.h:21:0,
from libgcompat/cxx_thread.c:1:
/usr/include/features.h:184:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
# warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
^~~~~~~
cc -c -D_BSD_SOURCE \
-DLIBGCOMPAT='"/lib/libgcompat.so.0"' \
-DLINKER='""' -DLOADER='"ld-linux.so.2"' \
-fPIC -Ilibgcompat -std=c99 \
-Wall -Wextra -Wno-frame-address -Wno-unused-parameter \
-o libgcompat/dlfcn.o libgcompat/dlfcn.c
In file included from /usr/include/dlfcn.h:22:0,
from libgcompat/dlfcn.c:1:
/usr/include/features.h:184:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
# warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
^~~~~~~
cc -c -D_BSD_SOURCE \
-DLIBGCOMPAT='"/lib/libgcompat.so.0"' \
-DLINKER='""' -DLOADER='"ld-linux.so.2"' \
-fPIC -Ilibgcompat -std=c99 \
-Wall -Wextra -Wno-frame-address -Wno-unused-parameter \
-o libgcompat/error.o libgcompat/error.c
In file included from /usr/include/errno.h:25:0,
from libgcompat/error.c:2:
/usr/include/features.h:184:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
# warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
^~~~~~~
cc -c -D_BSD_SOURCE \
-DLIBGCOMPAT='"/lib/libgcompat.so.0"' \
-DLINKER='""' -DLOADER='"ld-linux.so.2"' \
-fPIC -Ilibgcompat -std=c99 \
-Wall -Wextra -Wno-frame-address -Wno-unused-parameter \
-o libgcompat/execinfo.o libgcompat/execinfo.c
In file included from /usr/include/dlfcn.h:22:0,
from libgcompat/execinfo.c:1:
/usr/include/features.h:184:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
# warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
^~~~~~~
libgcompat/execinfo.c: In function ‘backtrace_symbols’:
libgcompat/execinfo.c:53:3: error: unknown type name ‘Dl_info’
Dl_info info;
^~~~~~~
libgcompat/execinfo.c:55:7: warning: implicit declaration of function ‘dladdr’ [-Wimplicit-function-declaration]
if (dladdr(array[i], &info) && info.dli_sname != NULL) {
^~~~~~
libgcompat/execinfo.c:55:38: error: request for member ‘dli_sname’ in something not a structure or union
if (dladdr(array[i], &info) && info.dli_sname != NULL) {
^
libgcompat/execinfo.c:56:20: error: request for member ‘dli_sname’ in something not a structure or union
result[i] = info.dli_sname;
^
libgcompat/execinfo.c: In function ‘backtrace_symbols_fd’:
libgcompat/execinfo.c:73:3: error: unknown type name ‘Dl_info’
Dl_info info;
^~~~~~~
libgcompat/execinfo.c:77:38: error: request for member ‘dli_sname’ in something not a structure or union
if (dladdr(array[i], &info) && info.dli_sname != NULL) {
^
libgcompat/execinfo.c:78:15: error: request for member ‘dli_sname’ in something not a structure or union
line = info.dli_sname;
^
Makefile:79: recipe for target 'libgcompat/execinfo.o' failed
make: *** [libgcompat/execinfo.o] Error 1
Expected output:
It should be compiling successfully.1.0-RELEASEhttps://git.adelielinux.org/adelie/gcompat/-/issues/44More _chk functions and getdirentries64 required by icaclient2023-05-03T16:18:50ZEmilyMore _chk functions and getdirentries64 required by icaclient| | |
| --- | --- |
| Bugzilla ID | 44 |
| Reporter | Max Rees (sroracle) |
| Assignee | A. Wilcox (awilfox) |
| Reported | 2018-01-05 20:06:50 -0600 |
| Modified | 2018-11-12 01:01:49 -0600 |
| Status | RESOLVED INVALID |
| Version | ...| | |
| --- | --- |
| Bugzilla ID | 44 |
| Reporter | Max Rees (sroracle) |
| Assignee | A. Wilcox (awilfox) |
| Reported | 2018-01-05 20:06:50 -0600 |
| Modified | 2018-11-12 01:01:49 -0600 |
| Status | RESOLVED INVALID |
| Version | 0.1.0 |
| Hardware | Adélie Linux / Other |
| Importance | Normal / normal |
## Description
Error relocating wfica: __stpcpy_chk: symbol not found
Error relocating wfica: __vsyslog_chk: symbol not found
Error relocating wfica: __memmove_chk: symbol not found
Error relocating wfica: __memset_chk: symbol not found
Error relocating wfica: __read_chk: symbol not found
Error relocating wfica: getdirentries64: symbol not found1.0-RELEASEhttps://git.adelielinux.org/adelie/gcompat/-/issues/43Implement __vsprintf_chk2018-02-01T22:44:54ZEmilyImplement __vsprintf_chk| | |
| --- | --- |
| Bugzilla ID | 43 |
| Reporter | Filip Matijević |
| Assignee | A. Wilcox (awilfox) |
| Reported | 2018-01-01 01:00:59 -0600 |
| Modified | 2018-02-01 16:44:54 -0600 |
| Status | RESOLVED FIXED |
| Version | 0.1.0 ...| | |
| --- | --- |
| Bugzilla ID | 43 |
| Reporter | Filip Matijević |
| Assignee | A. Wilcox (awilfox) |
| Reported | 2018-01-01 01:00:59 -0600 |
| Modified | 2018-02-01 16:44:54 -0600 |
| Status | RESOLVED FIXED |
| Version | 0.1.0 |
| Hardware | Other / [Community] ARM (32-bit) |
| Importance | Lowest / enhancement |
## Description
For using PowerVR SGX GPU in older TI SoC based systems (namely Nokia N9 with OMAP3630 SoC), TI provides Linux-Graphics-SDK (http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/gfxsdk/4_10_00_01/index_FDS.html) that contains (amongst other things) some binaries targeting ld-linux.so.3. Simple ln -s ld-linux-armhf.so.3 ld-linux.so.3 makes most of them run OK, but the ones that fail complain about missing __vsprintf_chk. Quick search reveals that it should be rather simple to implement: http://www.openwall.com/lists/musl/2015/06/17/11.0-RELEASE