public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/66354] New: [UBSAN] stl_algobase.h:708:7: runtime error: null pointer passed as argument
@ 2015-05-31 20:40 dimhen at gmail dot com
2015-05-31 21:32 ` [Bug libstdc++/66354] " redi at gcc dot gnu.org
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: dimhen at gmail dot com @ 2015-05-31 20:40 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66354
Bug ID: 66354
Summary: [UBSAN] stl_algobase.h:708:7: runtime error: null
pointer passed as argument
Product: gcc
Version: 6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: dimhen at gmail dot com
Target Milestone: ---
Sorry, I have no compact testcase.
/usr/local/gcc_current/include/c++/6.0.0/bits/stl_algobase.h:708:7: runtime
error: null pointer passed as argument 1, which is declared to never be null
$ /usr/local/gcc_current/bin/g++ -v
Using built-in specs.
COLLECT_GCC=/usr/local/gcc_current/bin/g++
COLLECT_LTO_WRAPPER=/usr/local/gcc_current/libexec/gcc/x86_64-unknown-linux-gnu/6.0.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: /home/dimhen/src/gcc_current/configure
--prefix=/usr/local/gcc_current --enable-static
--enable-checking=yes,df,fold,rtl --enable-languages=c,c++,lto --enable-plugin
--disable-libstdcxx-dual-abi --disable-multilib
Thread model: posix
gcc version 6.0.0 20150531 (experimental) [trunk revision 223898] (GCC)
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug libstdc++/66354] [UBSAN] stl_algobase.h:708:7: runtime error: null pointer passed as argument
2015-05-31 20:40 [Bug libstdc++/66354] New: [UBSAN] stl_algobase.h:708:7: runtime error: null pointer passed as argument dimhen at gmail dot com
@ 2015-05-31 21:32 ` redi at gcc dot gnu.org
2015-05-31 21:35 ` redi at gcc dot gnu.org
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: redi at gcc dot gnu.org @ 2015-05-31 21:32 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66354
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Dmitry G. Dyachenko from comment #0)
> Sorry, I have no compact testcase.
Could you at least use -fno-sanitize-recover=undefined and look at the stack
trace where it happens?
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug libstdc++/66354] [UBSAN] stl_algobase.h:708:7: runtime error: null pointer passed as argument
2015-05-31 20:40 [Bug libstdc++/66354] New: [UBSAN] stl_algobase.h:708:7: runtime error: null pointer passed as argument dimhen at gmail dot com
2015-05-31 21:32 ` [Bug libstdc++/66354] " redi at gcc dot gnu.org
@ 2015-05-31 21:35 ` redi at gcc dot gnu.org
2015-05-31 22:42 ` redi at gcc dot gnu.org
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: redi at gcc dot gnu.org @ 2015-05-31 21:35 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66354
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2015-05-31
Assignee|unassigned at gcc dot gnu.org |redi at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
#include <vector>
int main()
{
std::vector<unsigned char> v;
v.assign(0, 'a');
}
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug libstdc++/66354] [UBSAN] stl_algobase.h:708:7: runtime error: null pointer passed as argument
2015-05-31 20:40 [Bug libstdc++/66354] New: [UBSAN] stl_algobase.h:708:7: runtime error: null pointer passed as argument dimhen at gmail dot com
2015-05-31 21:32 ` [Bug libstdc++/66354] " redi at gcc dot gnu.org
2015-05-31 21:35 ` redi at gcc dot gnu.org
@ 2015-05-31 22:42 ` redi at gcc dot gnu.org
2015-06-01 19:41 ` dimhen at gmail dot com
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: redi at gcc dot gnu.org @ 2015-05-31 22:42 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66354
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Sun May 31 22:42:17 2015
New Revision: 223906
URL: https://gcc.gnu.org/viewcvs?rev=223906&root=gcc&view=rev
Log:
PR libstdc++/66354
* include/bits/stl_algobase.h (__fill_a): Check length before calling
memset.
Modified:
trunk/libstdc++-v3/ChangeLog
trunk/libstdc++-v3/include/bits/stl_algobase.h
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug libstdc++/66354] [UBSAN] stl_algobase.h:708:7: runtime error: null pointer passed as argument
2015-05-31 20:40 [Bug libstdc++/66354] New: [UBSAN] stl_algobase.h:708:7: runtime error: null pointer passed as argument dimhen at gmail dot com
` (2 preceding siblings ...)
2015-05-31 22:42 ` redi at gcc dot gnu.org
@ 2015-06-01 19:41 ` dimhen at gmail dot com
2015-06-08 14:19 ` redi at gcc dot gnu.org
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: dimhen at gmail dot com @ 2015-06-01 19:41 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66354
Dmitry G. Dyachenko <dimhen at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
--- Comment #5 from Dmitry G. Dyachenko <dimhen at gmail dot com> ---
r223920 PASS for me
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug libstdc++/66354] [UBSAN] stl_algobase.h:708:7: runtime error: null pointer passed as argument
2015-05-31 20:40 [Bug libstdc++/66354] New: [UBSAN] stl_algobase.h:708:7: runtime error: null pointer passed as argument dimhen at gmail dot com
` (3 preceding siblings ...)
2015-06-01 19:41 ` dimhen at gmail dot com
@ 2015-06-08 14:19 ` redi at gcc dot gnu.org
2015-06-08 14:42 ` redi at gcc dot gnu.org
2015-06-08 14:44 ` redi at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: redi at gcc dot gnu.org @ 2015-06-08 14:19 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66354
--- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Mon Jun 8 14:19:10 2015
New Revision: 224230
URL: https://gcc.gnu.org/viewcvs?rev=224230&root=gcc&view=rev
Log:
PR libstdc++/66354
* include/bits/stl_algobase.h (__fill_a): Check length before calling
memset.
PR libstdc++/66327
* include/bits/stl_algobase.h (__equal<true>::equal): Do not call
memcmp for empty ranges.
(__lexicographical_compare<true>::__lc): Likewise.
Modified:
branches/gcc-5-branch/libstdc++-v3/ChangeLog
branches/gcc-5-branch/libstdc++-v3/include/bits/stl_algobase.h
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug libstdc++/66354] [UBSAN] stl_algobase.h:708:7: runtime error: null pointer passed as argument
2015-05-31 20:40 [Bug libstdc++/66354] New: [UBSAN] stl_algobase.h:708:7: runtime error: null pointer passed as argument dimhen at gmail dot com
` (4 preceding siblings ...)
2015-06-08 14:19 ` redi at gcc dot gnu.org
@ 2015-06-08 14:42 ` redi at gcc dot gnu.org
2015-06-08 14:44 ` redi at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: redi at gcc dot gnu.org @ 2015-06-08 14:42 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66354
--- Comment #8 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Mon Jun 8 14:42:02 2015
New Revision: 224233
URL: https://gcc.gnu.org/viewcvs?rev=224233&root=gcc&view=rev
Log:
PR libstdc++/66354
* include/bits/stl_algobase.h (__fill_a): Check length before calling
memset.
PR libstdc++/66327
* include/bits/stl_algobase.h (__equal<true>::equal): Do not call
memcmp for empty ranges.
(__lexicographical_compare<true>::__lc): Likewise.
Modified:
branches/gcc-4_9-branch/libstdc++-v3/ChangeLog
branches/gcc-4_9-branch/libstdc++-v3/include/bits/stl_algobase.h
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug libstdc++/66354] [UBSAN] stl_algobase.h:708:7: runtime error: null pointer passed as argument
2015-05-31 20:40 [Bug libstdc++/66354] New: [UBSAN] stl_algobase.h:708:7: runtime error: null pointer passed as argument dimhen at gmail dot com
` (5 preceding siblings ...)
2015-06-08 14:42 ` redi at gcc dot gnu.org
@ 2015-06-08 14:44 ` redi at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: redi at gcc dot gnu.org @ 2015-06-08 14:44 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66354
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
Target Milestone|--- |4.9.3
--- Comment #9 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Fixed for 4.9.3, 5.2 and 6.0
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2015-06-08 14:44 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-31 20:40 [Bug libstdc++/66354] New: [UBSAN] stl_algobase.h:708:7: runtime error: null pointer passed as argument dimhen at gmail dot com
2015-05-31 21:32 ` [Bug libstdc++/66354] " redi at gcc dot gnu.org
2015-05-31 21:35 ` redi at gcc dot gnu.org
2015-05-31 22:42 ` redi at gcc dot gnu.org
2015-06-01 19:41 ` dimhen at gmail dot com
2015-06-08 14:19 ` redi at gcc dot gnu.org
2015-06-08 14:42 ` redi at gcc dot gnu.org
2015-06-08 14:44 ` redi 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).