Search Results

Search: Posts Made By: Lazzar
Forum: Programming 03-31-2008
28,548
Posted By Lazzar
maybe you could try with dbx instead gdb if it is...
maybe you could try with dbx instead gdb if it is installed.
in dbx you type 'where' instead of 'bt' to get the backtrace.

MySQL Bugs: #25344: Segmentation violation when try to run the perror...
Forum: Programming 03-30-2008
28,548
Posted By Lazzar
> gdb blockMesh core and then when gdb did load...
> gdb blockMesh core
and then when gdb did load the libraries and core file:
(gdb) bt

this should give you the backtrace when the programm died.
i'm not sure why it didn't work for you.
...
Forum: AIX 03-30-2008
15,486
Posted By Lazzar
Memoryleak detection using MALLOCDEBUG
This topic could also fit into the High Level Programming Forum, but i post it here since its very AIX specific.
I am trying to isolate and resolve memory leaks and -corruption using AIX's...
Forum: Programming 11-23-2007
3,051
Posted By Lazzar
Do you mean the SqlPlus shell? if so you can...
Do you mean the SqlPlus shell?
if so you can execute OS commands with '!'.

for example:
SQL> !ls -l
Forum: AIX 07-29-2005
3,914
Posted By Lazzar
ddd --dbx works :)
ddd --dbx works :)
Forum: AIX 07-28-2005
3,914
Posted By Lazzar
core file missing part of call stack
It seems that since the Upgrade from aix 4.3 to 5.2 the corefiles are somehow truncated.
I tried the debuggers ddd, xldb and gdb everytime the same results.

i found this on the IBM site:
IBM...
Forum: Programming 07-28-2005
11,695
Posted By Lazzar
I think the functions fwrite64 and fread64 do not...
I think the functions fwrite64 and fread64 do not exist.

So i think you should be able to use fread to read from a file, opened with fopen64. but i have not tried it.

----

man fopen:
fopen,...
Forum: Programming 07-19-2005
3,132
Posted By Lazzar
what kind of date? when using time_t, then...
what kind of date?
when using time_t, then difftime(time1, time2) will return the diff in seconds.

if you use struct tm then something like difftime(mktime(struct_tm1), mktime(struct_tm2)) would...
Forum: Programming 07-18-2005
13,195
Posted By Lazzar
maybe you are looking for this: display the...
maybe you are looking for this:
display the last 50 lines of something.txt

tail -n50 something.txt

there is also 'head' which displays the first few lines.
Forum: AIX 07-18-2005
4,264
Posted By Lazzar
overriding function calls without recompiling
i want to replace the *alloc and free function calls in an existing project with my own functions, to be able to log the adresses etc in a text file. (memoryleak debugging)
I think LD_PRELOAD is...
Forum: Programming 07-15-2005
3,508
Posted By Lazzar
Creating a shared Libary ?
hi,
I am trying to build a shared libary to overwrite some standard c functions (malloc etc), now i get the following error:

my system is AIX 5.2

gcc -fPIC -g -c -Wall mycfile.c
so far so...
Forum: AIX 10-12-2004
3,484
Posted By Lazzar
Programming Tools for Aix
I am searching for a good debugger and memory leak detection tools like for AIX.

Right now we use Xldb for debugging, which is not bad, but detecting memory leaks is a pain...

Unfortunately...
Forum: What is on Your Mind? 07-23-2004
3,174
Posted By Lazzar
unix.com Flash animation
I realy Love the look of the Flash animation at top of the forum, very sweet.

But it uses all of my cpu power :( even winamp starts getting little skips.

Then i have to scroll down and hide...
Forum: Programming 07-23-2004
4,149
Posted By Lazzar
Found the Bugger now. The Structure with the...
Found the Bugger now.
The Structure with the Pointer to MskTtimerData has changed.

old struct {
int;
MskTtimerData *
}

new struct {
int
int, <--- We tried to insert the Pointer...
Forum: Programming 07-22-2004
4,149
Posted By Lazzar
hey, thanks for the fast reply. It is a...
hey, thanks for the fast reply.

It is a kinda big already existing project wich we are updating.

And we just recently upgraded from 32 Aix4 to 64 bit Aix5 also.
So a (int) cast would prolly be...
Forum: Programming 07-22-2004
4,149
Posted By Lazzar
AIX- xlc and cc
when i compile with Xlc i sometimes get the following Error:
(S) Initialization between types "int" and "struct MskTtimerData*" is not allowed.

when i compile with cc with the same Flags, i only...
Forum: Programming 01-24-2004
1,852
Posted By Lazzar
but if you DEFINE a number already... use the...
but if you DEFINE a number already... use the define :)


if (some test condition){
return(EXIT_AFTER_FAILURE );
}
}
Forum: Programming 01-05-2004
3,418
Posted By Lazzar
ahh thanks, i didnt find much when i google'd...
ahh thanks,
i didnt find much when i google'd for it.

i dont care about symbols in libC anyway :)


thanks
Lazzar
Forum: Programming 01-05-2004
3,418
Posted By Lazzar
xldb WARNING: libC.a(ansi_32.o) has been stripped
Hi,
When i start the Debugger i get this warning:

xldb WARNING: /usr/lpp/xlC/lib/libC.a(ansi_32.o) has been stripped.

anyone know what this warning means?

xldb is a Debugger under AIX.
...
3,461
Posted By Lazzar
aww sorry i can't, it was just a wild guess :) ...
aww sorry i can't, it was just a wild guess :)


Lazzar
3,461
Posted By Lazzar
hi, wouldnt it be easier to write the LogFile...
hi,
wouldnt it be easier to write the LogFile from the website?

with html, php, javascript or whatever works?

Lazzar
2,988
Posted By Lazzar
ah i forgot, its happens with every other user...
ah i forgot,
its happens with every other user too, not only root.

i'll check RTM's suggestions later, didnt have time yet :(


Lazzar
2,988
Posted By Lazzar
broadcasting failed 'su root'
hi,
if i try to 'su' to root and enter the wrong password, the failed su is broadcastet to all user logged in on the machine.

Anyone know where i can stop that broadcast?

thanks
Lazzar
4,007
Posted By Lazzar
ok got sed working but i'd love to do it with...
ok got sed working but i'd love to do it with perl, cause i think it would be alot faster.

sed -f script *.c

script:
1s:^:#ifdef MALLOC_TRACE\
#include <logalloc.h>\
#endif\
:

it...
4,007
Posted By Lazzar
Almost!
well i have it almost but arrgh

1. with perl
perl -pi -e "s:^:#ifdef MALLOC_TRACE\n#include <logalloc.h>\n#endif\n:" *.test

almost right but it replaces every begining of a line(^) with my...
Showing results 1 to 25 of 32

 
All times are GMT -4. The time now is 06:44 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy