Hi,

I looked in build.xml and found no ENABLE_SYMBOLS, but something others 
which sounds like that. So, I build X10 with following command:
ant -DENABLE_GCC_SYMBOLS=true -DGCC_SYMBOLS=true -Ddebug=true 
-Davailable.procs=8 -DX10RT_SOCKETS=true -Doptimize=true squeakyclean dist

However, the buffer overflow arises instantly and no more output is done.

A "valgrind --leak-check=full --show-leak-kinds=all X10Launcher Hello" 
shows:

==19578== Process terminating with default action of signal 6 (SIGABRT)
==19578==    at 0x508C428: raise (raise.c:54)
==19578==    by 0x508E029: abort (abort.c:89)
==19578==    by 0x50CE7E9: __libc_message (libc_fatal.c:175)
==19578==    by 0x516F56B: __fortify_fail (fortify_fail.c:37)
==19578==    by 0x516D56F: __chk_fail (chk_fail.c:28)
==19578==    by 0x516DAF3: __realpath_chk (realpath_chk.c:29)
==19578==    by 0x402601: realpath (stdlib.h:45)
==19578==    by 0x402601: Launcher::initialize(int, char**) 
(Launcher_Init.cc:184)
==19578==    by 0x40295D: Launcher::Setup(int, char**) (Launcher_Init.cc:62)
==19578==    by 0x401D10: main (main.cc:56)


When I unset X10_HOSTFILE, "X10Launcher Hello" has no buffer overflow.

Cheers,
Jonas


Am 22.11.2016 um 17:41 schrieb David P Grove:
> Hi,
>
> Could you try adding -DENABLE_SYMBOLS=true to your ant command when you
> build X10 with optimizations? That should add -g to the gcc compilation
> of X10Launcher which should get function names in the backtrace.
>
> Might also be worth trying running the X10Launcher program under
> valgrind to see if it gives more diagnostics about where the buffer
> overflow is happening.
>
> thanks,
>
> --dave
>
> Inactive hide details for Jonas Posner ---11/22/2016 10:30:01 AM---Hi
> Dave, I played around with builing X10 and set "#define DJonas Posner
> ---11/22/2016 10:30:01 AM---Hi Dave, I played around with builing X10
> and set "#define DEBUG 1" in
>
> From: Jonas Posner <jonas.pos...@uni-kassel.de>
> To: Mailing list for users of the X10 programming language
> <x10-users@lists.sourceforge.net>
> Date: 11/22/2016 10:30 AM
> Subject: Re: [X10-users] Managed X10: BufferOverflow at X10Launcher
>
> ------------------------------------------------------------------------
>
>
>
> Hi Dave,
>
> I played around with builing X10 and set "#define DEBUG 1" in
> DebugHelper.cc and Launcher.h.
>
> When I build with "-Doptimize=true" the error from my previous mail
> occurs. The buffer overflow (see attachment last mail) occurs really
> instant after executing "x10 Hello". There is no debug output.
>
>
> When I build X10 without(!) "-Doptimize=true", everything works fine.
>
> Cheers,
> Jonas
>
>
> Am 22.11.2016 um 15:21 schrieb David P Grove:
>> Jonas Posner <jonas.pos...@uni-kassel.de> wrote on 11/21/2016 04:39:46 AM:
>>>
>>> I have some troubles with Managed X10 with Sockets from the latest git
>>> commit. When starting a HelloWorld, a error occurs instant, see
>> attachment.
>>>
>>> I build X10 with:
>>> ant -Davailable.procs=4 -DNO_CHECKS=true -Doptimize=true
>>> -DX10RT_SOCKETS=true squeakyclean dist
>>>
>>> The simple HelloWorld Progam is build with (from src):
>>> x10c -NO_CHECKS=true Hello.x10 -d ../bin
>>>
>>> My exports are:
>>> export X10_NPLACES=4
>>> export X10_NTHREADS=1
>>> export X10_RESILIENT_MODE=1
>>> export X10_HOSTFILE=/home/jposner/X10workspace/hosts (contains only
>> myself)
>>>
>>> Java version: 1.8.0_112
>>> gcc (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4
>>>
>>>
>>> When I uses the prebuild official 2.6.0 release from sourceforge
>>> eveything works fine!
>>>
>>
>> Hi Jonas,
>>
>> I haven't been able to reproduce this.  Can you get more information
>> (for example by building with checks and debug symbols so you get a more
>> useful backtrace from the X10Launcher program)?
>>
>> thanks,
>>
>> --dave
>>
>>
>>
>>
> ------------------------------------------------------------------------------
>>
>>
>>
>> _______________________________________________
>> X10-users mailing list
>> X10-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/x10-users
>>
>
> --
> Jonas Posner
> Universitaet Kassel
> Fachbereich 16 Elektrotechnik/Informatik
> Fachgebiet Programmiersprachen/-methodik
> Wilhelmshoeher Allee 71-73
> 34121 Kassel, Germany
>
> Phone:  +49 (0)561 804-6498
> Fax:    +49 (0)561 804-6219
> mailto: jonas.pos...@uni-kassel.de
> www.uni-kassel.de
>
> ------------------------------------------------------------------------------
> _______________________________________________
> X10-users mailing list
> X10-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/x10-users
>
>
>
>
>
>
> ------------------------------------------------------------------------------
>
>
>
> _______________________________________________
> X10-users mailing list
> X10-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/x10-users
>

-- 
Jonas Posner
Universitaet Kassel
Fachbereich 16 Elektrotechnik/Informatik
Fachgebiet Programmiersprachen/-methodik
Wilhelmshoeher Allee 71-73
34121 Kassel, Germany

Phone:  +49 (0)561 804-6498
Fax:    +49 (0)561 804-6219
mailto: jonas.pos...@uni-kassel.de
www.uni-kassel.de

------------------------------------------------------------------------------
_______________________________________________
X10-users mailing list
X10-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/x10-users

Reply via email to