[fpc-pascal] "assertion failed" testing merges into fixes branch

Jonas Maebe jonas.maebe at elis.ugent.be
Mon Apr 14 17:17:31 CEST 2008


On 14 Apr 2008, at 16:34, Seth Grover wrote:
> This morning I saw that r10664 merged revisions
> 10495-10497,10551,10554,10556-10559,10663 into the 2.2 fixes branch. I
> pulled down the changes, recompiled fpc, and ran the tests which were
> uploaded here: http://bugs.freepascal.org/view.php?id=9089 (here's the
> direct link to the file:
> http://bugs.freepascal.org/file_download.php?file_id=6363&type=bug).
>
> It looks like the INIT section is being called, but I also get an  
> error:
>
> $ ./ptest
> INIT
> Test
> 0
> Inconsistency detected by ld.so: dl-fini.c: 195: _dl_fini: Assertion
> `ns != 0 || i == nloaded' failed!

In your source tree, check tests/webtbs/tw9089*.pp (compile tw9089[a- 
d] and then run "LD_LIBRARY_PATH=. ./tw9089c" and "LD_LIBRARY_PATH=. ./ 
tw9089d"). That's the test case I distilled from your test programs  
and which works fine for me. I've googled a bit and found a very long  
thread about the above assertion at http://lists.debian.org/debian-glibc/2004/01/msg00189.html

The conclusion of that thread appears to be that (in that case) it's  
caused by linking both to a static and to a dynamic version of libc,  
causing all sorts of trouble.

> My setup:
> Free Pascal Compiler version 2.2.1 [2008/04/14] for i386
> Ubuntu Linux 2.6.22-14-generic #1 SMP Sun Oct 14 23:05:12 GMT 2007
> i686 GNU/Linux

I tested on Linux 2.6.23.15-137.fc8 #1 SMP Sun Feb 10 17:48:34 EST  
2008 i686 i686 i386 GNU/Linux


Jonas



More information about the fpc-pascal mailing list