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



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

Reply via email to