Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C Programming > KPIC makes programs running crash when libraries are recompiled

Reply
Thread Tools

KPIC makes programs running crash when libraries are recompiled

 
 
jortizclaver
Guest
Posts: n/a
 
      02-22-2006
[Solaris 2.8 && Sun Studio 10]

Hi,

I have a very simple library that wraps a Timer class and a test
program linked to it.

First of all, I compile the library and the main without the KPIC flag.
Then, I execute the program and, while it's running, I add some dummy
sentence to the library and recompile it. Nothing happens to the binary
running. It keep unaware of changes in the library and keeps running.

Now, I recompile everything with KPIC and try to make the same test.
Just when the library has been recompiled, execution is broken by a
core dump.

You'd say that it has an easy solution: do not use the KPIC but I'm
trying to develop my program in 64 bits and I'm forced - as far as I
know - to compile using the KPIC flag.

Any idea of how to make it work? I can't assume to stop all my programs
after any change in the library.

Thanks in advance
Jorge Ortiz

 
Reply With Quote
 
 
 
 
Richard G. Riley
Guest
Posts: n/a
 
      02-22-2006
On 2006-02-22, jortizclaver <> wrote:
> [Solaris 2.8 && Sun Studio 10]
>
> Hi,
>
> I have a very simple library that wraps a Timer class and a test
> program linked to it.
>
> First of all, I compile the library and the main without the KPIC flag.
> Then, I execute the program and, while it's running, I add some dummy
> sentence to the library and recompile it. Nothing happens to the binary
> running. It keep unaware of changes in the library and keeps running.
>
> Now, I recompile everything with KPIC and try to make the same test.
> Just when the library has been recompiled, execution is broken by a
> core dump.
>
> You'd say that it has an easy solution: do not use the KPIC but I'm
> trying to develop my program in 64 bits and I'm forced - as far as I
> know - to compile using the KPIC flag.
>
> Any idea of how to make it work? I can't assume to stop all my programs
> after any change in the library.
>
> Thanks in advance
> Jorge Ortiz
>


This might help:

http://forum.sun.com/thread.jspa?thr...ssageID=100609


--
Remove evomer to reply
 
Reply With Quote
 
 
 
 
Keith Thompson
Guest
Posts: n/a
 
      02-22-2006
"jortizclaver" <> writes:
> [Solaris 2.8 && Sun Studio 10]
>
> I have a very simple library that wraps a Timer class and a test
> program linked to it.


C doesn't have classes; are you using C++?

> First of all, I compile the library and the main without the KPIC flag.
> Then, I execute the program and, while it's running, I add some dummy
> sentence to the library and recompile it. Nothing happens to the binary
> running. It keep unaware of changes in the library and keeps running.

[snip]

It looks like your problem isn't really related to the C programming
language; rather, it's specific to Solaris. You'll get much better
help in comp.unix.solaris.

--
Keith Thompson (The_Other_Keith) kst- <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ClassLoader not loading recompiled classes Aryeh M. Friedman Java 17 10-04-2007 12:23 AM
KPIC makes programs running crash when libraries are recompiled jortizclaver C++ 0 02-22-2006 12:12 PM
Urgent: jsp is not recompiled by Tomcat Erwin Moller Java 6 05-27-2004 07:50 PM
Asp.net page not recompiled =?Utf-8?B?QXNwLm5ldCBwYWdlIG5vdCByZWNvbXBpbGVk?= ASP .Net 1 01-31-2004 02:43 AM
How to Verify Programs Running with Installed Programs? Edge Computer Information 9 01-19-2004 11:35 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57