Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 942205 - dev-db/firebird-3.0.10.33601.0-r2 - [gcc-15] buffer overflow detected : terminated
Summary: dev-db/firebird-3.0.10.33601.0-r2 - [gcc-15] buffer overflow detected : termi...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-15
  Show dependency tree
 
Reported: 2024-10-26 08:07 UTC by Toralf Förster
Modified: 2024-10-30 00:43 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,19.11 KB, text/plain)
2024-10-26 08:07 UTC, Toralf Förster
Details
dev-db:firebird-3.0.10.33601.0-r2:20241025-225536.log.xz (dev-db:firebird-3.0.10.33601.0-r2:20241025-225536.log.xz,19.13 KB, application/x-xz)
2024-10-26 08:07 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,231.35 KB, text/plain)
2024-10-26 08:07 UTC, Toralf Förster
Details
environment (environment,101.66 KB, text/plain)
2024-10-26 08:07 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.20 KB, application/x-xz)
2024-10-26 08:07 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,30.32 KB, application/x-xz)
2024-10-26 08:07 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,17.11 KB, application/x-xz)
2024-10-26 08:07 UTC, Toralf Förster
Details
qlist-info.txt.xz (qlist-info.txt.xz,60.38 KB, application/x-xz)
2024-10-26 08:07 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,26.77 KB, application/x-xz)
2024-10-26 08:07 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2024-10-26 08:07:09 UTC
on disk structure version 12.0
make[4]: Leaving directory '/var/tmp/portage/dev-db/firebird-3.0.10.33601.0-r2/work/Firebird-3.0.10.33601-0/gen/examples'
make[4]: *** Deleting file '../../gen/examples/empbuild.c'
make[4]: Entering directory '/var/tmp/portage/dev-db/firebird-3.0.10.33601.0-r2/work/Firebird-3.0.10.33601-0/gen/examples'
../../gen/Release/firebird/bin/gpre_current -m -z -n ../../gen/examples/empbuild.e ../../gen/examples/empbuild.c
gpre version LI-V3.0.10.33601 Firebird 3.0
*** buffer overflow detected ***: terminated
make[4]: *** [../../gen/make.rules:75: ../../gen/examples/empbuild.c] Aborted
make[4]: Leaving directory '/var/tmp/portage/dev-db/firebird-3.0.10.33601.0-r2/work/Firebird-3.0.10.33601-0/gen/examples'

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0-20241022-040507

  UNMASKED:
  <sys-devel/gcc-15.0.9999:15

  The attached etc.portage.tar.xz has all details.
  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-15 *
clang version 19.1.2
llvm-config: 19.1.2
Python 3.12.7
go version go1.23.2 linux/amd64
Available Ruby profiles:
  [1]   ruby32 (with Rubygems)
  [2]   ruby33 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.82.0
  [2]   rust-1.82.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 11.0.25_p9 [openjdk-bin-11]
2)	Eclipse Temurin JDK 17.0.13_p11 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.5_p11 [openjdk-bin-21]
4)	Eclipse Temurin JDK 8.432_p06 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-11 
  [3]   openjdk-bin-17 
  [4]   openjdk-bin-21  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.2.8

  HEAD of ::gentoo
commit d3d3465e65b304dcd213df5b1273fdce72b10337
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Fri Oct 25 22:03:22 2024 +0000

    2024-10-25 22:03:22 UTC

