Home > Archive > Unix Programming > August 2005 > Question for dbx.
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| Franklin Li 2005-08-26, 3:56 am |
| Hi All,
My program core dumped.
Below is dbx information:
****************************************
********************************
.....
detected a multithreaded program
t@141 (l@141) terminated by signal BUS (object specific hardware error)
0xfe7d4150: strcat+0x0020: ldsb [%o1], %o0
current thread: t@141
=>[1] strcat(0x0, 0x41dadfeb, 0xf54fb2f9, 0xf54fb2f8, 0x0, 0x2400), at
0xfe7d4150
....
****************************************
********************************
It's caused by strcat?
And if it is, why strcat caused core dump?
The first address of strcat is 0x0. So the reason is passing null to strcat?
Thanks.
Franklin
| |
|
| > It's caused by strcat?
>
> And if it is, why strcat caused core dump?
Are you using the required headers for strcat() library function.Without
a function prototype in scope,strcat will assume that it returns an int,
which might make it to crash.
~
| |
| Bjorn Reese 2005-08-26, 7:57 am |
| Franklin Li wrote:
> It's caused by strcat?
Yes.
> And if it is, why strcat caused core dump?
>
> The first address of strcat is 0x0. So the reason is passing null to strcat?
Yes.
--
mail1dotstofanetdotdk
|
|
|
|
|