Hi, if i try to emerge codeblocks, it will compile but i can not start it. it ends with a memory access error: Starting Code::Blocks Release 20.03 rev 11997 Mar 2 2024, 08:23:12 - wx3.0.5 - gcc 13.2.1 (Linux, unicode) - 64 bit Manager initialized Initialize EditColourSet ..... Initialize EditColourSet: done. Loading menubar... CppCheck: loaded wxSmithAui: loaded CodeSnippets: loaded IncrementalSearch: loaded Profiler: loaded OccurrencesHighlighting: loaded FileManager: loaded SymTab: loaded AutoVersioning: loaded MouseSap: loaded Autosave: loaded ToolsPlus: loaded Cccc: loaded ProjectsImporter: loaded HelpPlugin: loaded FilesExtensionHandler: loaded HexEditor: loaded CodeCompletion: loaded NassiShneidermanPlugin: loaded Compiler: loaded cbDragScroll: loaded ToDoList: loaded copystrings: loaded wxSmith: loaded wxSmithMime: loaded CB_Koders: loaded BrowseTracker: loaded Cscope: loaded DoxyBlocks: loaded ScriptedWizard: loaded cbKeyBinder: loaded EnvVars: loaded SpellChecker: loaded RegExTestbed: loaded ThreadSearch: loaded AStylePlugin: loaded rndgen: loaded BYOGames: loaded Exporter: loaded CodeStat: loaded SmartIndentXML: loaded FortranProject: loaded lib_finder: loaded wxSmithContribItems: loaded EditorConfig: loaded ReopenEditor: loaded ClassWizard: loaded Abbreviations: loaded EditorTweaks: loaded HeaderFixup: loaded Valgrind: loaded ProjectOptionsManipulator: loaded Debugger: loaded OpenFilesList: loaded CppCheck plugin activated wxSmith - Aui plugin activated Code snippets plugin activated IncrementalSearch plugin activated Code profiler plugin activated OccurrencesHighlighting plugin activated FileManager plugin activated Symbol Table Plugin plugin activated AutoVersioning plugin activated MouseSap plugin activated Autosave plugin activated ToolsPlus plugin activated Cccc plugin activated Foreign projects importer plugin activated Help plugin plugin activated Files extension handler plugin activated HexEditor plugin activated Code completion plugin activated NassiShneidermanPlugin plugin activated Added compiler "GNU GCC Compiler" Added compiler "Intel C/C++ Compiler" Added compiler "GDC D Compiler" Added compiler "GNU Fortran Compiler" Added compiler "G95 Fortran Compiler" Added compiler "GNU GCC Compiler for ARM" Added compiler "GNU GCC Compiler for MSP430 (HighTec)" Added compiler "GNU GCC Compiler for Android" Added compiler "*No Compiler*" Added compiler "Tiny C Compiler" Added compiler "LLVM D Compiler" Added compiler "GNU GCC Compiler for TriCore (HighTec)" Added compiler "Digital Mars D Compiler" Added compiler "PGI Fortran Compiler" Added compiler "LLVM Clang Compiler" Added compiler "GNU GCC Compiler for ZPU" Added compiler "GNU GCC Compiler for LM32" Added compiler "GNU GCC Compiler for AVR" Added compiler "GNU GCC Compiler for PowerPC EABI" Added compiler "GNU GCC Compiler for LM8" Added compiler "GNU GCC Compiler for PowerPC (HighTec)" Added compiler "Small Device C Compiler" Added compiler "GNU GCC Compiler for Blackfin" Master path of compiler ID "gcc" is empty -> triggers auto-detection. Master path of compiler ID "icc" is empty -> triggers auto-detection. Master path of compiler ID "sdcc" is empty -> triggers auto-detection. Master path of compiler ID "tcc" is empty -> triggers auto-detection. Master path of compiler ID "clang" is empty -> triggers auto-detection. Master path of compiler ID "arm-elf-gcc" is empty -> triggers auto-detection. Master path of compiler ID "android-gcc" is empty -> triggers auto-detection. Master path of compiler ID "zpu-gcc" is empty -> triggers auto-detection. Master path of compiler ID "lm32-gcc" is empty -> triggers auto-detection. Master path of compiler ID "avr-gcc" is empty -> triggers auto-detection. Master path of compiler ID "lm8-gcc" is empty -> triggers auto-detection. Master path of compiler ID "bfin-elf-gcc" is empty -> triggers auto-detection. Master path of compiler ID "msp430-gcc" is empty -> triggers auto-detection. Master path of compiler ID "tricore-gcc" is empty -> triggers auto-detection. Master path of compiler ID "ppc-gcc" is empty -> triggers auto-detection. Master path of compiler ID "powerpc-eabi" is empty -> triggers auto-detection. Master path of compiler ID "gdc" is empty -> triggers auto-detection. Master path of compiler ID "ldc" is empty -> triggers auto-detection. Master path of compiler ID "dmd" is empty -> triggers auto-detection. Master path of compiler ID "gfortran" is empty -> triggers auto-detection. Master path of compiler ID "g95" is empty -> triggers auto-detection. Master path of compiler ID "pgifortran" is empty -> triggers auto-detection. Master path of compiler ID "null" is empty -> triggers auto-detection. (codeblocks:28731): Gtk-CRITICAL **: 08:31:07.961: gtk_tree_model_iter_nth_child: assertion 'n >= 0' failed ClassBrowser::UpdateClassBrowserView(): No active project available. Updating class browser... Class browser updated Compiler plugin activated DragScroll plugin activated Todo List plugin activated Copy Strings to clipboard plugin activated wxSmith plugin activated wxSmith - MIME plugin plugin activated Koders query plugin activated BrowseTracker plugin activated Cscope plugin activated DoxyBlocks plugin activated Project wizard added for 'Empty project' Project wizard added for 'Fortran application' Project wizard added for 'Fortran library' Project wizard added for 'Fortran DLL' Project wizard added for 'Console application' Project wizard added for 'D application' Project wizard added for 'FLTK project' Project wizard added for 'GLFW project' Project wizard added for 'GLUT project' Project wizard added for 'GTK+ project' Project wizard added for 'Irrlicht project' Project wizard added for 'Java application' Project wizard added for 'Lightfeather project' Project wizard added for 'Matlab project' Project wizard added for 'OpenCV project' Project wizard added for 'OpenGL project' Project wizard added for 'Ogre project' Project wizard added for 'Code::Blocks plugin' Project wizard added for 'QT4 project' Project wizard added for 'QT4 (shared) project' Project wizard added for 'QT5 project' Project wizard added for 'SDL project' Project wizard added for 'SDL2 project' Project wizard added for 'SFML project' Project wizard added for 'Static library' Project wizard added for 'Shared library' Project wizard added for 'wxWidgets project' Build-target wizard added for 'Console' Build-target wizard added for 'Static library' Build-target wizard added for 'wxWidgets' Project wizard added for 'Arduino Project' Project wizard added for 'ARM Project' Project wizard added for 'AVR Project' Project wizard added for 'MSP430 Project' Project wizard added for 'TriCore Project' Project wizard added for 'PowerPC Project' Project wizard added for 'MCS51 Project' File(s) wizard added for 'Empty file' File(s) wizard added for 'C/C++ source' File(s) wizard added for 'D source' File(s) wizard added for 'C/C++ header' File(s) wizard added for 'Fortran source' File(s) wizard added for 'Java source' Scripted wizard plugin activated Keyboard shortcuts plugin activated Environment variables plugin activated Detected dict path: /usr/share/hunspell Detected thes path: /usr/share/mythes Selected dictionary: en_US Found dictionary: en_US Found dictionary: de_DE Found dictionary: en_ZA Found dictionary: en_AU Found dictionary: en_GB Found dictionary: de_AT Found dictionary: en_CA Found dictionary: de_CH Loading image: '/usr/share/codeblocks/SpellChecker/16x16/en_US.png' succeeded! SpellChecker plugin activated Regular expressions testbed plugin activated ThreadSearch plugin activated Source code formatter (AStyle) plugin activated rndgen plugin activated BYO Games plugin activated Source Exporter plugin activated Code statistics plugin activated SmartIndentXML plugin activated FortranProject plugin activated Speicherzugriffsfehler
Benni@localhost ~ $ emerge --info Portage 3.0.61 (python 3.11.8-final-0, default/linux/amd64/17.1/desktop, gcc-13, glibc-2.38-r10, 6.6.13-gentoo-x86_64 x86_64) ================================================================= System uname: Linux-6.6.13-gentoo-x86_64-x86_64-AMD_Ryzen_9_3900X_12-Core_Processor-with-glibc2.38 KiB Mem: 32791320 total, 23087652 free KiB Swap: 31249404 total, 31249404 free Timestamp of repository gentoo: Thu, 29 Feb 2024 19:00:00 +0000 Head commit of repository gentoo: 5f5298fe82636046cb50893baf835bb468c4cb47 Timestamp of repository escpr2: Tue, 27 Feb 2024 17:48:26 +0000 Head commit of repository escpr2: 1f6d369789e15598054fe896268d3507b868723f Timestamp of repository guru: Thu, 29 Feb 2024 14:03:18 +0000 Head commit of repository guru: e6099527665da2580178b1257e486607da3e6ad4 Timestamp of repository pixlra: Mon, 12 Feb 2024 16:35:52 +0000 Head commit of repository pixlra: 9e1d3c5bf18c4bb087edf2dc6a2de4cea436d6ab Timestamp of repository sage-on-gentoo: Wed, 14 Feb 2024 02:33:27 +0000 Head commit of repository sage-on-gentoo: cce53a78b4b259f43894199038d9da90c54a6124 Timestamp of repository science: Thu, 29 Feb 2024 02:18:30 +0000 Head commit of repository science: 9ea4243f1a8fe891506f02737af891e07d7667e0 Timestamp of repository ssnb: Mon, 12 Feb 2024 16:35:48 +0000 Head commit of repository ssnb: 5eb8878de019fa9e5ca6c20eb220f9fb7231f749 Timestamp of repository steam-overlay: Fri, 16 Feb 2024 23:18:24 +0000 Head commit of repository steam-overlay: 214f4d5b11850f9751ee0939df3dd2aaaaef6d26 sh bash 5.1_p16-r6 ld GNU ld (Gentoo 2.41 p5) 2.41.0 app-misc/pax-utils: 1.3.7::gentoo app-shells/bash: 5.1_p16-r6::gentoo dev-build/autoconf: 2.13-r8::gentoo, 2.71-r6::gentoo dev-build/automake: 1.16.5-r2::gentoo dev-build/cmake: 3.27.9::gentoo dev-build/libtool: 2.4.7-r2::gentoo dev-build/make: 4.4.1-r1::gentoo dev-build/meson: 1.3.1-r1::gentoo dev-java/java-config: 2.3.3-r1::gentoo dev-lang/perl: 5.38.2-r1::gentoo dev-lang/python: 3.11.8_p1::gentoo, 3.12.2_p1::gentoo dev-lang/rust: 1.74.1::gentoo dev-lang/rust-bin: 1.74.1::gentoo sys-apps/baselayout: 2.14-r2::gentoo sys-apps/openrc: 0.53::gentoo sys-apps/sandbox: 2.38::gentoo sys-devel/binutils: 2.41-r5::gentoo sys-devel/binutils-config: 5.5::gentoo sys-devel/clang: 15.0.7-r3::gentoo, 16.0.6::gentoo, 17.0.6::gentoo sys-devel/gcc: 12.3.1_p20240112::gentoo, 13.2.1_p20240113-r1::gentoo sys-devel/gcc-config: 2.11::gentoo sys-devel/lld: 17.0.6::gentoo sys-devel/llvm: 15.0.7-r3::gentoo, 16.0.6::gentoo, 17.0.6::gentoo sys-kernel/linux-headers: 6.6::gentoo (virtual/os-headers) sys-libs/glibc: 2.38-r10::gentoo Repositories: gentoo location: /var/db/repos/gentoo sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 volatile: False sync-rsync-verify-metamanifest: yes sync-rsync-extra-opts: sync-rsync-verify-jobs: 1 sync-rsync-verify-max-age: 3 escpr2 location: /var/db/repos/escpr2 sync-type: git sync-uri: https://github.com/gentoo-mirror/escpr2.git masters: gentoo volatile: False guru location: /var/db/repos/guru sync-type: git sync-uri: https://github.com/gentoo-mirror/guru.git masters: gentoo volatile: False pixlra location: /var/db/repos/pixlra sync-type: git sync-uri: https://github.com/gentoo-mirror/pixlra.git masters: gentoo volatile: False sage-on-gentoo location: /var/db/repos/sage-on-gentoo sync-type: git sync-uri: https://github.com/gentoo-mirror/sage-on-gentoo.git masters: gentoo volatile: False science location: /var/db/repos/science sync-type: git sync-uri: https://github.com/gentoo-mirror/science.git masters: gentoo volatile: False ssnb location: /var/db/repos/ssnb sync-type: git sync-uri: https://github.com/gentoo-mirror/ssnb.git masters: gentoo volatile: False steam-overlay location: /var/db/repos/steam-overlay sync-type: git sync-uri: https://github.com/gentoo-mirror/steam-overlay.git masters: gentoo volatile: False Binary Repositories: gentoobinhost priority: 1 sync-uri: https://gentoo.osuosl.org/releases/amd64/binpackages/17.1/x86-64 ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="@FREE" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O3 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-march=native -O3 -pipe" DISTDIR="/var/cache/distfiles" ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME" FCFLAGS="-march=native -O3 -pipe" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-march=native -O3 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="de_DE.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LEX="flex" LINGUAS="de en" PKGDIR="/var/cache/binpkgs" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" SHELL="/bin/bash" USE="7zip R X Xaw3d a52 aac acl acpi activities addc addressbook admin ads alembic alsa amd64 amr amrenc appstream aprs aptx archive asm aspell assistant athena avif base bittorrent blake2 bluetooth bluray boost branding broadway brotli bs2b btrfs bzip2 cairo calendar capi caps cdda cddb cdio cdr cdrom chromium cinnamon clamav cli clippy codec2 collada color-management colord context contrib contribcvv contribdnn contribfreetype contribhdf contribxfeatures2d cpudetection crypt cryptsetup cuda cue cups curl cvs dbus deep-sky designer dhcp-tools dhcpcd dia dicom discover distancefieldgenerator distributed djvu dos download dri drm dropbox dts dv dvb dvd dvdr dvi eds education efiemu eglfs eigen elogind encode eps epub equalizer escprlib evdev examples excel exif expat extra extraengine faad fbgemm fdk ffmpeg fftw fits flac flite fltk font-styles fontconfig fortran fpx frei0r fribidi ftp fuse gd gdal gdbm gdbui geckodriver geolocation geos gfile gflags gif gimp git gloo gme gml gmp gnome gnome-keyring gnome-shell gnumeric gnuplot gnutls go goffice googledrive gpg gpgme gphoto2 gps grammar graphics graphite grub gsettings gsf gsl gsm gssapi gstreamer gtk gtk3 gtk4 gts gui guile gzip handbook hardcoded-tables hdf5 heif hex highlight html htmlreport http humanities hunspell ibus iconv icu iec61883 ieee1394 image image-backend imagemagick imagequant innodb-lz4 innodb-lzo introspection iprint ipv6 jack java javascript jdbc jit jpeg jpeg2k jpegxl json julia junction jupyter kaccounts kafka kate kbd kbindicator kcm kde kdesu kerberos keyring kpathsea kvazaar kwallet ladspa lapack latency-timing latex latin layers lcms ldac ldap lensfun libaom libaribb24 libcaca libdrm libilbc libnotify libproxy librtmp libsoxr libtesseract libtirpc libuv libv4l libxml2 linguist llvm lm-sensors logrotate lrz lspclient lto lv2 lz4 lzma lzo m17n-lib mad map marble mariadb markdown mate math mathml matio media mediaplayer mercurial metapost mng mobi modplug modula2 mongodb motif mount mp3 mp4 mpd mpeg multilib multimedia multitarget mysql nautilus nbconvert ncurses netapi netcdf netlink network networkmanager nfc nftables nls nnpack notebook nsight ntfs numpy nvcontrol nvdec nvenc nvidia objc objc++ objc-gc oci8 odbc offlinehelp ogg okular opds openal opencl opencv opencvapps openexr opengl openh264 openmp openssl openvdb opus oqgraph oracle origin osg osl osmesa oss oxygen pam pango panorama pcap pcre pdf pdfimport pdfium perl pgplot phonon pim pipewire pixeltool plasma png policykit positioning postgres postscript ppds ppp printsupport pstricks publishers pulseaudio pyqt6 python qalculate qdbus qml qmldesigner qnnpack qt5 qt6 qtattributionsscanner qtaudio qtcamera qtdiag qtegrity qthelp qtmedia qtmultimedia qtplugininfo quick quick3d racket rar rav1e raw readline redland remote-fs reviewboard rss rtf rtmp rubberband ruby rust rust-analyzer rust-src rustfmt rustls samba sanitizer sasl scanner science scope scripts scripttools sdk sdl sdl-image sdl2 search seccomp semantic-desktop sensord sensors serial serialport serialterminal server session sha2 shaderc shaders shapefile share sieve sift sim skins smartcard smp snapper snappy sndfile sndio sodium sound source-highlight spacenav spam-report spamassassin spatialaudio speech speex spell sphinx split-usr spotlight sql sqlite srt ssh ssl sst-rsync stars startup-notification subversion svg svg2 svt-av1 systemtap szip t1lib tcl telephony telescope tensorpipe terminal tesseract test-rust tex4ht texi2html theora thesaurus threads tiff tk tools tor-hardening tpm tree-sitter truetype twolame udev udisks uefi ufw unicode unrar upower usb utils v4l v4lutils vaapi vala vcd vdpau verify-file verify-sig video vidstab vis-profiler vlc vnc vorbis vpx vtv vulkan wav wavpack webchannel webdav webengine webkit webp websockets wide-int widgets wifi winbind wineappdb wireless wma wmf wordperfect wxwidgets x11extras x264 x265 xattr xcb xft xine xinerama xkb xla xls xml xmlpatterns xmlwriter xmp xmss xorg xpm xps xrandr xray xrender xs xscreensaver xv xvid xwidgets xxhash yassl zeromq zimg zlib zstd zvbi" ABI_X86="64" ADA_TARGET="gnat_2021" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 aes avx avx2 f16c fma3 pclmul popcnt rdrand sha sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput" KERNEL="linux" L10N="de en en-GB" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LIBREOFFICE_EXTENSIONS="nlpsolver scripting-beanshell scripting-javascript wiki-publisher" LUA_SINGLE_TARGET="lua5-4" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby31" VIDEO_CARDS="nvidia d3d12" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account" Unset: ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, MAKEOPTS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
ok, USE="-contrib" emerge codeblocks leads to a codeblocks that starts.
I can't reproduce your problems. Does Codeblocks crash on your machine with empty configurations, too? My *FLAGS: COMMON_FLAGS="-O2 -pipe -march=native -frecord-gcc-switches" CFLAGS="${COMMON_FLAGS} -D_FORTIFY_SOURCE=3" CXXFLAGS="${COMMON_FLAGS} -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS" LDFLAGS="-Wl,-O2 -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -fdiagnostics-color=always -Wl,--defsym=__gentoo_check_ldflags__=0" As a side note for future bug reports, run commands with a LANG=C in front of the command, please (LANG=C codeblocks). That the output will US english, e.g. "segfault" instead of "Speicherzugriffsfehler".
Hello. Thank you for report. As I could see the problem takes plase when USE="contrib fortran" and application successfully starts being emerged with USE="-contrib fortran". Actually I never tested codeblocks the build with "-O3" CFLAGS/CXXFLAGS because Gentoo wiki [1] refers as "-O3 is known to cause problems when used system-wide" and "-O2" is recommended. Could you please check if issue takes place on application launch if CFLAGS and CXXFLAGS use "-O2" instead of "-O3" when compile codeblocks with USE="contrib fortran"? [1] https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Stage#CFLAGS_and_CXXFLAGS
Hi Sergey, thank you, I have, for years, compiled my entire system with CXXFLAGS=-03 and never had a problem, including with codeblocks. I now compiled it with -O2. The problem stays the same. Interesting is that in all cases, with and without contrib, and with O2 and O3 gcc printed the following warning: * QA Notice: Package triggers severe warnings which indicate that it * may exhibit random runtime failures. * src/scintilla/lexers/LexMMIXAL.cxx:107:56: warning: 'void* __builtin_memmove(void*, const void*, long unsigned int)' reading 100 bytes from a region of size 99 [-Wstringop-overread] To me, that looks like a severe problem. with USE="contrib fortran" it was able to compile, but endet with the following " (codeblocks:4140): Gtk-CRITICAL **: 10:39:06.758: gtk_tree_model_iter_nth_child: assertion 'n >= 0' failed ClassBrowser::UpdateClassBrowserView(): No active project available. Updating class browser... Class browser updated Speicherzugriffsfehler " Speicherzugriffsfehler is just german for segfault. If I say LANG=C before the command it still gives out the german word. I then compiled it with USE="debug contrib fortran" the error was the same: SEGFAULT. LANG=C codeblocks Starting Code::Blocks Release 20.03 rev 11997 Mar 4 2024, 10:47:24 - wx3.0.5 - gcc 13.2.1 (Linux, unicode) - 64 bit Manager initialized Initialize EditColourSet ..... Initialize EditColourSet: done. Loading menubar... CppCheck: loaded wxSmithAui: loaded CodeSnippets: loaded IncrementalSearch: loaded Profiler: loaded OccurrencesHighlighting: loaded SmartIndentFortran: loaded FileManager: loaded SymTab: loaded AutoVersioning: loaded MouseSap: loaded Autosave: loaded ToolsPlus: loaded Cccc: loaded ProjectsImporter: loaded HelpPlugin: loaded FilesExtensionHandler: loaded HexEditor: loaded CodeCompletion: loaded NassiShneidermanPlugin: loaded Compiler: loaded cbDragScroll: loaded ToDoList: loaded copystrings: loaded wxSmith: loaded wxSmithMime: loaded CB_Koders: loaded BrowseTracker: loaded Cscope: loaded DoxyBlocks: loaded ScriptedWizard: loaded cbKeyBinder: loaded EnvVars: loaded SpellChecker: loaded RegExTestbed: loaded ThreadSearch: loaded AStylePlugin: loaded rndgen: loaded BYOGames: loaded Exporter: loaded CodeStat: loaded FortranProject: loaded lib_finder: loaded wxSmithContribItems: loaded EditorConfig: loaded ReopenEditor: loaded ClassWizard: loaded Abbreviations: loaded EditorTweaks: loaded HeaderFixup: loaded Valgrind: loaded ProjectOptionsManipulator: loaded Debugger: loaded OpenFilesList: loaded CppCheck plugin activated wxSmith - Aui plugin activated Code snippets plugin activated IncrementalSearch plugin activated Code profiler plugin activated OccurrencesHighlighting plugin activated SmartIndentFortran plugin activated FileManager plugin activated Symbol Table Plugin plugin activated AutoVersioning plugin activated MouseSap plugin activated Autosave plugin activated ToolsPlus plugin activated Cccc plugin activated Foreign projects importer plugin activated Help plugin plugin activated Files extension handler plugin activated HexEditor plugin activated Code completion plugin activated NassiShneidermanPlugin plugin activated Added compiler "GNU GCC Compiler" Added compiler "Intel C/C++ Compiler" Added compiler "GDC D Compiler" Added compiler "GNU Fortran Compiler" Added compiler "G95 Fortran Compiler" Added compiler "GNU GCC Compiler for ARM" Added compiler "GNU GCC Compiler for MSP430 (HighTec)" Added compiler "GNU GCC Compiler for Android" Added compiler "*No Compiler*" Added compiler "Tiny C Compiler" Added compiler "LLVM D Compiler" Added compiler "GNU GCC Compiler for TriCore (HighTec)" Added compiler "Digital Mars D Compiler" Added compiler "PGI Fortran Compiler" Added compiler "LLVM Clang Compiler" Added compiler "GNU GCC Compiler for ZPU" Added compiler "GNU GCC Compiler for LM32" Added compiler "GNU GCC Compiler for AVR" Added compiler "GNU GCC Compiler for PowerPC EABI" Added compiler "GNU GCC Compiler for LM8" Added compiler "GNU GCC Compiler for PowerPC (HighTec)" Added compiler "Small Device C Compiler" Added compiler "GNU GCC Compiler for Blackfin" Compiler plugin activated DragScroll plugin activated Todo List plugin activated Copy Strings to clipboard plugin activated wxSmith plugin activated wxSmith - MIME plugin plugin activated Koders query plugin activated BrowseTracker plugin activated Cscope plugin activated DoxyBlocks plugin activated Project wizard added for 'Empty project' Project wizard added for 'Fortran application' Project wizard added for 'Fortran library' Project wizard added for 'Fortran DLL' Project wizard added for 'Console application' Project wizard added for 'D application' Project wizard added for 'FLTK project' Project wizard added for 'GLFW project' Project wizard added for 'GLUT project' Project wizard added for 'GTK+ project' Project wizard added for 'Irrlicht project' Project wizard added for 'Java application' Project wizard added for 'Lightfeather project' Project wizard added for 'Matlab project' Project wizard added for 'OpenCV project' Project wizard added for 'OpenGL project' Project wizard added for 'Ogre project' Project wizard added for 'Code::Blocks plugin' Project wizard added for 'QT4 project' Project wizard added for 'QT4 (shared) project' Project wizard added for 'QT5 project' Project wizard added for 'SDL project' Project wizard added for 'SDL2 project' Project wizard added for 'SFML project' Project wizard added for 'Static library' Project wizard added for 'Shared library' Project wizard added for 'wxWidgets project' Build-target wizard added for 'Console' Build-target wizard added for 'Static library' Build-target wizard added for 'wxWidgets' Project wizard added for 'Arduino Project' Project wizard added for 'ARM Project' Project wizard added for 'AVR Project' Project wizard added for 'MSP430 Project' Project wizard added for 'TriCore Project' Project wizard added for 'PowerPC Project' Project wizard added for 'MCS51 Project' File(s) wizard added for 'Empty file' File(s) wizard added for 'C/C++ source' File(s) wizard added for 'D source' File(s) wizard added for 'C/C++ header' File(s) wizard added for 'Fortran source' File(s) wizard added for 'Java source' Scripted wizard plugin activated Keyboard shortcuts plugin activated Environment variables plugin activated Detected dict path: /usr/share/hunspell Detected thes path: /usr/share/mythes Selected dictionary: en_US Found dictionary: en_US Found dictionary: de_DE Found dictionary: en_ZA Found dictionary: en_AU Found dictionary: en_GB Found dictionary: de_AT Found dictionary: en_CA Found dictionary: de_CH Loading image: '/usr/share/codeblocks/SpellChecker/16x16/en_US.png' succeeded! SpellChecker plugin activated Regular expressions testbed plugin activated ThreadSearch plugin activated Source code formatter (AStyle) plugin activated rndgen plugin activated BYO Games plugin activated Source Exporter plugin activated Code statistics plugin activated FortranProject plugin activated (codeblocks:24034): Gtk-CRITICAL **: 10:52:52.631: gtk_tree_model_iter_nth_child: assertion 'n >= 0' failed ClassBrowser::UpdateClassBrowserView(): No active project available. Updating class browser... Class browser updated Speicherzugriffsfehler
I may add that the error with contrib remains when i delete the configfile file in Home/.config/codeblocks so that it should make a new configuration file... So it does not appear to be a config file problem.
i may add that i use the following wxwidgets: eselect wxwidgets list Available wxWidgets profiles: [1] gtk3-unicode-3.0-gtk3 [2] gtk3-unicode-3.2-gtk3 * emerge -pv gtk wxGTK +# These are the packages that would be merged, in order: Calculating dependencies... done! Dependency resolution took 5.75 s (backtrack: 0/20). [ebuild R ] gui-libs/gtk-4.12.4:4::gentoo USE="X broadway colord cups examples gstreamer introspection (-aqua) -cloudproviders (-ffmpeg) -sysprof -test (-vulkan) -wayland" CPU_FLAGS_X86="f16c" 16.555 KiB [ebuild R ] x11-libs/wxGTK-3.2.2.1-r3:3.2-gtk3::gentoo USE="X curl gstreamer keyring libnotify lzma opengl sdl spell tiff webkit -debug -doc (-pch) -test -wayland" ABI_X86="(64) -32 (-x32)" 0 KiB Can this cause the problem?
And it should be emphasized that the segfault really only happens with USE="contrib" Without contrib, codeblocks starts and can be used. so it maybe plugin related? Anyway, the gcc warning that is printed in all cases is also a bit strange since it definitely says an array is of lenght 99 and 100 is read...
Could you please provide full "build.log" as attachment, e.g. build application via command: USE="contrib fortran" ebuild /usr/portage/dev-util/codeblocks/codeblocks-20.03-r6 clean compile install" (or set other path depending on the path of portage tree location) and then take "build.log" file under "/var/tmp/portage/dev-util/codeblocks-20.03-r6/temp/" directory.
Created attachment 886708 [details] buildlog in zip format here is the build.log in zip format
I compared you build.log with own and didn't find any significant difference in configuration and FEATURES. The only thing is using /usr/libexec paths instead of /usr/bin for compiler and linker. The strange is that I have warning about LexMMIXAL.cxx but not QA Notice about it and I have only 48 warnings during build while your log has about ~200 for the same GCC version-revision. Maybe it also related additional cpu flags of your architecture. I hope your system is fully up-to-date. As for LexMMIXAL.cxx warning: I found upstream scintilla fix of it (codeblocks use old thirdparty of it) and could check to build with it and prepare ebuild for you to check pn your system. Currently I still can't reproduce issue on my pc. The package USE=debug is insaficient to debug application - it's only adds additional print-output without compiling debug info. Additional info about problem places could be taken by running application like: strace codeblocks To build application with debug symbols additional setup is required: https://wiki.gentoo.org/wiki/Debugging#Per-package Don't set this options globally, use per package. Then package could be run as (I don't remember exactly, maybe full path is required for application): gdb codeblocks (gdb): run
Created attachment 887104 [details] make.conf Attached is my make.conf I have a ryzen AMD Ryzen 9 3900X 12-Core Processor And i do an emerge --sync and emerge -uUD world every day, or every second day at least when i have not much time... I set the system newly up on christmas. So I think it is up to date. gcc is compiled with the following flags: [ebuild R ] sys-devel/gcc-13.2.1_p20240113-r1:13::gentoo USE="(cxx) fortran go graphite jit lto modula2 (multilib) nls objc objc++ objc-gc openmp (pie) sanitize ssp systemtap vtv zstd -ada -cet (-custom-cflags) -d -debug -default-stack-clash-protection -default-znow -doc (-fixed-point) -hardened (-ieee-long-double) (-libssp) (-pch) -pgo -test -valgrind -vanilla" 82.431 KiB gcc-config -l [1] x86_64-pc-linux-gnu-12 [2] x86_64-pc-linux-gnu-13 * localhost /home/Benni #
By the way thanks. I am willing to try your patch. I also can try to install it with debug symbols and run a debug session if it still fails... Best regards.
Created attachment 887105 [details] gdb output out of curiosity i now have tried to run codeblocks with gdb. I guess the interesting lines are these: hread 0x7fffb9c816c0 (LWP 32320)] [Thread 0x7fffbad1b6c0 (LWP 32319) exited] [Thread 0x7fffba51a6c0 (LWP 32318) exited] [Thread 0x7fffb9c816c0 (LWP 32320) exited] FortranProject plugin activated [Detaching after fork from child process 32321] (codeblocks:32148): Gtk-CRITICAL **: 23:49:39.709: gtk_tree_model_iter_nth_child: assertion 'n >= 0' failed [New Thread 0x7fffb9c816c0 (LWP 32322)] [Thread 0x7fffb9c816c0 (LWP 32322) exited] [Detaching after fork from child process 32323] [New Thread 0x7fffba51a6c0 (LWP 32324)] [New Thread 0x7fffbad1b6c0 (LWP 32325)] [Thread 0x7fffba51a6c0 (LWP 32324) exited] [New Thread 0x7fffba51a6c0 (LWP 32326)] [New Thread 0x7fffb8c806c0 (LWP 32328)] [Thread 0x7fffba51a6c0 (LWP 32326) exited] ClassBrowser::UpdateClassBrowserView(): No active project available. [Thread 0x7fffbad1b6c0 (LWP 32325) exited] [Thread 0x7fffb8c806c0 (LWP 32328) exited] Updating class browser... Class browser updated Thread 1 "codeblocks" received signal SIGSEGV, Segmentation fault. 0x00007fffcc6c99a6 in DoxyBlocks::OnUpdateUI (this=<optimized out>) at DoxyBlocks.cpp:238 238 m_pToolbar->Enable(false);
this is what happens without any optimization in etc/portage/make.conf [New Thread 0x7fffb5b5d6c0 (LWP 20212)] [New Thread 0x7fffb4ac36c0 (LWP 20213)] [Thread 0x7fffb535c6c0 (LWP 20211) exited] [Thread 0x7fffb5b5d6c0 (LWP 20212) exited] [Thread 0x7fffb4ac36c0 (LWP 20213) exited] FortranProject plugin activated [Detaching after fork from child process 20214] (codeblocks:20057): Gtk-CRITICAL **: 00:04:05.214: gtk_tree_model_iter_nth_child: assertion 'n >= 0' failed [New Thread 0x7fffb4ac36c0 (LWP 20215)] [Thread 0x7fffb4ac36c0 (LWP 20215) exited] [Detaching after fork from child process 20216] [New Thread 0x7fffb5b5d6c0 (LWP 20217)] [New Thread 0x7fffb535c6c0 (LWP 20218)] [Thread 0x7fffb5b5d6c0 (LWP 20217) exited] [New Thread 0x7fffb5b5d6c0 (LWP 20219)] [New Thread 0x7fffa7fff6c0 (LWP 20220)] [Thread 0x7fffb5b5d6c0 (LWP 20219) exited] [Thread 0x7fffb535c6c0 (LWP 20218) exited] [Thread 0x7fffa7fff6c0 (LWP 20220) exited] ClassBrowser::UpdateClassBrowserView(): No active project available. Updating class browser... Class browser updated Thread 1 "codeblocks" received signal SIGSEGV, Segmentation fault. DoxyBlocks::OnUpdateUI (this=0x555556a71640) at DoxyBlocks.cpp:238 238 m_pToolbar->Enable(false);
Created attachment 887106 [details] autounmask file i made an emerge -uUD world yesterday. However, I run on stable but often keyword packages to keywords ~amd64. my package mask is currently empty. Perhaps that is causing a conflict?
When you get that output in gdb, please then run "bt" in there and share the full output as an attachment, thanks.
Created attachment 887107 [details] package.use this is my package use file. it is mostly generated by autounmask
Created attachment 887108 [details] cpuflags file and i have a cpuflags file for my ryzen processor
(In reply to Benjamin Schulz from comment #15) > this is what happens without any optimization in etc/portage/make.conf > > [New Thread 0x7fffb5b5d6c0 (LWP 20212)] > [New Thread 0x7fffb4ac36c0 (LWP 20213)] > [Thread 0x7fffb535c6c0 (LWP 20211) exited] > [Thread 0x7fffb5b5d6c0 (LWP 20212) exited] > [Thread 0x7fffb4ac36c0 (LWP 20213) exited] > FortranProject plugin activated > [Detaching after fork from child process 20214] > > (codeblocks:20057): Gtk-CRITICAL **: 00:04:05.214: > gtk_tree_model_iter_nth_child: assertion 'n >= 0' failed > [New Thread 0x7fffb4ac36c0 (LWP 20215)] > [Thread 0x7fffb4ac36c0 (LWP 20215) exited] > [Detaching after fork from child process 20216] > [New Thread 0x7fffb5b5d6c0 (LWP 20217)] > [New Thread 0x7fffb535c6c0 (LWP 20218)] > [Thread 0x7fffb5b5d6c0 (LWP 20217) exited] > [New Thread 0x7fffb5b5d6c0 (LWP 20219)] > [New Thread 0x7fffa7fff6c0 (LWP 20220)] > [Thread 0x7fffb5b5d6c0 (LWP 20219) exited] > [Thread 0x7fffb535c6c0 (LWP 20218) exited] > [Thread 0x7fffa7fff6c0 (LWP 20220) exited] > ClassBrowser::UpdateClassBrowserView(): No active project available. > Updating class browser... > Class browser updated > > Thread 1 "codeblocks" received signal SIGSEGV, Segmentation fault. > DoxyBlocks::OnUpdateUI (this=0x555556a71640) at DoxyBlocks.cpp:238 > 238 m_pToolbar->Enable(false); : Great thanks! Now it similar to issue that was fixed by upstream at May 2020 after codeblocks 20.03 release: https://sourceforge.net/p/codeblocks/code/12074/
Created attachment 887110 [details] output from gdb with bt Hi this is the full output with bt. I guess it is some gtk related problem. [New Thread 0x7fffb52fc6c0 (LWP 15660)] [Thread 0x7fffb5b956c0 (LWP 15658) exited] [Thread 0x7fffb63966c0 (LWP 15659) exited] [Thread 0x7fffb52fc6c0 (LWP 15660) exited] FortranProject plugin activated [Detaching after fork from child process 15661] (codeblocks:15504): Gtk-CRITICAL **: 00:32:21.222: gtk_tree_model_iter_nth_child: assertion 'n >= 0' failed [New Thread 0x7fffb52fc6c0 (LWP 15662)] [Thread 0x7fffb52fc6c0 (LWP 15662) exited] [Detaching after fork from child process 15663] [New Thread 0x7fffb63966c0 (LWP 15664)] [New Thread 0x7fffb5b956c0 (LWP 15665)] [Thread 0x7fffb63966c0 (LWP 15664) exited] [New Thread 0x7fffb63966c0 (LWP 15666)] [New Thread 0x7fffa7fff6c0 (LWP 15667)] [Thread 0x7fffb63966c0 (LWP 15666) exited] [Thread 0x7fffb5b956c0 (LWP 15665) exited] [Thread 0x7fffa7fff6c0 (LWP 15667) exited] ClassBrowser::UpdateClassBrowserView(): No active project available. Updating class browser... Class browser updated Thread 1 "codeblocks" received signal SIGSEGV, Segmentation fault. 0x00007fffcc283ddf in DoxyBlocks::OnUpdateUI(wxUpdateUIEvent&) () from /usr/lib64/codeblocks/plugins/libDoxyBlocks.so (gdb) bt #0 0x00007fffcc283ddf in DoxyBlocks::OnUpdateUI(wxUpdateUIEvent&) () at /usr/lib64/codeblocks/plugins/libDoxyBlocks.so #1 0x00007ffff6451ac2 in wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) () at /usr/lib64/libwx_baseu-3.0-gtk3.so.0 #2 0x00007ffff6451bc3 in wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) () at /usr/lib64/libwx_baseu-3.0-gtk3.so.0 #3 0x00007ffff6451fac in wxEvtHandler::TryHereOnly(wxEvent&) () at /usr/lib64/libwx_baseu-3.0-gtk3.so.0 #4 0x00007ffff6451e33 in wxEvtHandler::DoTryChain(wxEvent&) () at /usr/lib64/libwx_baseu-3.0-gtk3.so.0 #5 0x00007ffff6452121 in wxEvtHandler::ProcessEvent(wxEvent&) () at /usr/lib64/libwx_baseu-3.0-gtk3.so.0 #6 0x00007ffff6a92b7d in wxMenuBase::UpdateUI(wxEvtHandler*) () at /usr/lib64/libwx_gtk3u_core-3.0-gtk3.so.0 #7 0x00007ffff6a9313d in wxMenuBarBase::UpdateMenus() () at /usr/lib64/libwx_gtk3u_core-3.0-gtk3.so.0 #8 0x00007ffff6a0c0a9 in wxFrameBase::OnInternalIdle() () at /usr/lib64/libwx_gtk3u_core-3.0-gtk3.so.0 #9 0x00007ffff6af2f33 in wxWindowBase::SendIdleEvents(wxIdleEvent&) () at /usr/lib64/libwx_gtk3u_core-3.0-gtk3.so.0 #10 0x00007ffff693aa65 in wxFrame::SendIdleEvents(wxIdleEvent&) () at /usr/lib64/libwx_gtk3u_core-3.0-gtk3.so.0 #11 0x00007ffff698745d in wxAppBase::ProcessIdle() () at /usr/lib64/libwx_gtk3u_core-3.0-gtk3.so.0 #12 0x00007ffff6896ed8 in wxApp::DoIdle() () at /usr/lib64/libwx_gtk3u_core-3.0-gtk3.so.0 #13 0x00007ffff6897033 in ??? () at /usr/lib64/libwx_gtk3u_core-3.0-gtk3.so.0 #14 0x00007ffff5b39c5e in ??? () at /usr/lib64/libglib-2.0.so.0 #15 0x00007ffff5b3cd17 in ??? () at /usr/lib64/libglib-2.0.so.0 #16 0x00007ffff5b3ec68 in ??? () at /usr/lib64/libglib-2.0.so.0 #17 0x00007ffff5b3f6ff in g_main_loop_run () at /usr/lib64/libglib-2.0.so.0 #18 0x00007ffff541fbcd in gtk_main () at /usr/lib64/libgtk-3.so.0 #19 0x00007ffff68bc685 in wxGUIEventLoop::DoRun() () at /usr/lib64/libwx_gtk3u_core-3.0-gtk3.so.0 #20 0x00007ffff62ed06d in wxEventLoopBase::Run() () at /usr/lib64/libwx_baseu-3.0-gtk3.so.0 #21 0x00007ffff6425699 in wxAppTraits::RunLoopUntilChildExit(wxExecuteData&, wxEventLoopBase&) () at /usr/lib64/libwx_baseu-3.0-gtk3.so.0 #22 0x00007ffff68eb141 in wxGUIAppTraits::WaitForChild(wxExecuteData&) () at /usr/lib64/libwx_gtk3u_core-3.0-gtk3.so.0 #23 0x00007ffff6431183 in wxExecute(char**, int, wxProcess*, wxExecuteEnv const*) () at /usr/lib64/libwx_baseu-3.0-gtk3.so.0 #24 0x00007ffff64317e0 in wxExecute(wxString const&, int, wxProcess*, wxExecuteEnv const*) () at /usr/lib64/libwx_baseu-3.0-gtk3.so.0 #25 0x00007ffff645a851 in wxExecute(wxString const&, wxArrayString&, int, wxExecuteEnv const*) () at /usr/lib64/libwx_baseu-3.0-gtk3.so.0 #26 0x00007fffb75bf490 in PkgConfigManager::DetectLibraries(ResultMap&) () at /usr/lib64/codeblocks/plugins/liblib_finder.so #27 0x00007fffb75b2d6f in ResultMap::ReadPkgConfigResults(PkgConfigManager*) () at /usr/lib64/codeblocks/plugins/liblib_finder.so #28 0x00007fffb75cde09 in lib_finder::OnAttach() () at /usr/lib64/codeblocks/plugins/liblib_finder.so #29 0x00007ffff786464c in cbPlugin::Attach() () at /usr/lib64/libcodeblocks.so.0 #30 0x00007ffff79839df in PluginManager::AttachPlugin(cbPlugin*, bool) () at /usr/lib64/libcodeblocks.so.0 #31 0x00007ffff798ad40 in PluginManager::LoadAllPlugins() () at /usr/lib64/libcodeblocks.so.0 --Type <RET> for more, q to quit, c to continue without paging-- #32 0x0000555555688397 in ??? () #33 0x00005555556806ea in ??? () #34 0x000055555560469b in ??? () #35 0x0000555555605f40 in ??? () #36 0x000055555560e857 in ??? () #37 0x00007ffff6346be2 in wxEntry(int&, wchar_t**) () at /usr/lib64/libwx_baseu-3.0-gtk3.so.0 #38 0x0000555555603e7f in main () (gdb)
yes, from the description it appears to be similar to https://sourceforge.net/p/codeblocks/code/12074/ It is some problem that appears after the plugins were loaded and the toolbar is build. I just wonder why some are seeing this and others don't...
Hi there, here are comments from the codeblocks forum https://forums.codeblocks.org/index.php/topic,23858.15.html?PHPSESSID=25a03ada7d3778c848df3840428e87b3 "This is a known and fixed problem. You'll have to apply the patch from revision 12176. https://sourceforge.net/p/codeblocks/code/12176/" Is this patch applied in the gentoo ebuild?
Created attachment 887111 [details] patch for codeblocks Apparently not.... I have made a patck from the sourceforge diff file. I attached it to this posting. Now codeblocks starts correctly when i use it with USE="contrib"
i guess with the patch above, one should update the ebuild and stabilize...
Created attachment 887184 [details, diff] codeblocks-20.03_fix_DoxyBlocks_startup_segfault.patch
Created attachment 887185 [details, diff] codeblocks-20.03_Scintilla_fix_buffer_over-read_with_absolute_reference.patch
Created attachment 887186 [details] codeblocks-20.03-r7.ebuild Thanks for debug info again. I prepare ebuild with additional patch from Scintilla upstream to fix Scintilla lexer warning, i.e. new 3 files: codeblocks-20.03-r7.ebuild files/codeblocks-20.03_fix_DoxyBlocks_startup_segfault.patch files/codeblocks-20.03_Scintilla_fix_buffer_over-read_with_absolute_reference.patch Please recheck it on your system, I currently will prepare pull request for portage tree.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1942cc9d811e65d8488108b1ef0948058c53f213 commit 1942cc9d811e65d8488108b1ef0948058c53f213 Author: Sergey Torokhov <torokhov-s-a@yandex.ru> AuthorDate: 2024-03-09 18:46:09 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-03-09 20:53:24 +0000 dev-util/codeblocks: 20.03-r7, fix DoxyBlocks plugin startup segfault Closes: https://bugs.gentoo.org/925955 Signed-off-by: Sergey Torokhov <torokhov-s-a@yandex.ru> Signed-off-by: Sam James <sam@gentoo.org> dev-util/codeblocks/codeblocks-20.03-r7.ebuild | 97 ++++++++++++++++++++++ ...cks-20.03_fix_DoxyBlocks_startup_segfault.patch | 61 ++++++++++++++ 2 files changed, 158 insertions(+) Additionally, it has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ea2b6a11aca27a11c87862518b9a536f8af94738 commit ea2b6a11aca27a11c87862518b9a536f8af94738 Author: Sergey Torokhov <torokhov-s-a@yandex.ru> AuthorDate: 2024-03-09 18:49:17 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-03-09 20:53:38 +0000 dev-util/codeblocks: 20.03-r7, fix Scintilla buffer over-read warning Upstream patch: https://sourceforge.net/u/vic5/scintilla/ci/6d0ce3 Upstream issue: https://sourceforge.net/p/scintilla/bugs/2019/ [sam: Revbump done in previous commit.] Bug: https://bugs.gentoo.org/925955 Signed-off-by: Sergey Torokhov <torokhov-s-a@yandex.ru> Closes: https://github.com/gentoo/gentoo/pull/35687 Signed-off-by: Sam James <sam@gentoo.org> dev-util/codeblocks/codeblocks-20.03-r7.ebuild | 1 + ..._buffer_over-read_with_absolute_reference.patch | 24 ++++++++++++++++++++++ 2 files changed, 25 insertions(+)