Bug 762275 (GLUSTER-543) - libglusterfs calls exit()
Summary: libglusterfs calls exit()
Keywords:
Status: CLOSED NOTABUG
Alias: GLUSTER-543
Product: GlusterFS
Classification: Community
Component: core
Version: 3.0.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Anand Avati
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-01-14 18:54 UTC by Patrick Matthäi
Modified: 2015-12-01 16:45 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:


Attachments (Terms of Use)

Description Patrick Matthäi 2010-01-14 18:54:34 UTC
Hello,

the glusterfs library calls a exit() in its code:

spec.lex.c:     exit( YY_EXIT_FAILURE );

Calling exit() in a library is not the prefered way, better it should return; with a proper return code.

The code ends up in this file:
usr/lib/libglusterfs.so.0.0.0

This issue exists in both, the 2.0.9 and the 3.0, release.

Please fix it in 2.0.10 and 3.0.1.

Cheers.

Comment 1 Anand Avati 2010-01-23 09:41:28 UTC
This is autogenerated code from FLEX and not code written by a developer. It lies in the autogenerated YY_FATAL_ERROR() macro.

What problem have you faced with the existence of the exit() call? It is not called because of a parsing error.

Avati

Comment 2 Shehjar Tikoo 2010-02-09 08:01:56 UTC
Patrick,

Did you get a chance to look at this?


Note You need to log in before you can comment on or make changes to this bug.