[ https://issues.apache.org/jira/browse/YARN-7857?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16345354#comment-16345354 ]
Jim Brennan commented on YARN-7857: ----------------------------------- I've also verified this with a simple test program that just does the file_copy call. {noformat} [jbrennan02@imposeenclose test]$ ./copy_file_test-rhel7 /etc/services /tmp/foo copy /etc/services to /tmp/foo [jbrennan02@imposeenclose test]$ ./copy_file_test-rhel7-stack-check /etc/services /tmp/foo copy /etc/services to /tmp/foo [jbrennan02@imposeenclose test]$ ./copy_file_test-rhel6 /etc/services /tmp/foo copy /etc/services to /tmp/foo [jbrennan02@imposeenclose test]$ ./copy_file_test-rhel6-stack-check /etc/services /tmp/foo copy /etc/services to /tmp/foo Segmentation fault {noformat} The RHEL 6 versions were compiled on this system: {noformat} [jbrennan02@goalssoles test]$ hostname goalssoles.corp.ne1.yahoo.com [jbrennan02@goalssoles test]$ cat /etc/redhat-release Red Hat Enterprise Linux Server release 6.8 (Santiago) [jbrennan02@goalssoles test]$ gcc --version gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-18) {noformat} The RHEL 7 versions were compiled on this system: {noformat} [jbrennan02@imposeenclose test]$ hostname imposeenclose.corp.ne1.yahoo.com [jbrennan02@imposeenclose test]$ cat /etc/redhat-release Red Hat Enterprise Linux Server release 7.4 (Maipo) [jbrennan02@imposeenclose test]$ gcc --version gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-16) {noformat} Compiled with: gcc [-fstack-check] -o copy_file_test<suffix> copy_file_test.c I propose that we remove the -fstack-check flag, and possibly replace it with -fstack-protector, though that does not provide the same protection. > -fstack-check compilation flag causes binary incompatibility for > container-executor between RHEL 6 and RHEL 7 > ------------------------------------------------------------------------------------------------------------- > > Key: YARN-7857 > URL: https://issues.apache.org/jira/browse/YARN-7857 > Project: Hadoop YARN > Issue Type: Bug > Components: nodemanager > Affects Versions: 3.0.0 > Reporter: Jim Brennan > Assignee: Jim Brennan > Priority: Major > > The segmentation fault in container-executor reported in [YARN-7796] appears > to be due to a binary compatibility issue with the {{-fstack-check}} flag > that was added in [YARN-6721] > Based on my testing, a container-executor (without the patch from > [YARN-7796]) compiled on RHEL 6 with the -fstack-check flag always hits this > segmentation fault when run on RHEL 7. But if you compile without this flag, > the container-executor runs on RHEL 7 with no problems. I also verified this > with a simple program that just does the copy_file. > I think we need to either remove this flag, or find a suitable alternative. -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: yarn-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: yarn-issues-h...@hadoop.apache.org