On 10/13/2016 06:35 PM, John Paul Adrian Glaubitz wrote:
> I tried the fix from [3] in firebird3.0, but unfortunately it
> doesn't help. Currently, I'm out of ideas but it would be great
> to see this fixed as this also affects m68k for which I have
> added platform support to firebird upstream [4,5].

Ok, the following patch fixes the crash above:

glaubitz@partch:~/firebird$ git diff builds/posix/vers.sh.in
diff --git a/builds/posix/vers.sh.in b/builds/posix/vers.sh.in
index 69bd656..15d86a7 100644
--- a/builds/posix/vers.sh.in
+++ b/builds/posix/vers.sh.in
@@ -57,6 +57,7 @@ platform_linux() {
                echo "${TAB}$i;"

+       echo "${TAB}_IO_stdin_used;"
        echo 'local:'
        echo "${TAB}*;"
        echo '};'

However, it crashes still when running isql during build:

make gpre
make[3]: Entering directory '/home/glaubitz/firebird/gen'
rm -f metadata.fdb
/home/glaubitz/firebird/gen/Release/firebird/bin/isql -q -i 
Makefile:339: recipe for target 'metadata.fdb' failed
make[3]: *** [metadata.fdb] Segmentation fault
make[3]: *** Deleting file 'metadata.fdb'
make[3]: Leaving directory '/home/glaubitz/firebird/gen'
Makefile:180: recipe for target 'master_process' failed
make[2]: *** [master_process] Error 2
make[2]: Leaving directory '/home/glaubitz/firebird/gen'
Makefile:74: recipe for target 'firebird' failed
make[1]: *** [firebird] Error 2
make[1]: Leaving directory '/home/glaubitz/firebird/gen'
Makefile:6: recipe for target 'firebird' failed
make: *** [firebird] Error 2

But calling the isql command line directly doesn't trigger a crash:

(sid_powerpc-dchroot)glaubitz@partch:~/firebird$ export 
/home/glaubitz/firebird/gen/Release/firebird/bin/isql -q -i 
can't format message 17:0 -- message file /usr/local/firebird/firebird.msg not 
Unable to complete network request to host "localhost".
-Failed to establish a connection.
can't format message 17:120 -- message file /usr/local/firebird/firebird.msg 
not found


 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaub...@debian.org
`. `'   Freie Universitaet Berlin - glaub...@physik.fu-berlin.de
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913

Reply via email to