Jump to page: 1 2
Thread overview
[Issue 18068] No file names and line numbers in stack trace
Dec 12, 2017
Seb
Dec 12, 2017
Jack Stouffer
Dec 12, 2017
Jacob Carlborg
Dec 13, 2017
Seb
Dec 13, 2017
Seb
Dec 13, 2017
ZombineDev
Jan 15, 2018
Seb
Jan 31, 2018
Mike Franklin
Jan 31, 2018
Jacob Carlborg
Apr 19, 2018
Seb
May 17, 2018
Dmitry Olshansky
Jun 22, 2018
Mike Franklin
Jun 26, 2018
Thibaut CHARLES
Aug 17, 2018
Mike Franklin
December 12, 2017
https://issues.dlang.org/show_bug.cgi?id=18068

Seb <greensunny12@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |greensunny12@gmail.com

--
December 12, 2017
https://issues.dlang.org/show_bug.cgi?id=18068

Jack Stouffer <jack@jackstouffer.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jack@jackstouffer.com
           Severity|normal                      |regression

--- Comment #1 from Jack Stouffer <jack@jackstouffer.com> ---
This is a regression.

--
December 12, 2017
https://issues.dlang.org/show_bug.cgi?id=18068

Jacob Carlborg <doob@me.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |doob@me.com

--- Comment #2 from Jacob Carlborg <doob@me.com> ---
Make sure that tests are added this time as well.

--
December 13, 2017
https://issues.dlang.org/show_bug.cgi?id=18068

--- Comment #3 from Seb <greensunny12@gmail.com> ---
FWIW there's a test case: https://github.com/dlang/dmd/blob/master/test/runnable/test17559.d

It's just never run with `-fPIC`.

--
December 13, 2017
https://issues.dlang.org/show_bug.cgi?id=18068

--- Comment #4 from Seb <greensunny12@gmail.com> ---
And the DRuntime testcase doesn't work either:


make -f posix.mak test/exceptions/.run BUILD=debug

--
December 13, 2017
https://issues.dlang.org/show_bug.cgi?id=18068

ZombineDev <petar.p.kirov@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |petar.p.kirov@gmail.com

--
January 15, 2018
https://issues.dlang.org/show_bug.cgi?id=18068

--- Comment #5 from Seb <greensunny12@gmail.com> ---
test/runnable/test17559.d in the DMD testsuite fails too.

--
January 31, 2018
https://issues.dlang.org/show_bug.cgi?id=18068

--- Comment #6 from Mike Franklin <slavo5150@yahoo.com> ---
I've narrowed down the problem to this `if` statement: https://github.com/dlang/druntime/blob/bff4d4bd3c4a320f4743a2ac5c5c0bd7df5d593c/src/rt/backtrace/dwarf.d#L201

That is `loc.address` and `address` are never equal.  `loc.address` is
populated from here
(https://github.com/dlang/druntime/blob/4992bfa44c6bdfbafed078533869095b2b09ca78/src/core/runtime.d#L757)
and eventually passed to `traceHandlerOpApplyImpl` here
(https://github.com/dlang/druntime/blob/4992bfa44c6bdfbafed078533869095b2b09ca78/src/core/runtime.d#L807)

I printed out the two addresses in the encasing `foreach` loop, and this is as sample of what I see.

`loc.address` `address`
0x4627b123 0x380cc
0x4627b9cb 0x380cc
0x4627b85b 0x380cc
0x4627b93a 0x380cc
0x4627b85b 0x380cc
0x4627b7c6 0x380cc
0x4627b531 0x380cc
0x8b4e3f49 0x380cc
0x4627b123 0x380d8
0x4627b9cb 0x380d8
0x4627b85b 0x380d8
0x4627b93a 0x380d8
0x4627b85b 0x380d8
0x4627b7c6 0x380d8
0x4627b531 0x380d8
0x8b4e3f49 0x380d8
0x4627b123 0x3814e
0x4627b9cb 0x3814e
0x4627b85b 0x3814e
0x4627b93a 0x3814e
0x4627b85b 0x3814e
0x4627b7c6 0x3814e
0x4627b531 0x3814e
0x8b4e3f49 0x3814e
0x4627b123 0x38170
0x4627b9cb 0x38170
0x4627b85b 0x38170

The values for `address` are consistent with what I see from readelf:

$ readelf --debug-dump=decodedline main
Decoded dump of debug contents of section .debug_line:

CU: main.d:
File name                            Line number    Starting address

./main.d:[++]
main.d                                         3             0x30cbc
main.d                                         5             0x30cc8
main.d                                         9             0x30cd8
main.d                                        13             0x30d4e

main.d                                        15             0x30d6d

At this point, I might have to give up on this.  I hope the information above will help someone.

--
January 31, 2018
https://issues.dlang.org/show_bug.cgi?id=18068

--- Comment #7 from Jacob Carlborg <doob@me.com> ---
(In reply to Mike Franklin from comment #6)
> I've narrowed down the problem to this `if` statement: https://github.com/dlang/druntime/blob/ bff4d4bd3c4a320f4743a2ac5c5c0bd7df5d593c/src/rt/backtrace/dwarf.d#L201
> 
> That is `loc.address` and `address` are never equal.  `loc.address` is
> populated from here
> (https://github.com/dlang/druntime/blob/
> 4992bfa44c6bdfbafed078533869095b2b09ca78/src/core/runtime.d#L757) and
> eventually passed to `traceHandlerOpApplyImpl` here
> (https://github.com/dlang/druntime/blob/
> 4992bfa44c6bdfbafed078533869095b2b09ca78/src/core/runtime.d#L807)

Since these two files in druntime haven't changed much recently, I'm guessing it's something that's changed in DMD.

--
April 19, 2018
https://issues.dlang.org/show_bug.cgi?id=18068

arne.ludwig@posteo.de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |arne.ludwig@posteo.de

--- Comment #8 from arne.ludwig@posteo.de ---
This problem doesn't seem to affect all Linux systems. So, please report your Distribution and Kernel (type `uname -r` in shell).

Works: Linux *** 4.4.0-119-generic #143-Ubuntu SMP Mon Apr 2 16:08:24 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

Fails: Linux *** 4.15.15-1-ARCH #1 SMP PREEMPT Sat Mar 31 23:59:25 UTC 2018 x86_64 GNU/Linux

--
« First   ‹ Prev
1 2