bug-libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: --with-modules on HP-UX 10, 11 (fwd)


From: Gary V. Vaughan
Subject: Re: --with-modules on HP-UX 10, 11 (fwd)
Date: Sat, 22 Jun 2002 20:33:39 +0000
User-agent: Mutt/1.4i

Hi Bob, Albert,

Thanks for the backtrace... I see what is happening now.

  argz_insert(&argz, &len, NULL, entry) == argz_add(&argz, &len, entry)

I have a pet hate of API calls that perform several entirely different
tasks based on the contents of an argument.  If there are 2 tasks to be
performed, it is easier to write correct code when each has its own
call.

I had intended to force the programmer (me!) to use argz_add when
appending and argz_insert when inserting... glibc's argz implementation
doesn't enforce this, so I should have used these asserts at the
lt_argz* layer.  Otherwise glibc platforms never run the check, and
hence I didn't see the buglet in my code because I develop mostly on
GNU/Linux.

Patch to follow...

Cheers,
        Gary.

On Fri, Jun 21, 2002 at 09:17:01PM -0500, Bob Friesenhahn wrote:
> A backtrace showing where the assertion is tripped.
> 
> Bob
> Date: Fri, 21 Jun 2002 16:04:55 -0500
> From: Albert Chin-A-Young <address@hidden>
> To: Bob Friesenhahn <address@hidden>
> Subject: Re: --with-modules on HP-UX 10, 11
> 
> On Fri, Jun 21, 2002 at 02:50:02PM -0500, Bob Friesenhahn wrote:
> > It would help to use a debugger to see why the assertion is thrown,
> > but I have not done so.
> 
> #0  0xc0140310 in kill () from /usr/lib/libc.1
> #1  0xc00a980c in raise () from /usr/lib/libc.1
> #2  0xc008b2d8 in _sigaddset () from /usr/lib/libc.1
> #3  0xc0085dbc in abort () from /usr/lib/libc.1
> #4  0xc008b97c in _assert () from /usr/lib/libc.1
> #5  0xc0ae31f4 in rpl_argz_insert (pargz=0x7b041ee8, pargz_len=0x7b041eec,
>     before=0x0, entry=0x4000fe06 "/opt/TWWfsw/libttf20/lib") at ltdl.c:547
> #6  0xc0ae9428 in lt_argz_insert (pargz=0x7b041ee8, pargz_len=0x7b041eec,
>     before=0x0, entry=0x4000fe06 "/opt/TWWfsw/libttf20/lib") at ltdl.c:3041
> #7  0xc0aeb238 in lt_dlpath_insertdir (ppath=0x7afc3340, before=0x0,
>     dir=0x4000fe06 "/opt/TWWfsw/libttf20/lib") at ltdl.c:3498
> #8  0xc0aeb418 in lt_dladdsearchdir (
>     search_dir=0x4000fe06 "/opt/TWWfsw/libttf20/lib") at ltdl.c:3523
> #9  0xc0ae6bd4 in load_deplibs (handle=0x4000f9c0,
>     deplibs=0x4000fde8 " -L/opt/TWWfsw/libxml23/lib 
> -L/opt/TWWfsw/libttf20/lib") at ltdl.c:2357
> #10 0xc0ae85e4 in try_dlopen (phandle=0x7b041ce8,
>     filename=0x400e1d48 
> "/opt/TWWfsw/imagick/lib/ImageMagick/modules/coders/tiff.la") at ltdl.c:2822
> #11 0xc0ae8c78 in lt_dlopen (
>     filename=0x400e1d48 
> "/opt/TWWfsw/imagick/lib/ImageMagick/modules/coders/tiff.la") at ltdl.c:2921
> 
 
-- 
  ())_. Gary V. Vaughan     gary@(oranda.demon.co.uk|gnu.org)
  ( '/  Research Scientist  http://www.oranda.demon.co.uk       ,_())____
  / )=  GNU Hacker          http://www.gnu.org/software/libtool  \'      `&
`(_~)_  Tech' Author        http://sources.redhat.com/autobook   =`---d__/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]