Jump to page: 1 2 3
Thread overview
[Issue 6014] New: rt_finalize Segmentation fault , dmd 2.053 on linux & freebsd
May 16, 2011
changlon
May 16, 2011
changlon
May 17, 2011
changlon
May 27, 2011
changlon
Jul 14, 2011
changlon
Jul 14, 2011
changlon
Jul 15, 2011
changlon
Jul 18, 2011
changlon
Aug 09, 2011
changlon
Aug 09, 2011
changlon
Aug 13, 2011
David Simcha
Sep 06, 2011
Don
Sep 14, 2011
dawg@dawgfoto.de
Sep 14, 2011
dawg@dawgfoto.de
Sep 14, 2011
Sean Kelly
Oct 10, 2013
Martin Nowak
May 16, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6014

           Summary: rt_finalize Segmentation fault , dmd 2.053 on linux &
                    freebsd
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: changlon@gmail.com


--- Comment #0 from changlon <changlon@gmail.com> 2011-05-15 23:13:11 PDT ---
I build my projects on linux64 & freebsd32 .  the same runtime error keep touble me .

Program received signal SIGSEGV, Segmentation fault.
0x00000000004ba73f in rt_finalize () .

The dmd version is 2.053 release, I remove all dtor "~this()" from my code but the error still exists.

I have no idea how to reduce the example,  I just sure the error is throw when i call Parse.parse .


http://gool.googlecode.com/files/jade_dtor_bug.tar.bz2

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 16, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6014



--- Comment #1 from changlon <changlon@gmail.com> 2011-05-16 02:21:42 PDT ---
I notice that if throw exception in dtor will cause some problem , but in this case is no exception, and also no dtor exists .

the package I post here dtor is still exists, you can remove them and test agian (util.pool.dtor,  jade.Compiler.dtor).

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 17, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6014



--- Comment #2 from changlon <changlon@gmail.com> 2011-05-16 18:48:44 PDT ---
The same code work fine in Win32,  the runtime  rt_finalize error is since dmd 2.052.


The Win32 dmd 2.052 has same problem , but fiexd in dmd 2.053 .

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 27, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6014



--- Comment #3 from changlon <changlon@gmail.com> 2011-05-27 03:13:15 PDT ---
I have no idea how to reduce this test case or how to trace the bug.

I build the project with -g -debug, then run gdb . But the error is not in the project code . it is in the druntime.


Can anybody tell me how to build a debug version druntime lib ?

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 27, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6014


Steven Schveighoffer <schveiguy@yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |schveiguy@yahoo.com


--- Comment #4 from Steven Schveighoffer <schveiguy@yahoo.com> 2011-05-27 04:25:16 PDT ---
(In reply to comment #3)

> Can anybody tell me how to build a debug version druntime lib ?

In posix.mak, change flags:

DFLAGS=-gc -Isrc -Iimport -nofloat -d -w
UDFLAGS=$(DFLAGS)

make -f posix.mak

then rebuild phobos, and copy the phobos library into your lib dir.  Probably want to build phobos in debug mode as well.

I'm actually surprised you have to edit the makefile, it should be easier...

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
July 14, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6014



--- Comment #5 from changlon <changlon@gmail.com> 2011-07-13 21:34:15 PDT ---
@Steven Schveighoffer thank you .


I update my dmd to 2.054, and build the debug libphobos2 on linux ,  use gdb catch this error .
---------------------------------------------------------------------
Program received signal SIGSEGV, Segmentation fault.
0x00000000004cd10c in rt.lifetime.rt_finalize (p=0x7ffff729d000, det=false)
    at src/rt/lifetime.d:1154
1154                ClassInfo c = **pc;
----------------------------------------------------------------------

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
July 14, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6014



--- Comment #6 from Steven Schveighoffer <schveiguy@yahoo.com> 2011-07-14 04:47:25 PDT ---
A stack trace would help.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
July 14, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6014



--- Comment #7 from changlon <changlon@gmail.com> 2011-07-14 07:40:42 PDT ---
Hi Steven Schveighoffer ,

I import core.runtime, but the stack trace is not auto printed .

Can you tell how to print the stack trace ?

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
July 14, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6014



--- Comment #8 from Steven Schveighoffer <schveiguy@yahoo.com> 2011-07-14 09:45:27 PDT ---
I meant a stack trace from gdb...

use bt I think.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
July 15, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6014



--- Comment #9 from changlon <changlon@gmail.com> 2011-07-14 18:12:04 PDT ---
Starting program: /web/www/tmp/jade/jade2test
[Thread debugging using libthread_db enabled]
f = 0x4fc4b0,32, t = 0x713030,32, size = 1
f = 0x4fed20,176, t = 0x7ffff7ed5f00,176, size = 1
f = 0x4ff200,72, t = 0x71f490,72, size = 1
f = 0x4f8c10,64, t = 0x7ffff7ed8fc0,64, size = 1
f = 0x4f8d00,64, t = 0x7ffff7ed8f80,64, size = 1
f = 0x4f0880,12, t = 0x7ffff7ed9ff0,12, size = 1
f = 0x4f3920,56, t = 0x7ffff7ed8f00,56, size = 1
f = 0x4f3920,56, t = 0x7ffff7ed8ec0,56, size = 1
1 times use time = 1ms



Program received signal SIGSEGV, Segmentation fault.
0x00000000004cda08 in rt.lifetime.rt_finalize (p=0x7ffff729d000, det=false)
    at src/rt/lifetime.d:1154
1154                ClassInfo c = **pc;
(gdb) bt
#0  0x00000000004cda08 in rt.lifetime.rt_finalize (p=0x7ffff729d000, det=false)
    at src/rt/lifetime.d:1154
#1  0x00000000004cb1de in gc.gcx.Gcx.fullcollect (this=0x713060,
    stackTop=0x7fffffffe260) at src/gc/gcx.d:2631
#2  0x00000000004caaf3 in gc.gcx.Gcx.fullcollectshell (this=0x713060)
    at src/gc/gcx.d:2391
#3  0x00000000004c902b in gc.gcx.GC.fullCollectNoStack (this=0x713030)
    at src/gc/gcx.d:1329
#4  0x00000000004c721d in gc.gc.gc_term () at src/gc/gc.d:133
#5  0x00000000004abc4d in rt.dmain2.main.runAll (this=0x7fffffffe4a0)
    at src/rt/dmain2.d:515
#6  0x00000000004ab6f5 in rt.dmain2.main.tryExec (this=0x7fffffffe4a0,
    dg=0x00000000004abbdc00007fffffffe4a0) at src/rt/dmain2.d:471
#7  0x00000000004ab684 in rt.dmain2.main (argc=1, argv=0x7fffffffe588)
    at src/rt/dmain2.d:518

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
« First   ‹ Prev
1 2 3