Discussion:
[Bug rust/23124] New: null deref when casting to the unit type
danlrobertson89 at gmail dot com
2018-04-28 01:55:43 UTC
Permalink
https://sourceware.org/bugzilla/show_bug.cgi?id=23124

Bug ID: 23124
Summary: null deref when casting to the unit type
Product: gdb
Version: HEAD
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: rust
Assignee: unassigned at sourceware dot org
Reporter: danlrobertson89 at gmail dot com
Target Milestone: ---

Minimal repro:

(gdb) set language rust
(gdb) print 8 as *const ()

Note:
Same issue happens when casting to a function with an empty arg list.
--
You are receiving this mail because:
You are on the CC list for the bug.
danlrobertson89 at gmail dot com
2018-04-28 01:56:00 UTC
Permalink
https://sourceware.org/bugzilla/show_bug.cgi?id=23124

Dan Robertson <danlrobertson89 at gmail dot com> changed:

What |Removed |Added
----------------------------------------------------------------------------
Summary|null deref when casting to |rust: null deref when
|the unit type |casting to the unit type
--
You are receiving this mail because:
You are on the CC list for the bug.
danlrobertson89 at gmail dot com
2018-04-28 01:57:15 UTC
Permalink
https://sourceware.org/bugzilla/show_bug.cgi?id=23124

--- Comment #1 from Dan Robertson <danlrobertson89 at gmail dot com> ---
I'm currently working on a fix. Is it preferred to attach patches to the bug
report or send them via an email like the CONTRIBUTING document states.
--
You are receiving this mail because:
You are on the CC list for the bug.
danlrobertson89 at gmail dot com
2018-04-28 03:25:11 UTC
Permalink
https://sourceware.org/bugzilla/show_bug.cgi?id=23124

--- Comment #2 from Dan Robertson <danlrobertson89 at gmail dot com> ---
Created attachment 10989
--> https://sourceware.org/bugzilla/attachment.cgi?id=10989&action=edit
patch
--
You are receiving this mail because:
You are on the CC list for the bug.
tromey at sourceware dot org
2018-05-01 13:41:35 UTC
Permalink
https://sourceware.org/bugzilla/show_bug.cgi?id=23124

Tom Tromey <tromey at sourceware dot org> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
CC| |tromey at sourceware dot org
Resolution|--- |FIXED
Target Milestone|--- |8.2

--- Comment #3 from Tom Tromey <tromey at sourceware dot org> ---
Fix checked in.
I think bugzilla had some issue last night so the commit
message didn't wind up in here.
--
You are receiving this mail because:
You are on the CC list for the bug.
Loading...