emerge -qpvO =dev-db/firebird-3.0.10.33601.0-r2
[ebuild  N    ] dev-db/firebird-3.0.10.33601.0-r2  USE="server xinetd -doc -examples"
Comment 1 Toralf Förster gentoo-dev 2024-10-26 08:07:10 UTC
Created attachment 906765 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-10-26 08:07:11 UTC
Created attachment 906766 [details]
dev-db:firebird-3.0.10.33601.0-r2:20241025-225536.log.xz
Comment 3 Toralf Förster gentoo-dev 2024-10-26 08:07:12 UTC
Created attachment 906767 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2024-10-26 08:07:13 UTC
Created attachment 906768 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2024-10-26 08:07:14 UTC
Created attachment 906769 [details]
etc.clang.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-10-26 08:07:15 UTC
Created attachment 906770 [details]
etc.portage.tar.xz
Comment 7 Toralf Förster gentoo-dev 2024-10-26 08:07:16 UTC
Created attachment 906771 [details]
logs.tar.xz
Comment 8 Toralf Förster gentoo-dev 2024-10-26 08:07:17 UTC
Created attachment 906772 [details]
qlist-info.txt.xz
Comment 9 Toralf Förster gentoo-dev 2024-10-26 08:07:18 UTC
Created attachment 906773 [details]
temp.tar.xz
Comment 10 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-10-29 17:31:21 UTC
Program terminated with signal SIGABRT, Aborted.
#0  __pthread_kill_implementation (threadid=<optimized out>, signo=6, no_tid=0) at pthread_kill.c:44
44            return INTERNAL_SYSCALL_ERROR_P (ret) ? INTERNAL_SYSCALL_ERRNO (ret) : 0;
[Current thread is 1 (Thread 0x72918ae12780 (LWP 4066579))]
(gdb) bt
#0  __pthread_kill_implementation (threadid=<optimized out>, signo=6, no_tid=0) at pthread_kill.c:44
#1  __pthread_kill_internal (threadid=<optimized out>, signo=6) at pthread_kill.c:78
#2  __GI___pthread_kill (threadid=<optimized out>, signo=signo@entry=6) at pthread_kill.c:89
#3  0x000072918a61e8b2 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#4  0x000072918a601832 in __GI_abort () at abort.c:79
#5  0x000072918a602a66 in __libc_message_impl (fmt=fmt@entry=0x72918a7bdafb "*** %s ***: terminated\n") at ../sysdeps/posix/libc_fatal.c:132
#6  0x000072918a70c2f7 in __GI___fortify_fail (msg=msg@entry=0x72918a7bdae2 "buffer overflow detected") at fortify_fail.c:24
#7  0x000072918a70bbc2 in __GI___chk_fail () at chk_fail.c:28
#8  0x000072918a70d799 in __GI___strncpy_chk (s1=s1@entry=0x7ffcbf3af550 "gds_", s2=s2@entry=0x64d04d4436ea "isc", n=n@entry=3, s1len=s1len@entry=0) at strncpy_chk.c:26
#9  0x000064d04d44b4ac in strncpy (__dest=0x7ffcbf3af550 "gds_", __src=0x64d04d4436ea "isc", __len=3) at /usr/include/bits/string_fortified.h:100
#10 gen_blr (string=<optimized out>) at /var/tmp/portage/dev-db/firebird-3.0.10.33601.0-r2/work/Firebird-3.0.10.33601-0/src/gpre/c_cxx.cpp:1138
#11 0x000064d04d4a8939 in print_line (control=0x7ffcbf3af6b0, offset=0) at /var/tmp/portage/dev-db/firebird-3.0.10.33601.0-r2/work/Firebird-3.0.10.33601-0/src/common/pretty.cpp:737
#12 PRETTY_print_sdl (blr=<optimized out>, routine=<optimized out>, routine@entry=0x64d04d44b220 <gen_blr(void*, SSHORT, char const*)>, user_arg=<optimized out>, user_arg@entry=0x0,
    language=language@entry=0) at /var/tmp/portage/dev-db/firebird-3.0.10.33601.0-r2/work/Firebird-3.0.10.33601-0/src/common/pretty.cpp:254
#13 0x000064d04d44bc5e in gen_request (request=0x72918965b3e0) at /var/tmp/portage/dev-db/firebird-3.0.10.33601.0-r2/work/Firebird-3.0.10.33601-0/src/gpre/c_cxx.cpp:2903
#14 gen_database (column=<optimized out>, column@entry=0) at /var/tmp/portage/dev-db/firebird-3.0.10.33601.0-r2/work/Firebird-3.0.10.33601-0/src/gpre/c_cxx.cpp:1504
#15 0x000064d04d45299b in gen_database (column=0) at /var/tmp/portage/dev-db/firebird-3.0.10.33601.0-r2/work/Firebird-3.0.10.33601-0/src/gpre/c_cxx.cpp:1416
#16 C_CXX_action (action=0x72918aeb7700, column=0) at /var/tmp/portage/dev-db/firebird-3.0.10.33601.0-r2/work/Firebird-3.0.10.33601-0/src/gpre/c_cxx.cpp:263
#17 0x000064d04d4693e5 in pass2 (start_position=<optimized out>) at /var/tmp/portage/dev-db/firebird-3.0.10.33601.0-r2/work/Firebird-3.0.10.33601-0/src/gpre/gpre.cpp:2623
#18 compile_module (start_position=<optimized out>, base_directory=<optimized out>)
    at /var/tmp/portage/dev-db/firebird-3.0.10.33601.0-r2/work/Firebird-3.0.10.33601-0/src/gpre/gpre.cpp:1359
#19 main (argc=<optimized out>, argv=<optimized out>) at /var/tmp/portage/dev-db/firebird-3.0.10.33601.0-r2/work/Firebird-3.0.10.33601-0/src/gpre/gpre.cpp:845
Comment 11 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-10-29 17:31:59 UTC
#10 gen_blr (string=<optimized out>) at /var/tmp/portage/dev-db/firebird-3.0.10.33601.0-r2/work/Firebird-3.0.10.33601-0/src/gpre/c_cxx.cpp:1138
1138                                                                    strncpy(q1 - 4, "isc", 3);
(gdb) p q1
$1 = 0x7ffcbf3af554 ""
Comment 12 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-10-29 17:39:15 UTC
I need to fight with the build system to be able to do anything useful first.
Comment 13 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-10-29 23:58:04 UTC
(In reply to Sam James from comment #12)
> I need to fight with the build system to be able to do anything useful first.

Two issues I hit:
1) needing to define TARGET
2) firebird uses the FIREBIRD environment variable to find itself in gpre_current, otherwise you get e.g.
```
gpre version LI-V3.0.10.33601 Firebird 3.0
Unable to complete network request to host "localhost".
-Failed to establish a connection.
(E) /home/sam/git/firebird/gen/examples/empbuild.e:54: Couldn't access database DB = '/home/sam/git/firebird/gen/examples/empbuild.fdb'
1 error, no warnings
```