Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Feb 2022 03:17:25 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 262220] clang fails to write a reproducer on signal
Message-ID:  <bug-262220-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262220

            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=3Dc99 -Wall -Wextra -pedantic =
-Wno-misleading-indentation -Wno-shift-negative-value -O2 -o bin/file_brows=
er file_browser.c -L/usr/local/lib -lglfw  -lGL -lm -lGLU -lGLEW
> PLEASE submit a bug report to https://bugs.freebsd.org/submit/ and includ=
e the crash backtrace, preprocessed source, and associated run script.
> PLEASE submit a bug report to https://bugs.freebsd.org/submit/ and includ=
e 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=3Dcr99  --Wdaills ca=
-rWde-xvtraalu e--pendamaenst i-cm a-iWnn-of-imlies-lneaamdei nfigl-ei_nbdr=
eonwtsaetri.onc  --mrWenloo-schiaftti-onne-gmaotdievle -svtaaltuei c- O-2m =
f-roa mbei-np/ofiinlte_ebrro=3Dwaslelr  f-irleel_abxredo-walsiaesri.ncg  --=
Lf/nuos-rro/ulnodcianlg/-lmiabt -lhgl f-wm c-loGnLs t-rlumc t-olrG-LaUl i-a=
lsGeLsE W-
munwind-tables -target-cpu x86-64 -tune-cpu generic -fno-split-dwarf-inlini=
ng
-debugger-tuning=3Dgdb -resource-dir /usr/lib/clang/12.0.1 -isystem
/usr/local/include -O2 -Wall -Wextra -Wno-misleading-indentation
-Wno-shift-negative-value -pedantic -std=3Dc99 -fdebug-compilation-dir
/disk-samsung/freebsd-ports/x11-toolkits/nuklear/work/Nuklear-4.9.6/example
-ferror-limit 19 -stack-protector 2 -fgnuc-version=3D4.2.1 -fcolor-diagnost=
ics
-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/l=
lvm-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/d=
isk-samsung/freebsd-src/contrib/llvm-project/llvm/lib/Support/Unix/Signals.=
inc:565:13=20
/disk-samsung/freebsd-src/contrib/llvm-project/llvm/lib/Support/Unix/Signal=
s.inc:0:3
> #1 #30x000000000404d035  0x0000000805335e60RunSignalHandlers  handle_sign=
al/disk-samsung/freebsd-src/contrib/llvm-project/llvm/lib/Support/Signals.c=
pp:72:18=20
/disk-samsung/freebsd-src/lib/libthr/thread/thr_sig.c:0:3
> #2 0x000000000404f3b0 SignalHandler /disk-samsung/freebsd-src/contrib/llv=
m-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.tm=
p' to output file '/tmp/file_browser-f37ca1.o': 'No such file or directory'
> 1 error generated.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-262220-227>