Menu

#13 crash when db is closed

open
nobody
None
5
2003-04-22
2003-04-22
No

gqlplus crashes if invoked like gqlplus "/ as sysdba"
and the database is closed. The problem is that
gqlplus expects to be able to run the query to find all
tables but oracle gives back an exception. The code
then assumes certain fields are available when they're
not, thus the seg fault. The attached patch corrects
the problem by detecting the ORA- exception.

Thanks for writing this program, I think is it great.
Nice and simple in concept and very cool to have
readline working with Oracle.

Discussion

  • Steven Kehlet

    Steven Kehlet - 2003-04-22

    gqlplus.c patch

     
  • Ljubomir J. Buturovic

    Logged In: YES
    user_id=551800

    Steven,

    Thanks for the bug fix! I merged it into the main branch,
    and it will be released with gqlplus 1.8. I'd like to gather
    a few more items before releasing it...

    Regards, Ljubomir

     
  • Laurent Schneider

    Logged In: YES
    user_id=898209

    Thanks for this fix !

    It is still segfaulting when the instance is started by the
    database close

    Regards
    Laurent

     
  • Laurent Schneider

    Logged In: YES
    user_id=898209

    for example with "startup mount" or "startup nomount" or
    "startup mount / alter database mount standby database" ...

     

Log in to post a comment.

Monday.com Logo