Menu

#391 coredup on invalid option

ver 1.3.x
closed-duplicate
core (125)
5
2008-01-23
2008-01-23
Anonymous
No

Hello,
I am using "BlackCat". When I try to run this proxy using with "-i fifo-path" or "-x socket-path" option then this make coredump. I find that this two option already removed from this file because of mi_fifo and mi_datagram module(I think), but the assignment of this two option in "options" variable is not removed at line no.911 from "main.c" file. Thats why when we try to use this option then it leads to the default case, which is abort and then make coredump.
I have a question,Is there any reason to use abort function in default case? can we use a "usage" function to show the short list of valid option? If we can do this then I attached a simple patch, I think it will be usefull.

Thanks and regards,
Salahuddin Ahmed

Discussion

  • Nobody/Anonymous

     
  • Nobody/Anonymous

    Logged In: NO

    Sorry This was send by mistake.

     
  • Daniel-Constantin Mierla

    • assigned_to: nobody --> miconda
    • status: open --> closed-duplicate
     
  • Daniel-Constantin Mierla

    Logged In: YES
    user_id=1246013
    Originator: NO

    Closing duplicate. Still having in mind the print of valid options in case of wrong parameters.

     

Log in to post a comment.

MongoDB Logo MongoDB