firebird2.1-classic compiled without stack protector, so UDF dlopen failed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
firebird2.1 (Ubuntu) |
Fix Released
|
Undecided
|
Popa Adrian Marius |
Bug Description
Binary package hint: firebird2.1-classic
firebird-2.1 classic is compiled with -fno-stack-
so any third-party UDF compiled with default gcc options are not loaded by firebird at runtime.
and firebird said (Exmple for TANH function in common rfunc (http://
-function TANH is not defined
-module name or entrypoint could not be found
When i compile same UDF source with -fno-stack-
How i guess that:
I wrote simple .c file:
int main()
{
return 0;
}
and run command:
root# gcc qwe.c rfunc.so
/usr/bin/ld: a.out: hidden symbol `__stack_
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: ld returned 1 exit status
Because earlier i reported about very BUGGY stak protector i decide to off this feature in UDF makefile (add CFLAGS+
root@quadsrv:
Description: Ubuntu 8.10
Release: 8.10
root@quadsrv:
firebird2.
Installed: 2.1.0.17798-0.ds2-1
Candidate: 2.1.0.17798-0.ds2-1
Version table:
*** 2.1.0.17798-0.ds2-1 0
500 http://
100 /var/lib/
description: | updated |
summary: |
- firebird 2.1 compiled without stack protector, so UDF open failed + firebird 2.1 compiled without stack protector, so UDF dlopen failed |
description: | updated |
summary: |
- firebird 2.1 compiled without stack protector, so UDF dlopen failed + firebird2.1-classic compiled without stack protector, so UDF dlopen + failed |
Changed in firebird2.1 (Ubuntu): | |
status: | Incomplete → Fix Released |
follow this thread www.nabble. com/firebird- 2.1-compiled- without- stack-protector %2C-so- UDF-dlopen- failed- td23430831. html
http://
seems for me that firebird is build with stack protection by default , at least this is on jaunty
i will check on intrepid too