[Bug 57026] New: compile_commands.json change causes segmentation faults when running configure.
https://bugs.winehq.org/show_bug.cgi?id=57026 Bug ID: 57026 Summary: compile_commands.json change causes segmentation faults when running configure. Product: Wine Version: 9.12 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: tools Assignee: wine-bugs(a)winehq.org Reporter: topgamer7(a)gmail.com CC: julliard(a)winehq.org Regression SHA1: 65880e0c8c8f5cd699af6d80bf890d23f6c5d856 Distribution: --- Created attachment 76875 --> https://bugs.winehq.org/attachment.cgi?id=76875 build log. This commit is causing running ./configure to encounter a segmentation fault: 65880e0c8c8f5cd699af6d80bf890d23f6c5d856 is the first bad commit commit 65880e0c8c8f5cd699af6d80bf890d23f6c5d856 Author: Alexandre Julliard <julliard(a)winehq.org> Date: Wed Jun 26 10:37:46 2024 +0200 makedep: Generate a compile_commands.json file. configure | 3 ++- configure.ac | 3 ++- tools/makedep.c | 131 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++----------------- 3 files changed, 118 insertions(+), 19 deletions(-) Found via git bisect. My machine details: Linux 6.10.2-arch1-1.1-g14 #1 SMP PREEMPT_DYNAMIC Tue, 30 Jul 2024 06:22:55 +0000 x86_64 GNU/Linux CPU: AMD Ryzen 9 6900HS with Radeon Graphics (16) @ 4.935GHz GPU: AMD ATI Radeon 680M GPU: AMD ATI Radeon RX 6650 XT / 6700S / 6800S Memory: 12822MiB / 23251MiB Host: ROG Zephyrus G14 GA402RK_GA402RK 1.0 OS: Manjaro Linux x86_64 WM: sway -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=57026 --- Comment #1 from James <topgamer7(a)gmail.com> --- Created attachment 76876 --> https://bugs.winehq.org/attachment.cgi?id=76876 My build script -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=57026 --- Comment #2 from Alexandre Julliard <julliard(a)winehq.org> --- Could you please get a backtrace of the crash? You should be able to get one by running tools/makedep under gdb. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=57026 --- Comment #3 from James <topgamer7(a)gmail.com> --- (In reply to Alexandre Julliard from comment #2)
Could you please get a backtrace of the crash? You should be able to get one by running tools/makedep under gdb.
$ gdb --args makedep -C GNU gdb (GDB) 15.1 Copyright (C) 2024 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-pc-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: <https://www.gnu.org/software/gdb/bugs/>. Find the GDB manual and other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>. For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from makedep... This GDB supports auto-downloading debuginfo from the following URLs: <https://debuginfod.archlinux.org> Enable debuginfod for this session? (y or [n]) Debuginfod has been disabled. --Type <RET> for more, q to quit, c to continue without paging-- To make this setting permanent, add 'set debuginfod enabled off' to .gdbinit. (No debugging symbols found in makedep) (gdb) run Starting program: /home/james/projects/wine-fresh/build-64/tools/makedep -C [Thread debugging using libthread_db enabled] Using host libthread_db library "/usr/lib/libthread_db.so.1". Program received signal SIGSEGV, Segmentation fault. 0x0000555555556f22 in strarray_set_value () (gdb) bt #0 0x0000555555556f22 in strarray_set_value () #1 0x0000555555566029 in load_sources () #2 0x000055555556775e in main () (gdb) -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=57026 Alexandre Julliard <julliard(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|UNCONFIRMED |RESOLVED Fixed by SHA1| |4ff919f54dd6eb97faa9ee8c7a4 | |1e3fbde548a7e --- Comment #4 from Alexandre Julliard <julliard(a)winehq.org> --- Thanks, looks like it's caused by using empty CFLAGS. That's not recommended, but it shouldn't crash of course. Hopefully fixed by 4ff919f54dd6eb97faa9ee8c7a41e3fbde548a7e. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=57026 Alexandre Julliard <julliard(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #5 from Alexandre Julliard <julliard(a)winehq.org> --- Closing bugs fixed in 9.15. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
participants (1)
-
WineHQ Bugzilla