Everything on Centos 7 seems fine - except - my program. I am trying to compile and run on centos 7. Everything compiles/runs on C6, the executable from C6 runs on C7. when I compile and run on C7 - I get a SEG fault. when I debug: gdb program break main run I get a seg fault at or before main What might I be looking for in this case? Thanks, Jerry
Gordon Messmer
2015-Jun-05 16:31 UTC
[CentOS] Migration to centos 7 and program seg faulting
On 06/05/2015 04:18 AM, Jerry Geis wrote:> when I debug: > gdb program > break main > run > I get a seg fault at or before main > > What might I be looking for in this case?Even if it segfaults before main(), you should be able to examine the stack to see what's going on. Beyond that, any advice we give you would be blind guessing. My blind guess would be a symbol conflict between your application and glibc.
m.roth at 5-cent.us
2015-Jun-05 17:12 UTC
[CentOS] Migration to centos 7 and program seg faulting
Gordon Messmer wrote:> On 06/05/2015 04:18 AM, Jerry Geis wrote: >> when I debug: >> gdb program >> break main >> run >> I get a seg fault at or before main >> >> What might I be looking for in this case? > > Even if it segfaults before main(), you should be able to examine the > stack to see what's going on. Beyond that, any advice we give you would > be blind guessing. My blind guess would be a symbol conflict between > your application and glibc.Have you run lint? mark "we don' need no steenkin' switches!"
Johnny Hughes
2015-Jun-05 18:51 UTC
[CentOS] Migration to centos 7 and program seg faulting
On 06/05/2015 06:18 AM, Jerry Geis wrote:> Everything on Centos 7 seems fine - except - my program. > I am trying to compile and run on centos 7. > > Everything compiles/runs on C6, the executable from C6 runs on C7. > when I compile and run on C7 - I get a SEG fault. > when I debug: > gdb program > break main > run > I get a seg fault at or before main > > What might I be looking for in this case?Another option, if it works in CentOS-6, is to use the compat-glibc from c6. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: OpenPGP digital signature URL: <http://lists.centos.org/pipermail/centos/attachments/20150605/3ecb2403/attachment-0001.sig>