hp-ux

Stack unwinding on HP-UX and Linux

蹲街弑〆低调 提交于 2019-12-07 05:42:16
问题 I need to get the stack information of my C application in certain points. I've read the documentation and searched the Net but still cannot figure out how I can do it. Can you point to a simple process explanation? Or, even better, to an example of stack unwinding. I need it for HP-UX (Itanium) and Linux. 回答1: Check out linux/stacktrace.h Here is an API reference: http://www.cs.cmu.edu/afs/cs/Web/People/tekkotsu/dox/StackTrace_8h.html Should work on all Linux kernels Here is an alternative

Why does “git fetch” fail on HTTPS URLs with “Function is not available” on HP-UX?

人走茶凉 提交于 2019-12-06 05:40:45
When I run git fetch I get the following: $ git fetch Password for 'xxx': error: cannot create thread: Function is not available fatal: cannot start thread to parse advertised refs $ The issue is that this particular distribution of git/curl is lacking pthread. One way to fix it is to use LD_PRELOAD : $ LD_PRELOAD=/usr/lib/hpux32/libpthread.so git fetch Password for 'xxx': $ For me, finally this problem was caused by Cannot allocate memory , low memory problem. So Pls check it. Hope it helps. 来源: https://stackoverflow.com/questions/16084971/why-does-git-fetch-fail-on-https-urls-with-function

Stack unwinding on HP-UX and Linux

依然范特西╮ 提交于 2019-12-05 08:51:49
I need to get the stack information of my C application in certain points. I've read the documentation and searched the Net but still cannot figure out how I can do it. Can you point to a simple process explanation? Or, even better, to an example of stack unwinding. I need it for HP-UX (Itanium) and Linux. Check out linux/stacktrace.h Here is an API reference: http://www.cs.cmu.edu/afs/cs/Web/People/tekkotsu/dox/StackTrace_8h.html Should work on all Linux kernels Here is an alternative example in C from http://www.linuxjournal.com/article/6391 #include <stdio.h> #include <signal.h> #include

Find files modified within one hour in HP-UX

空扰寡人 提交于 2019-12-04 21:55:49
I'm searching through the manual page for find I can't see a way to run a command which will find all files modified within an hour. I can see only a way to do it for days. Rakshith Guess this should do find / -type f -mmin -60 This will be listing files starting from root and modified since the past 60 mins. the best you can do in HP-UX using the find command is to look for everything that was modified in the last 24 hours. The HP-UX find command only checks modified time in 24-hour increments. This is done by: find / -type f -mtime 1 This will list all of the filed recursively starting in

Debug core file with no symbols

大憨熊 提交于 2019-12-02 16:22:32
I have a C application we have deployed to a customers site. It was compiled and runs on HP-UX. The user has reported a crash and we have obtained a core dump. So far, I've been unable to duplicate the crash in house. As you would suspect, the core file/deployed executable is completely devoid of any sort of symbols. When I load it up in gdb and do a bt, the best I get is this: (gdb) bt #0 0xc0199470 in ?? () I can do a 'strings core' on the file, but my understanding is that all I get there is all the strings in the executable, so it seems semi-impossible to track down anything there. I do

IBM-AIX System time

本秂侑毒 提交于 2019-12-02 15:52:42
问题 I heard that after JDK 1.3.1(HP-UX), JVM use its own time after first start. Is IBM the same? Does IBM use JVM internal time like HP or use OS time? Please help me thank you 来源: https://stackoverflow.com/questions/54319003/ibm-aix-system-time

IBM-AIX System time

﹥>﹥吖頭↗ 提交于 2019-12-02 10:15:33
I heard that after JDK 1.3.1(HP-UX), JVM use its own time after first start. Is IBM the same? Does IBM use JVM internal time like HP or use OS time? Please help me thank you 来源: https://stackoverflow.com/questions/54319003/ibm-aix-system-time

filename last modification date shell in script

僤鯓⒐⒋嵵緔 提交于 2019-11-30 18:01:56
I'm using bash to build a script where I will get a filename in a variable an then with this variable get the file unix last modification date. I need to get this modification date value and I can't use stat command. Do you know any way to get it with the common available *nix commands? Why you shouldn't use ls : Parsing ls is a bad idea . Not only is the behaviour of certain characters in filenames undefined and platform dependant, for your purposes, it'll mess with dates when they're six months in the past . In short, yes, it'll probably work for you in your limited testing. It will not be

How do I easily package libraries needed to analyze a core dump (i.e. packcore)

拥有回忆 提交于 2019-11-30 16:28:47
The version of GDB that is available on HPUX has a command called "packcore", which creates a tarball containing the core dump, the executable and all libraries. I've found this extremely useful when trying to debug core dumps on a different machine. Is there a similar command in the standard version of GDB that I might find on a Linux machine? I'm looking for an easy command that someone that isn't necessarily a developer can run when things go bad on a production machine. The core file includes the command from which it was generated. Ideally this will include the full path to the

How do I easily package libraries needed to analyze a core dump (i.e. packcore)

会有一股神秘感。 提交于 2019-11-30 16:12:43
问题 The version of GDB that is available on HPUX has a command called "packcore", which creates a tarball containing the core dump, the executable and all libraries. I've found this extremely useful when trying to debug core dumps on a different machine. Is there a similar command in the standard version of GDB that I might find on a Linux machine? I'm looking for an easy command that someone that isn't necessarily a developer can run when things go bad on a production machine. 回答1: The core file