| From: | Martijn van Oosterhout <kleptog(at)svana(dot)org> | 
|---|---|
| To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> | 
| Cc: | Merlin Moncure <mmoncure(at)gmail(dot)com>, PgSQL General <pgsql-general(at)postgresql(dot)org> | 
| Subject: | Re: backend crash following load command | 
| Date: | 2006-11-28 20:30:19 | 
| Message-ID: | 20061128203019.GJ29938@svana.org | 
| Views: | Whole Thread | Raw Message | Download mbox | Resend email | 
| Thread: | |
| Lists: | pgsql-general | 
On Tue, Nov 28, 2006 at 03:23:36PM -0500, Tom Lane wrote:
> I'd suggest putting together a simple stand-alone test case and filing
> a bug report against glibc.  You probably just need
> 
> 	dlopen(...);
> 	system("cp -f over the .so file");
> 	dlsym(...);
How can glibc do anything about this? dlopen() mmaps the .so into
memory and the cp overwrites what was mmaped, changing what is in
memory.
Ideally, the cp should fail with ETXTBSY, but that doesn't happen, so
what else can you do?
Have a nice day,
-- 
Martijn van Oosterhout   <kleptog(at)svana(dot)org>   http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2006-11-28 20:37:40 | Re: backend crash following load command | 
| Previous Message | Tom Lane | 2006-11-28 20:23:36 | Re: backend crash following load command |