www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11526] New: buffer overflow detected __fortify_fail when building dmd from source

reply d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11526

           Summary: buffer overflow detected __fortify_fail when building
                    dmd from source
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: blocker
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: timothee.cour2 gmail.com



01:38:08 PST ---
reposting from http://comments.gmane.org/gmane.comp.lang.d.general/135653:

On my one of my machines (ubuntu64) I cannot compile from source unless I pass
DEBUG=1 flag; 

without DEBUG=1 I get :

$cd src/dmd
$make -f posix.mak -j8
#ok till this point
$cd ../druntime
$make -f posix.mak -j8 DMD=../dmd/dmd
../dmd/dmd -lib -oflib/libdruntime-linuxdefault.a -Xfdruntime.json ...#etc

*** buffer overflow detected ***: ../dmd/dmd terminated
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6
#also shows those symbols:
__fortify_fail
_IO_default_xsputn
_IO_vfprintf
__vsprintf_chk
__sprintf_chk
../dmd/dmd
__libc_start_main
../dmd/dmd
======= Memory map: ========

I get the same from git master.


with DEBUG=1 it works

on another ubuntu64 machine, I don't have this problem, but I actually need it
to work on the 1st machine. Not sure what could be the problem?

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Nov 16 2013
parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11526


Timothee Cour <timothee.cour2 gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |timothee.cour2 gmail.com



01:39:56 PST ---
both machines are 12.04 btw.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Nov 16 2013