Skip to content

Intrinsic "execute_command_line" results in a seg fault #77975

@psteinfeld

Description

@psteinfeld

When I compile and execute the following program:

program bug
implicit none
integer                       :: i,j 
character(len=256)            :: msg
character(len=:), allocatable :: command
   command='notthere'
   call execute_command_line(command, exitstat=i, cmdstat=j)
   print *, "ok"
end program bug

I get a seg fault.

When I compile and execute it with gfortran, I get:

sh: notthere: command not found
 ok

@yi-wu-arm, please take note.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions