1745853 Members
4196 Online
108723 Solutions
New Discussion

Telnet is core dumping

 
manju_102
Occasional Advisor

Telnet is core dumping

Hi,

 

My application is using telnet to connect to other NE. After establishing a telnet session, my application will send TL1 command ACT-USER, once telnet receives this command telnet is core dumping.

 

>gdb /usr/bin/telnet core

HP gdb 6.1 for HP Itanium (32 or 64 bit) and target HP-UX 11iv2 and 11iv3.

Copyright 1986 - 2009 Free Software Foundation, Inc.
Hewlett-Packard Wildebeest 6.1 (based on GDB) is covered by the
GNU General Public License. Type "show copying" to see the conditions to
change it and/or distribute copies. Type "show warranty" for warranty/support.
..(no debugging symbols found)...
Core was generated by `telnet'.
Program terminated with signal 11, Segmentation fault.
SEGV_MAPERR - Address not mapped to object
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
#0  0x401db30:1 in tn+0x5f1 ()
(gdb)

Basically this is random issue. Could you please help me to resolve this issue ?

 

Compiler version: HP C/aC++ for Integrity Servers B3910B A.06.25.02 [Nov 25 2010]

gdb version: HP gdb 6.1 for HP Itanium (32 or 64 bit) and target HP-UX 11iv2 and 11iv3.


 

Thank you

16 REPLIES 16
Dennis Handly
Acclaimed Contributor

Re: telnet is core dumping (Signal 11)

>Basically this is random issue. Could you please help me to resolve this issue?

 

If you have support, why not contact the Response Center?

Also, do you have the latest telnet patches, if any?

 

>#0  0x401db30:1 in tn+0x5f1 ()

Here you should ask for a back trace and register dump:

(gdb) bt

(gdb) info reg

(gdb) disas $pc-16*12 $pc+16*4

manju_102
Occasional Advisor

Re: telnet is core dumping (Signal 11)

Hi,

 

 

Find the attached for

 

(gdb) bt

(gdb) info reg

(gdb) disas $pc-16*12 $pc+16*4

 

Thank you

Manju

Dennis Handly
Acclaimed Contributor

Re: telnet is core dumping (Signal 11)

>(gdb) bt

>#0 0x401db30:1 in tn+0x5f1 ()

 

If you can't trace the stack, something is terribly wrong.

 

>gr1: 0xc000000000000c9c

 

The gp value shouldn't start with 0xc.

manju_102
Occasional Advisor

Re: telnet is core dumping (Signal 11)

Hi Dennis,

 

Thank you so much for you support.

 

>The gp value shouldn't start with 0xc.

 

What is gr1, is this register ?

 

So now how to solve the problem. I ran strings -a command on core file will this output helps ?

 

Or  is there any other way to solve this issue ?

 

 

Dennis Handly
Acclaimed Contributor

Re: telnet is core dumping (Signal 11)

>What is gr1, is this register?

 

gp/gr1 is the global data pointer for the current load module.

 

>So now how to solve the problem?

 

It could be a hardware problem.

Every time it fails, do you end up in the same location with the same register values?

How often does it fail?  How many commands are you sending to telnet before it does?

 

>I ran strings -a command on core file will this output helps?

 

Not usually.  You might be able to see the last telnet command and output but only you would know that.

 

>Or  is there any other way to solve this issue?

 

Probably not without access to a packcore and most likely you need to run it live in a debugger.

 

manju_102
Occasional Advisor

Re: telnet is core dumping (Signal 11)

> Every time it fails, do you end up in the same location with the same register values?

Yes, 3 times core happened, in all the core files register values are same.

 

>How often does it fail? How many commands are you sending to telnet before it does?

in this year 3 times core happened(Feb, May, Sept).  I cant find because its in production.

 

In 3 core files no debugging symbols found.

 

 

Dennis Handly
Acclaimed Contributor

Re: telnet is core dumping (Signal 11)

>Yes, 3 times core happened, in all the core files register values are same.

 

That would seem to point to a software bug.

manju_102
Occasional Advisor

Re: telnet is core dumping (Signal 11)

Hi,

 

My application binary is using these are the dynamic dependencies of executable files

 

bin> ldd TL1ad

TL1ad:
        libunalign.so.1 =>      /usr/lib/hpux64/libunalign.so.1
        libuca.so.1 =>  /usr/lib/hpux64/libuca.so.1
        libnsl.so.1 =>  /usr/lib/hpux64/libnsl.so.1
        libstd_v2.so.1 =>       /usr/lib/hpux64/libstd_v2.so.1
        libCsup.so.1 => /usr/lib/hpux64/libCsup.so.1
        libm.so.1 =>    /usr/lib/hpux64/libm.so.1
        libunwind.so.1 =>       /usr/lib/hpux64/libunwind.so.1
        libc.so.1 =>    /usr/lib/hpux64/libc.so.1
        libdl.so.1 =>   /usr/lib/hpux64/libdl.so.1
        libxti.so.1 =>  /usr/lib/hpux64/libxti.so.1

And my application uses telnet to connet the remote machine and telnet dynamic dependencies are

 

 

ldd /usr/bin/telnet

/usr/bin/telnet:
        libdl.so.1 =>   /usr/lib/hpux32/libdl.so.1
        libkrb5.so.1 => /usr/lib/hpux32/libkrb5.so.1
        libc.so.1 =>    /usr/lib/hpux32/libc.so.1
        libk5crypto.so.1 =>     /usr/lib/hpux32/libk5crypto.so.1
        libcom_err.so.1 =>      /usr/lib/hpux32/libcom_err.so.1

Here we can observe TL1ad uses 64 bit libraries and telnet is using 32 bit libraries .....telnet is dumping core because of this ?

 

Thank you

Manju

 

Dennis Handly
Acclaimed Contributor

Re: telnet is core dumping (Signal 11)

>telnet is dumping core because of this?

 

No, these are separate processes.