Re: static linking

David Daney <[email protected]>
Newsgroups gmane.comp.gcc.java.devel
Message-ID <[email protected]>
Please keep [email protected] CCed so others can benefit from your discoveries as well...

Daniel Andrzejewski wrote:
> David Daney wrote:
>>>
>>> /scratch/daniel> gdb HelloWorld
>>> GNU gdb 6.3
>>> Copyright 2004 Free Software Foundation, Inc.
>>> ...
>>>
>>> (gdb) break 12
>>> Breakpoint 1 at 0x400324: file /tmp/cc0TNqNE.i, line 12.
>>> (gdb) run
>>> Starting program: /scratch/daniel/HelloWorld
>>>
>>> Program received signal SIGSEGV, Segmentation fault.
>>> 0x0000000000000000 in ?? ()
>>
>> Make sure you compile with -g and get a backtrace using gdb's bt command.
>>
>> David Daney
> 
> I compiled with -ggdb. I think it's the same, isn't it.
> 
> To be honest, it worked on the compute nodes :)
> 
> daniel@kraken /lustre/scratch/daniel> aprun -n 4 -N 1 ./HelloWorld
> Hello World!
> Hello World!
> Hello World!
> Hello World!
> Application 159447 resources: utime 5, stime 1
> 
> Thanks for your time,
> 

I am surprised.  -g should not change the runtime behavior of the code.

David Daney
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.