* [Bug translator/4166] New: Assertion failure in c_translate_array
@ 2007-03-07 10:06 dolmen at users dot sourceforge dot net
2007-03-07 11:15 ` [Bug translator/4166] " roland at gnu dot org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: dolmen at users dot sourceforge dot net @ 2007-03-07 10:06 UTC (permalink / raw)
To: systemtap
% ./crash-c_translate_array.stp
stap: loc2c.c:1584: c_translate_array: Assertion `dwarf_tag (typedie) ==
DW_TAG_array_type' failed.
Aborted (core dumped)
% cat ./crash-c_translate_array.stp
#!/usr/bin/env stap
probe syscall.execve
{
print($argv[0])
exit()
}
% stap -V
SystemTap translator/driver (version 0.5.4 built 2006-02-02)
Copyright (C) 2005-2006 Red Hat, Inc. and others
This is free software; see the source for copying conditions.
% cat /etc/redhat-release
Red Hat Enterprise Linux ES release 4 (Nahant Update 3)
% gcc -v
Reading specs from /usr/lib/gcc/x86_64-redhat-linux/3.4.5/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--disable-checking --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-java-awt=gtk --host=x86_64-redhat-linux
Thread model: posix
gcc version 3.4.5 20051201 (Red Hat 3.4.5-2)
%
--
Summary: Assertion failure in c_translate_array
Product: systemtap
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: translator
AssignedTo: systemtap at sources dot redhat dot com
ReportedBy: dolmen at users dot sourceforge dot net
http://sourceware.org/bugzilla/show_bug.cgi?id=4166
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug translator/4166] Assertion failure in c_translate_array
2007-03-07 10:06 [Bug translator/4166] New: Assertion failure in c_translate_array dolmen at users dot sourceforge dot net
@ 2007-03-07 11:15 ` roland at gnu dot org
2007-03-07 15:48 ` [Bug translator/4166] Should support array-like indexing on $pointer variables fche at redhat dot com
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: roland at gnu dot org @ 2007-03-07 11:15 UTC (permalink / raw)
To: systemtap
------- Additional Comments From roland at gnu dot org 2007-03-07 11:15 -------
The translator is responsible for checking Dwarf types and calling c_translate_*
with only the appropriate DIE flavor for each call. To support C-style use of
pointers with array syntax, it needs to use c_translate_pointer+addressof, then
do its own arithmetic. c_translate_array could be extended to do this for
DW_TAG_pointer, but still it looks like the translator is not checking types
before calling loc2c.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=4166
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug translator/4166] Should support array-like indexing on $pointer variables
2007-03-07 10:06 [Bug translator/4166] New: Assertion failure in c_translate_array dolmen at users dot sourceforge dot net
2007-03-07 11:15 ` [Bug translator/4166] " roland at gnu dot org
@ 2007-03-07 15:48 ` fche at redhat dot com
2008-06-02 15:46 ` fche at redhat dot com
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: fche at redhat dot com @ 2007-03-07 15:48 UTC (permalink / raw)
To: systemtap
------- Additional Comments From fche at redhat dot com 2007-03-07 15:48 -------
A patch has been committed to produce a cleaner exception for this case
rather than an assertion failure. However, the code does not support pointer
arithmetic yet, so I'll relabel this bug to track this enhancement.
--
What |Removed |Added
----------------------------------------------------------------------------
Summary|Assertion failure in |Should support array-like
|c_translate_array |indexing on $pointer
| |variables
http://sourceware.org/bugzilla/show_bug.cgi?id=4166
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug translator/4166] Should support array-like indexing on $pointer variables
2007-03-07 10:06 [Bug translator/4166] New: Assertion failure in c_translate_array dolmen at users dot sourceforge dot net
2007-03-07 11:15 ` [Bug translator/4166] " roland at gnu dot org
2007-03-07 15:48 ` [Bug translator/4166] Should support array-like indexing on $pointer variables fche at redhat dot com
@ 2008-06-02 15:46 ` fche at redhat dot com
2008-08-13 18:20 ` mwielaard at redhat dot com
2009-04-01 16:16 ` jistone at redhat dot com
4 siblings, 0 replies; 6+ messages in thread
From: fche at redhat dot com @ 2008-06-02 15:46 UTC (permalink / raw)
To: systemtap
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|systemtap at sources dot |mwielaard at redhat dot com
|redhat dot com |
Status|NEW |ASSIGNED
http://sourceware.org/bugzilla/show_bug.cgi?id=4166
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug translator/4166] Should support array-like indexing on $pointer variables
2007-03-07 10:06 [Bug translator/4166] New: Assertion failure in c_translate_array dolmen at users dot sourceforge dot net
` (2 preceding siblings ...)
2008-06-02 15:46 ` fche at redhat dot com
@ 2008-08-13 18:20 ` mwielaard at redhat dot com
2009-04-01 16:16 ` jistone at redhat dot com
4 siblings, 0 replies; 6+ messages in thread
From: mwielaard at redhat dot com @ 2008-08-13 18:20 UTC (permalink / raw)
To: systemtap
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|mwielaard at redhat dot com |systemtap at sources dot
| |redhat dot com
Status|ASSIGNED |NEW
http://sourceware.org/bugzilla/show_bug.cgi?id=4166
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug translator/4166] Should support array-like indexing on $pointer variables
2007-03-07 10:06 [Bug translator/4166] New: Assertion failure in c_translate_array dolmen at users dot sourceforge dot net
` (3 preceding siblings ...)
2008-08-13 18:20 ` mwielaard at redhat dot com
@ 2009-04-01 16:16 ` jistone at redhat dot com
4 siblings, 0 replies; 6+ messages in thread
From: jistone at redhat dot com @ 2009-04-01 16:16 UTC (permalink / raw)
To: systemtap
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|systemtap at sources dot |jistone at redhat dot com
|redhat dot com |
Status|NEW |ASSIGNED
http://sourceware.org/bugzilla/show_bug.cgi?id=4166
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2009-04-01 16:16 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-07 10:06 [Bug translator/4166] New: Assertion failure in c_translate_array dolmen at users dot sourceforge dot net
2007-03-07 11:15 ` [Bug translator/4166] " roland at gnu dot org
2007-03-07 15:48 ` [Bug translator/4166] Should support array-like indexing on $pointer variables fche at redhat dot com
2008-06-02 15:46 ` fche at redhat dot com
2008-08-13 18:20 ` mwielaard at redhat dot com
2009-04-01 16:16 ` jistone at redhat dot com
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).