public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug jit/63969] gccjit segfaults when it can't locate the correct gcc driver program
[not found] <bug-63969-4@http.gcc.gnu.org/bugzilla/>
@ 2014-11-20 1:22 ` dmalcolm at gcc dot gnu.org
2014-11-20 6:19 ` dmalcolm at gcc dot gnu.org
` (6 subsequent siblings)
7 siblings, 0 replies; 8+ messages in thread
From: dmalcolm at gcc dot gnu.org @ 2014-11-20 1:22 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63969
dmalcolm at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2014-11-20
Ever confirmed|0 |1
--- Comment #1 from dmalcolm at gcc dot gnu.org ---
Confirmed: this is trivial to reproduce by running:
make check-jit
to build the test programs, or just one like so:
make check-jit RUNTESTFLAGS="-v -v -v jit.exp=tut01-hello-world.c"
then running:
./testsuite/jit/tut01-hello-world.exe
outside of the jit.exp harness (thus not setting up the envvars).
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug jit/63969] gccjit segfaults when it can't locate the correct gcc driver program
[not found] <bug-63969-4@http.gcc.gnu.org/bugzilla/>
2014-11-20 1:22 ` [Bug jit/63969] gccjit segfaults when it can't locate the correct gcc driver program dmalcolm at gcc dot gnu.org
@ 2014-11-20 6:19 ` dmalcolm at gcc dot gnu.org
2014-11-20 6:20 ` dmalcolm at gcc dot gnu.org
` (5 subsequent siblings)
7 siblings, 0 replies; 8+ messages in thread
From: dmalcolm at gcc dot gnu.org @ 2014-11-20 6:19 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63969
dmalcolm at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
--- Comment #2 from dmalcolm at gcc dot gnu.org ---
Segfault occurs if driver is not found on PATH *and* the context's
GCC_JIT_STR_OPTION_PROGNAME is NULL.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug jit/63969] gccjit segfaults when it can't locate the correct gcc driver program
[not found] <bug-63969-4@http.gcc.gnu.org/bugzilla/>
2014-11-20 1:22 ` [Bug jit/63969] gccjit segfaults when it can't locate the correct gcc driver program dmalcolm at gcc dot gnu.org
2014-11-20 6:19 ` dmalcolm at gcc dot gnu.org
@ 2014-11-20 6:20 ` dmalcolm at gcc dot gnu.org
2014-11-20 6:29 ` dmalcolm at gcc dot gnu.org
` (4 subsequent siblings)
7 siblings, 0 replies; 8+ messages in thread
From: dmalcolm at gcc dot gnu.org @ 2014-11-20 6:20 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63969
--- Comment #3 from dmalcolm at gcc dot gnu.org ---
(In reply to dmalcolm from comment #2)
> Segfault occurs if driver is not found on PATH *and* the context's
> GCC_JIT_STR_OPTION_PROGNAME is NULL.
...and hence only the tutorials run into this; the rest of the testsuite uses
harness.h, which sets that option to non-NULL.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug jit/63969] gccjit segfaults when it can't locate the correct gcc driver program
[not found] <bug-63969-4@http.gcc.gnu.org/bugzilla/>
` (2 preceding siblings ...)
2014-11-20 6:20 ` dmalcolm at gcc dot gnu.org
@ 2014-11-20 6:29 ` dmalcolm at gcc dot gnu.org
2014-11-20 6:32 ` dmalcolm at gcc dot gnu.org
` (3 subsequent siblings)
7 siblings, 0 replies; 8+ messages in thread
From: dmalcolm at gcc dot gnu.org @ 2014-11-20 6:29 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63969
--- Comment #4 from dmalcolm at gcc dot gnu.org ---
Patch posted for review as
https://gcc.gnu.org/ml/gcc-patches/2014-11/msg02617.html
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug jit/63969] gccjit segfaults when it can't locate the correct gcc driver program
[not found] <bug-63969-4@http.gcc.gnu.org/bugzilla/>
` (3 preceding siblings ...)
2014-11-20 6:29 ` dmalcolm at gcc dot gnu.org
@ 2014-11-20 6:32 ` dmalcolm at gcc dot gnu.org
2014-11-21 16:07 ` dmalcolm at gcc dot gnu.org
` (2 subsequent siblings)
7 siblings, 0 replies; 8+ messages in thread
From: dmalcolm at gcc dot gnu.org @ 2014-11-20 6:32 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63969
--- Comment #5 from dmalcolm at gcc dot gnu.org ---
Note: with the fix, the testcase (with an unset PATH) emits these error
messages for me:
libgccjit.so: error trying to exec 'x86_64-unknown-linux-gnu-gcc-5.0.0':
execvp: No such file or directory
libgccjit.so: error: error invoking gcc driver: exit_status: 65280 err: 0
libgccjit.so: error: whilst attempting to run a driver named:
x86_64-unknown-linux-gnu-gcc-5.0.0
libgccjit.so: error: PATH was: (null)
which hopefully should make it clearer that it's a PATH issue.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug jit/63969] gccjit segfaults when it can't locate the correct gcc driver program
[not found] <bug-63969-4@http.gcc.gnu.org/bugzilla/>
` (4 preceding siblings ...)
2014-11-20 6:32 ` dmalcolm at gcc dot gnu.org
@ 2014-11-21 16:07 ` dmalcolm at gcc dot gnu.org
2014-12-01 15:58 ` dmalcolm at gcc dot gnu.org
2014-12-01 16:00 ` dmalcolm at gcc dot gnu.org
7 siblings, 0 replies; 8+ messages in thread
From: dmalcolm at gcc dot gnu.org @ 2014-11-21 16:07 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63969
--- Comment #6 from dmalcolm at gcc dot gnu.org ---
(In reply to dmalcolm from comment #4)
> Patch posted for review as
> https://gcc.gnu.org/ml/gcc-patches/2014-11/msg02617.html
TMM confirmed on IRC that the proposed patch fixes the issue for them.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug jit/63969] gccjit segfaults when it can't locate the correct gcc driver program
[not found] <bug-63969-4@http.gcc.gnu.org/bugzilla/>
` (5 preceding siblings ...)
2014-11-21 16:07 ` dmalcolm at gcc dot gnu.org
@ 2014-12-01 15:58 ` dmalcolm at gcc dot gnu.org
2014-12-01 16:00 ` dmalcolm at gcc dot gnu.org
7 siblings, 0 replies; 8+ messages in thread
From: dmalcolm at gcc dot gnu.org @ 2014-12-01 15:58 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63969
--- Comment #7 from dmalcolm at gcc dot gnu.org ---
Author: dmalcolm
Date: Mon Dec 1 15:58:11 2014
New Revision: 218226
URL: https://gcc.gnu.org/viewcvs?rev=218226&root=gcc&view=rev
Log:
PR jit/63969: Fix segfault in error-handling when driver isn't found
gcc/jit/ChangeLog:
PR jit/63969
* jit-playback.c: Ensure that ctxt_progname is non-NULL.
gcc/testsuite/ChangeLog:
PR jit/63969
* jit.dg/harness.h (CHECK_STRING_STARTS_WITH): New.
(check_string_starts_with): New.
* jit.dg/test-error-pr63969-missing-driver.c: New.
Added:
trunk/gcc/testsuite/jit.dg/test-error-pr63969-missing-driver.c
Modified:
trunk/gcc/jit/ChangeLog
trunk/gcc/jit/jit-playback.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/jit.dg/harness.h
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug jit/63969] gccjit segfaults when it can't locate the correct gcc driver program
[not found] <bug-63969-4@http.gcc.gnu.org/bugzilla/>
` (6 preceding siblings ...)
2014-12-01 15:58 ` dmalcolm at gcc dot gnu.org
@ 2014-12-01 16:00 ` dmalcolm at gcc dot gnu.org
7 siblings, 0 replies; 8+ messages in thread
From: dmalcolm at gcc dot gnu.org @ 2014-12-01 16:00 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63969
dmalcolm at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
--- Comment #8 from dmalcolm at gcc dot gnu.org ---
Should be fixed as of r218226.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2014-12-01 16:00 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-63969-4@http.gcc.gnu.org/bugzilla/>
2014-11-20 1:22 ` [Bug jit/63969] gccjit segfaults when it can't locate the correct gcc driver program dmalcolm at gcc dot gnu.org
2014-11-20 6:19 ` dmalcolm at gcc dot gnu.org
2014-11-20 6:20 ` dmalcolm at gcc dot gnu.org
2014-11-20 6:29 ` dmalcolm at gcc dot gnu.org
2014-11-20 6:32 ` dmalcolm at gcc dot gnu.org
2014-11-21 16:07 ` dmalcolm at gcc dot gnu.org
2014-12-01 15:58 ` dmalcolm at gcc dot gnu.org
2014-12-01 16:00 ` dmalcolm at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).