From owner-freebsd-threads@FreeBSD.ORG Wed Jun 4 19:57:29 2003 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DE45837B401 for ; Wed, 4 Jun 2003 19:57:29 -0700 (PDT) Received: from lakemtao05.cox.net (lakemtao05.cox.net [68.1.17.116]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0697143FA3 for ; Wed, 4 Jun 2003 19:57:29 -0700 (PDT) (envelope-from mezz7@cox.net) Received: from sysinfo.mezzweb.com ([68.103.37.247]) by lakemtao05.cox.net ESMTP <20030605025728.RIRL28938.lakemtao05.cox.net@sysinfo.mezzweb.com>; Wed, 4 Jun 2003 22:57:28 -0400 Date: Wed, 04 Jun 2003 21:43:09 -0500 To: Julian Elischer Content-Type: text/plain; charset=utf-8; format=flowed References: From: Jeremy Messenger MIME-Version: 1.0 Message-ID: In-Reply-To: User-Agent: Opera7.11/Linux M2 build 406 cc: freebsd-threads@freebsd.org Subject: Re: libthr or libgthread (devel/glib20) bug? X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Jun 2003 02:57:30 -0000 On Wed, 4 Jun 2003 17:14:22 -0700 (PDT), Julian Elischer wrote: > You may have said so already, but what happens with libkse? What do you mean by I might have already said so? :-) Anyway, I forgot to input about libkse.. It doesn't crash with libkse, which it will if it's with libthr... ggv and gst-register work perfect with libkse. Cheers, Mezz > On Wed, 4 Jun 2003, Jeremy Messenger wrote: > >> Any apps that are depending on libgthread-2.0.so.200 always will crash >> if it's linking to libthr (using libmap.conf). My previous email about >> gst-register, it will not crash anymore if I set libgthread links to >> libc_r instead libthr. All ports that I have installed have been >> compiled with the debug (-g). Anyway, here's gdb info of ggv: >> >> =============================== >> % gdb ggv >> (gdb) r >> Starting program: /usr/X11R6/bin/ggv >> GThread-ERROR **: file gthread-posix.c: line 135 (): error 'Invalid >> argument' during 'pthread_getschedparam (pthread_self(), &policy, >> &sched)' >> aborting... >> Program received signal SIGABRT, Aborted. >> 0x28ab3313 in kill () at {standard input}:15 >> 15 {standard input}: No such file or directory. >> in {standard input} >> Current language: auto; currently asm >> (gdb) bt >> #0 0x28ab3313 in kill () at {standard input}:15 >> #1 0x28b1eecc in abort () at /usr/src/lib/libc/stdlib/abort.c:72 >> #2 0x288824fb in g_logv (log_domain=0x288571c1 "GThread", >> log_level=G_LOG_LEVEL_ERROR, format=0x0, args1=0x0) at gmessages.c:508 >> #3 0x288825c4 in g_log (log_domain=0x0, log_level=0, format=0x0) >> at gmessages.c:527 >> #4 0x2885542e in g_thread_impl_init () at gthread-posix.c:135 >> #5 0x28856692 in g_thread_init (init=0x0) at gthread-impl.c:330 >> #6 0x282b382b in bonobo_activation_pre_args_parse (program=0x0, >> mod_info=0x0) >> at gnome-init.c:117 >> #7 0x282af903 in gnome_program_preinit (program=0x8057af0, >> app_id=0x8057be4 "", app_version=0x0, argc=1, argv=0xbfbffbc4) >> at gnome-program.c:1322 >> #8 0x282b0698 in gnome_program_initv (type=134595648, app_id=0x0, >> app_version=0x0, module_info=0x8057af0, argc=1, argv=0xbfbffbc4, >> first_property_name=0x0, args=0x0) at gnome-program.c:1871 >> #9 0x282b031a in gnome_program_init ( >> app_id=0x2f6 , >> app_version=0x2f6 , >> module_info=0x2f6, argc=758, argv=0x2f6, >> first_property_name=0x2f6 ) >> at gnome-program.c:1679 >> #10 0x0804f9e7 in main (argc=1, argv=0xbfbffbc4) at main.c:202 >> ---Type to continue, or q to quit--- >> #11 0x0804c979 in _start () >> =============================== >> >> Here's gthread-posix.c source codes look like.. I don't know if it >> helps, but at least I am trying.. >> >> 100 to 146 line: >> =============================== >> #if defined (POSIX_MIN_PRIORITY) && defined (POSIX_MAX_PRIORITY) >> # define HAVE_PRIORITIES 1 >> static gint priority_normal_value; >> # ifdef __FreeBSD__ >> /* FreeBSD threads use different priority values from the POSIX_ >> * defines so we just set them here. The corresponding macros >> * PTHREAD_MIN_PRIORITY and PTHREAD_MAX_PRIORITY are implied to be >> * exported by the docs, but they aren't. >> */ >> # define PRIORITY_LOW_VALUE 0 >> # define PRIORITY_URGENT_VALUE 31 >> # else /* !__FreeBSD__ */ >> # define PRIORITY_LOW_VALUE POSIX_MIN_PRIORITY >> # define PRIORITY_URGENT_VALUE POSIX_MAX_PRIORITY >> # endif /* !__FreeBSD__ */ >> # define PRIORITY_NORMAL_VALUE priority_normal_value >> #endif /* POSIX_MIN_PRIORITY && POSIX_MAX_PRIORITY */ >> >> static gulong g_thread_min_stack_size = 0; >> #define G_MUTEX_SIZE (sizeof (pthread_mutex_t)) >> #if defined(_SC_THREAD_STACK_MIN) || defined (HAVE_PRIORITIES) >> #define HAVE_G_THREAD_IMPL_INIT >> static void >> g_thread_impl_init() >> { >> #ifdef _SC_THREAD_STACK_MIN >> g_thread_min_stack_size = MAX (sysconf (_SC_THREAD_STACK_MIN), 0); >> #endif /* _SC_THREAD_STACK_MIN */ >> #ifdef HAVE_PRIORITIES >> # ifdef G_THREADS_IMPL_POSIX >> { >> struct sched_param sched; >> int policy; >> posix_check_cmd (pthread_getschedparam (pthread_self(), &policy, &sched)) >> >> >> ; <-- 135 line >> priority_normal_value = sched.sched_priority; >> } >> # else /* G_THREADS_IMPL_DCE */ >> posix_check_cmd (priority_normal_value = >> pthread_getprio (*(pthread_t*)thread, >> g_thread_priority_map [priority])); >> # endif >> #endif /* HAVE_PRIORITIES */ >> } >> #endif /* _SC_THREAD_STACK_MIN || HAVE_PRIORITIES */ >> =============================== >> >> CVSup'ed around 30 - 45 minutes ago and buildworld/recompile kernel.. >> =============================== >> # uname -a >> FreeBSD personal.mezzweb.com 5.1-CURRENT FreeBSD 5.1-CURRENT #0: Wed Jun >> 4 18:30:22 CDT 2003 >> mezz@personal.mezzweb.com:/usr/obj/usr/src/sys/BSDRULZ i386 >> =============================== >> >> Cheers, >> Mezz >> >> >> -- bsdforums.org 's moderator, mezz. >> _______________________________________________ >> freebsd-threads@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-threads >> To unsubscribe, send any mail to "freebsd-threads- >> unsubscribe@freebsd.org" >> > > -- bsdforums.org 's moderator, mezz.