DB2 Net Search Extender V8.1 causes segmentation fault on Linux

DB2 Net Search Extender V8.1 causes segmentation fault on Linux

Post by Ariel Schwart » Sun, 22 Jun 2003 04:46:26



I am trying to install DB2 Net Search Extender V8.1 on Red Hat Linux 8
(2.4.20-18.8smp).

After the installation the verification script fails:

$ ./nsesample sample

Setup the database sample ...

Memory fault

Memory fault

Create the text indexes ...

Memory fault

Memory fault

Memory fault

Memory fault

Memory fault

Check /usr/db2inst1/nsesample.log for execution information.

When trying to call db2text I get:

Segmentation fault

Anyone has a clue on what the problem might be?

Thanks,

Ariel

Below is the output of the de* on db2text:

Starting program: /opt/IBM/db2/V8.1/bin/db2text

[New Thread 16384 (LWP 17246)]

Program received signal SIGSEGV, Segmentation fault.

[Switching to Thread 16384 (LWP 17246)]

0x416dd513 in compare(void const*, void const*) () from
/opt/IBM/db2/V8.1/lib/libdb2.so.1

(gdb) bt

#0 0x416dd513 in compare(void const*, void const*) () from
/opt/IBM/db2/V8.1/lib/libdb2.so.1

#1 0x42029cb7 in bsearch () from /lib/i686/libc.so.6

#2 0x416dc97f in sqlogmsg_noconv () from /opt/IBM/db2/V8.1/lib/libdb2.so.1

#3 0x401bd56e in CteErrorGenerateMessage () from
/opt/IBM/db2/V8.1/lib/libcteerror.so.1

#4 0x400bd1f0 in CteHelpCommand::printText(CteError const&) ()

from /opt/IBM/db2/V8.1/lib/libcteadmci.so.1

#5 0x400bc4aa in CteHelpCommand::printItem(int, CteError&) ()

from /opt/IBM/db2/V8.1/lib/libcteadmci.so.1

#6 0x400bb7dd in CteHelpCommand::execute(CteError&) ()

from /opt/IBM/db2/V8.1/lib/libcteadmci.so.1

#7 0x400640ce in CteAdministration::executeCommand() ()

from /opt/IBM/db2/V8.1/lib/libcteadmci.so.1

#8 0x08049a83 in main ()

#9 0x420158f7 in __libc_start_main () from /lib/i686/libc.so.6

 
 
 

DB2 Net Search Extender V8.1 causes segmentation fault on Linux

Post by Knut Stolz » Sun, 22 Jun 2003 19:14:59


Ariel Schwartz wrote on Friday 20 June 2003 21:46:

Quote:> I am trying to install DB2 Net Search Extender V8.1 on Red Hat Linux 8
> (2.4.20-18.8smp).

> After the installation the verification script fails:

> $ ./nsesample sample

> Setup the database sample ...

> Memory fault

[...]

I dimly remember that I have seen something like this before.  Did you apply
FixPak 2 already?  If not, it might be worth a try.

--
Knut Stolze
Information Integration
IBM Germany / University of Jena

 
 
 

DB2 Net Search Extender V8.1 causes segmentation fault on Linux

Post by Ariel Schwart » Mon, 23 Jun 2003 05:46:07


Thanks,

    Installing FixPak 2 fixed the problem.

Ariel


Quote:> Ariel Schwartz wrote on Friday 20 June 2003 21:46:

> > I am trying to install DB2 Net Search Extender V8.1 on Red Hat Linux 8
> > (2.4.20-18.8smp).

> > After the installation the verification script fails:

> > $ ./nsesample sample

> > Setup the database sample ...

> > Memory fault
> [...]

> I dimly remember that I have seen something like this before.  Did you
apply
> FixPak 2 already?  If not, it might be worth a try.

> --
> Knut Stolze
> Information Integration
> IBM Germany / University of Jena

 
 
 

1. Segmentation Fault with db2 library in Red Hat Linux 7.3 with UDB 7.1 Enterprise

I have a program that when compiled with g++ and the db2
library (e.g. -ldb2) that segmentation faults. Yet when I remove the
-ldb2 from the compliation it works without errors.

Anyone know about any issues with the library that might causes this,
or what we are doing wrong and how to fix/work around the problem.

I am using RedHat 7.3 and gcc 2.96.

Sample is here:

#include <sqlcli.h>

static bool TestIntException();
static bool TestDb2Call();

static struct TestDesc
{
  char *name;
  bool exec;
  bool (*func)(void);
{
  { "TestIntException", true, TestIntException },
  { "TestDb2Call", true, TestDb2Call },

#define NELEMS(array)           ( sizeof(array) / sizeof((array)[0]) )

int
main(void)
{
  for (int i = 0; i < NELEMS(tests); i++)
  {
    if (tests[i].exec != true)
      continue;

    bool rc = tests[i].func();
    printf("%s: %s\n", tests[i].name, rc ? "ok" : "FAILED");
  }

  return (0);

static bool
TestIntException()
{
  try
  {
    int n = 0;
    throw n;
  }
  catch (int e)
  {
    return (true);
  }

  return (false);

static bool
TestDb2Call()
{
  HENV env;
  SQLAllocEnv(&env);

  return (true);

gdb backtrace:

#0  0x00000000 in ?? ()
#1  0x40978348 in __user_type_info::dyncast (this=0x40986df0, boff=0,


/usr/lib/libstdc++-libc6.2-2.so.3
#2  0x4097a4e3 in __dynamic_cast_2 (from=0x4097aac0
<__builtin_type_info type_info function>,
    to=0x4097a980 <__pointer_type_info type_info function>, boff=0,
address=0x40986aa0,
    sub=0x40a08aac <type_info type_info function>, subptr=0x40986aa0)
from /usr/lib/libstdc++-libc6.2-2.so.3
#3  0x4097a2a3 in __is_pointer (p=0x40986aa0) from
/usr/lib/libstdc++-libc6.2-2.so.3
#4  0x40979796 in __cp_pop_exception (p=0x8049c88) from
/usr/lib/libstdc++-libc6.2-2.so.3
#5  0x080488ff in TestIntException () at except.cpp:45
#6  0x08048840 in main () at except.cpp:28
#7  0x42017499 in __libc_start_main () from /lib/i686/libc.so.6

Thanks in advance,
-Denis Serebro

2. trace files for Background processes.

3. DB2 Net Search Extender - Indexing

4. Empty Quotes Verses Null

5. DB2 Net Search Extender

6. Best way to set up FTS for HTML data?

7. Pro C problem: sqlcxt causes segmentation fault

8. Integrating XML with DB2 XML Extender and DB2 Text Extender, SG24-6130-00

9. sqlplus/Linux - Segmentation Fault

10. Segmentation fault Oracle on Linux

11. segmentation fault installing 8.0.5 on RedHat Linux 6.0

12. Linux + Oracle8i + patch = Segmentation Fault