[Bug 262220] clang fails to write a reproducer on signal

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 27 Feb 2022 03:17:25 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=262220

            Bug ID: 262220
           Summary: clang fails to write a reproducer on signal
           Product: Base System
           Version: 13.0-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: yuri@freebsd.org

Clang is supposed to write reproducers when it catches SIGSEGV.

However, when SETSEGV is sent with 'killall -11 cc' clang fails to write a
reproducer:

> cc -O2 -pipe -fno-omit-frame-pointer  -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing  -std=c99 -Wall -Wextra -pedantic -Wno-misleading-indentation -Wno-shift-negative-value -O2 -o bin/file_browser file_browser.c -L/usr/local/lib -lglfw  -lGL -lm -lGLU -lGLEW
> PLEASE submit a bug report to https://bugs.freebsd.org/submit/ and include the crash backtrace, preprocessed source, and associated run script.
> PLEASE submit a bug report to https://bugs.freebsd.org/submit/ and include the crash backtrace, preprocessed source, and associated run script.
> Stack dump:
> Stack dump:
> 00.	.	Program arguments: Program arguments: /uscrc/ b-iOn2/ c-cp i-pcec 1- f-ntor-iopmliet -xf8r6a_m6e4--puoniknntoerw n--ffsrteaecbks-dp1r3o.t0e c-teomri-ts-torbojn g- --mirselyasxt-reeml o/ucsart/lioocnasl /-idncilusdaeb le--ffnroe-es t-rdiicst-aabllie-alslvimn-gv er-isftide=cr99  --Wdaills ca-rWde-xvtraalu e--pendamaenst i-cm a-iWnn-of-imlies-lneaamdei nfigl-ei_nbdreonwtsaetri.onc  --mrWenloo-schiaftti-onne-gmaotdievle -svtaaltuei c- O-2m f-roa mbei-np/ofiinlte_ebrro=waslelr  f-irleel_abxredo-walsiaesri.ncg  --Lf/nuos-rro/ulnodcianlg/-lmiabt -lhgl f-wm c-loGnLs t-rlumc t-olrG-LaUl i-alsGeLsE W-
munwind-tables -target-cpu x86-64 -tune-cpu generic -fno-split-dwarf-inlining
-debugger-tuning=gdb -resource-dir /usr/lib/clang/12.0.1 -isystem
/usr/local/include -O2 -Wall -Wextra -Wno-misleading-indentation
-Wno-shift-negative-value -pedantic -std=c99 -fdebug-compilation-dir
/disk-samsung/freebsd-ports/x11-toolkits/nuklear/work/Nuklear-4.9.6/example
-ferror-limit 19 -stack-protector 2 -fgnuc-version=4.2.1 -fcolor-diagnostics
-vectorize-loops -vectorize-slp -faddrsig -o /tmp/file_browser-f37ca1.o -x c
file_browser.c
> 1.	<eof> parser at end of file
> 2.	Per-module optimization passes
> 3.	Running pass 'CallGraph Pass Manager' on module 'file_browser.c'.
> 4.	Running pass 'Jump Threading' on function '@stbi__decode_jpeg_image'
> #0 0x000000000404ec91 PrintStackTrace /disk-samsung/freebsd-src/contrib/llvm-project/llvm/lib/Support/Unix/Signals.inc:565:13
> #1 0x000000000404d035 RunSignalHandlers /disk-samsung/freebsd-src/contrib/llvm-project/llvm/lib/Support/Signals.cpp:72:18#0
>  #20x000000000404ec91  0x000000000404f3b0PrintStackTrace  SignalHandler/disk-samsung/freebsd-src/contrib/llvm-project/llvm/lib/Support/Unix/Signals.inc:565:13 
/disk-samsung/freebsd-src/contrib/llvm-project/llvm/lib/Support/Unix/Signals.inc:0:3
> #1 #30x000000000404d035  0x0000000805335e60RunSignalHandlers  handle_signal/disk-samsung/freebsd-src/contrib/llvm-project/llvm/lib/Support/Signals.cpp:72:18 
/disk-samsung/freebsd-src/lib/libthr/thread/thr_sig.c:0:3
> #2 0x000000000404f3b0 SignalHandler /disk-samsung/freebsd-src/contrib/llvm-project/llvm/lib/Support/Unix/Signals.inc:0:3
> #3 0x0000000805335e60 handle_signal /disk-samsung/freebsd-src/lib/libthr/thread/thr_sig.c:0:3
> error: unable to rename temporary '/tmp/file_browser-f37ca1-b48eb1e9.o.tmp' to output file '/tmp/file_browser-f37ca1.o': 'No such file or directory'
> 1 error generated.

-- 
You are receiving this mail because:
You are the assignee for the bug.