suche 36x36
  • Admin-Scout-small-Banner
           

    CURSOR Admin-Scout

    get the ultimate tool for Informix

    pfeil  
Latest versionsfixlist
14.10.xC10 FixList
12.10.xC16.X5 FixList
11.70.xC9.XB FixList
11.50.xC9.X2 FixList
11.10.xC3.W5 FixList
Have problems? - contact us.
Register for free anmeldung-x26
Contact form kontakt-x26

Informix - Problem description

Problem IT27615 Status: Closed

A SELECT STATEMENT ALLOWS A NEGATIVE SKIP VALUE WHICH LEADS TO MEMORY
BLOCK CORRUPTIONS AND ASSERT CRASHES WITH VARIOUS STACKS

product:
INFORMIX SERVER / 5725A3900 / C10 - IDS 12.10
Problem description:
The stack can vary but the following was seen on the customers
12.10.FC10 instance ...

15:39:30  Found during mt_shm_malloc_segid 9
15:39:30  Pool '1007894' (0x7000001f20b6040)
15:39:30  Bad block header 0x7000002db268050
...
(oninit)mt_shm_malloc_segid
(oninit)mt_malloc
(oninit)old_do_rualloc
(oninit)old_rualloc
(oninit)chkralloc
(oninit)sqmkcb
(oninit)sq_cmnd
(oninit)sq_prepare
(oninit)sqmain

Many stacks were observed.  Here are a few ...

(oninit)ridl_item
(oninit)btnext_items_single
(oninit)rsidxscan_read
(oninit)fmidxscan_read
(oninit)getbatchrow
(oninit)readidx_new
(oninit)gettupl
(oninit)scan_next
(oninit)getrow
(oninit)fetchrow
(oninit)exfetch
(oninit)sql_nfetch
(oninit)sq_nfetch
(oninit)sqmain

(oninit)rsidxscan_read
(oninit)fmidxscan_read
(oninit)getbatchrow
(oninit)readidx_new
(oninit)gettupl
(oninit)scan_next
(oninit)getrow
(oninit)fetchrow
(oninit)exfetch
(oninit)sql_nfetch
(oninit)sq_nfetch
(oninit)sqmain

There is a program that runs an SQL statement like the following
... "select skip ? first ? ..." where there is no check on the
value passed in and it's possible to allow a negative value to
be passed in for the skip.   If you try the same SQL within
dbaccess, the the hardcoded skip value is not allowed.
Problem Summary:
****************************************************************
* USERS AFFECTED:                                              *
* Users of IDS prior to 12.10.xC13.                            *
****************************************************************
* PROBLEM DESCRIPTION:                                         *
* A select statement allows a negative skip value which leads  *
* to memory block corruptions and assert crashes with various  *
* stacks.                                                      *
****************************************************************
* RECOMMENDATION:                                              *
****************************************************************
Local Fix:
Solution
Workaround
not known / see Local fix
Timestamps
Date  - problem reported    :
Date  - problem closed      :
Date  - last modified       :
27.12.2018
03.10.2019
03.10.2019
Problem solved at the following versions (IBM BugInfos)
12.10.xC13
Problem solved according to the fixlist(s) of the following version(s)
Informix EditionsInformix Editions
Informix Editions
DocumentationDocumentation
Documentation
IBM NewsletterIBM Newsletter
IBM Newsletter
Current BugsCurrent Bugs
Current Bugs
Bug ResearchBug Research
Bug Research
Bug FixlistsBug Fixlists
Bug Fixlists
Release NotesRelease Notes
Release Notes
Machine NotesMachine Notes
Machine Notes
Release NewsRelease News
Release News
Product LifecycleProduct Lifecycle
Lifecycle
Media DownloadMedia Download
Media Download