charm AT lists.siebelschool.illinois.edu
Subject: Charm++ parallel programming system
List archive
Re: [charm] Error disabling address space randomization: Operation not permitted
Chronological Thread
- From: Jozsef Bakosi <jbakosi AT lanl.gov>
- To: Marcin Mielniczuk <marmistrz.dev AT zoho.eu>
- Cc: charm AT lists.cs.illinois.edu
- Subject: Re: [charm] Error disabling address space randomization: Operation not permitted
- Date: Mon, 5 Aug 2019 07:59:26 -0600
- Authentication-results: illinois.edu; spf=pass smtp.mailfrom=jbakosi AT lanl.gov; dkim=pass header.d=lanl.gov header.s=lanl; dmarc=pass header.from=lanl.gov
Thanks Marcin,
Indeed that helps. Thanks.
Now I get a more reasonable error message and trace inside gdb:
(gdb) run
Starting program: /home/quinoa/quinoa/build/Main/meshconv
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Program received signal SIGSEGV, Segmentation fault.
0x000000000040a4ce in tk::Print::Print(std::__1::basic_ostream<char,
std::__1::char_traits<char> >&, std::__1::basic_ostream<char,
std::__1::char_traits<char> >&) ()
(gdb) where
#0 0x000000000040a4ce in tk::Print::Print(std::__1::basic_ostream<char,
std::__1::char_traits<char> >&, std::__1::basic_ostream<char,
std::__1::char_traits<char> >&) ()
#1 0x0000000000404297 in _GLOBAL__sub_I_Parser.cpp ()
#2 0x0000000000dee2a4 in __libc_csu_init ()
#3 0x0000000000dedbd3 in __libc_start_main ()
#4 0x000000000040589a in _start ()
Note that this is a static build using libc++ as the standard library (instead
of libstdc++).
Jozsef
On 08.05.2019 15:51, Marcin Mielniczuk wrote:
> Hi Jozsef,
>
> You need to run the container with --privileged or --cap-add=SYS_PTRACE
> to be able to use ptrace (hence gdb) inside the container.
>
> Regards,
> Marcin
>
> On 05.08.2019 15:41, Jozsef Bakosi wrote:
> > Hi folks,
> >
> > I'm getting the following inside gdb attempting to execute a charm
> > program inside a docker container:
> >
> > (gdb) run
> > Starting program: /home/quinoa/quinoa/build/Main/meshconv
> > warning: Error disabling address space randomization: Operation not
> > permitted
> > warning: Could not trace the inferior process.
> > Error:
> > warning: ptrace: Operation not permitted
> > During startup program exited with code 127.
> >
> > Outside of gdb, it gives a segfault:
> >
> > $ Main/meshconv
> > Segmentation fault (core dumped)
> >
> > Does anyone have any idea how to debug this?
> >
> > Thanks,
> > Jozsef
- [charm] Error disabling address space randomization: Operation not permitted, Jozsef Bakosi, 08/05/2019
- Re: [charm] Error disabling address space randomization: Operation not permitted, Marcin Mielniczuk, 08/05/2019
- Re: [charm] Error disabling address space randomization: Operation not permitted, Jozsef Bakosi, 08/05/2019
- Re: [charm] Error disabling address space randomization: Operation not permitted, Marcin Mielniczuk, 08/05/2019
Archive powered by MHonArc 2.6.19.