Skip to content

Segmentation fault in mana_launch when passing an odd number of arguments #467

@dariomnz

Description

@dariomnz

Description

A simple "Hello World" program results in a SIGSEGV when executed via mana_launch if the number of command-line arguments is odd. The same executable runs correctly when launched with dmtcp_launch or directly via the shell.

Steps to Reproduce

Code (hello.c):

#include <stdio.h>
int main() {
    printf("Hello world!\n");
    return 0;
}

Compile: gcc hello.c -o hello

Run with ODD arguments (Fails): mana_launch ./hello arg1
Run with EVEN arguments (Works): mana_launch ./hello arg1 arg2

Run with ODD arguments (Works): dmtcp_launch ./hello arg1
Run with EVEN arguments (Works): dmtcp_launch ./hello arg1 arg2

Run with ODD arguments (Works): ./hello arg1
Run with EVEN arguments (Works): ./hello arg1 arg2

Suspected Cause

Alignment issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions