Threading breaking FreeBSD Foundation's Java?

2 views
Skip to first unread message

Walter Vaughan

unread,
Jun 9, 2007, 3:54:10 AM6/9/07
to freebsd...@freebsd.org
On dual quad core Intel box with 8 gig ram running AMD64.
FreeBSD-Current from about a week ago and a few hours ago
SCHED_ULE

We have been flexing our Java based ERP on the box and all of a sudden we have
problems when we had code to find printers.

I found some example code that we put into the project that we think was the
problem and when I compiled and ran an example class I got...

Fatal error 'Exceeded maximum lock level' at line 201 in file
/usr/src/lib/libpthread/thread/thr_rtld.c (errno = 0)

about a hundred times and then it

Segmentation fault (core dumped)

That line is...
KSE_LOCK_ACQUIRE(curkse, &l->lck);

Does this from UPDATING apply here?
The default threading library has been changed to libthr. If
you wish to have libpthread as your default, use option
DEFAULT_THREAD_LIB=libpthread for the buildworld.
I did that didn't see a change when I built world with
make -j16 buildworld DEFAULT_THREAD_LIB=libpthread

What about the kernel?

I dont see any help with http://www.freebsd.org/kse/index.html

Thanks
--
Walter
_______________________________________________
freebsd...@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-curre...@freebsd.org"

Daniel Eischen

unread,
Jun 9, 2007, 8:18:38 AM6/9/07
to Walter Vaughan, freebsd...@freebsd.org
On Sat, 9 Jun 2007, Walter Vaughan wrote:

> On dual quad core Intel box with 8 gig ram running AMD64.
> FreeBSD-Current from about a week ago and a few hours ago
> SCHED_ULE
>
> We have been flexing our Java based ERP on the box and all of a sudden we
> have problems when we had code to find printers.
>
> I found some example code that we put into the project that we think was the
> problem and when I compiled and ran an example class I got...
>
> Fatal error 'Exceeded maximum lock level' at line 201 in file
> /usr/src/lib/libpthread/thread/thr_rtld.c (errno = 0)
>
> about a hundred times and then it

You probably need to wait for compat6x support. You can't rely
on binaries produced for FreeBSD 6.x to run on -current without
compat6x. There have been too many changes and the libraries
have just been bumped, so you're running with libraries (before
the bump) that are not compatible with FreeBSD 6.x.

--
DE

Kris Kennaway

unread,
Jun 9, 2007, 3:16:36 PM6/9/07
to Daniel Eischen, Walter Vaughan, freebsd...@freebsd.org
On Sat, Jun 09, 2007 at 08:18:38AM -0400, Daniel Eischen wrote:
> On Sat, 9 Jun 2007, Walter Vaughan wrote:
>
> >On dual quad core Intel box with 8 gig ram running AMD64.
> >FreeBSD-Current from about a week ago and a few hours ago
> >SCHED_ULE
> >
> >We have been flexing our Java based ERP on the box and all of a sudden we
> >have problems when we had code to find printers.
> >
> >I found some example code that we put into the project that we think was
> >the problem and when I compiled and ran an example class I got...
> >
> >Fatal error 'Exceeded maximum lock level' at line 201 in file
> >/usr/src/lib/libpthread/thread/thr_rtld.c (errno = 0)
> >
> >about a hundred times and then it
>
> You probably need to wait for compat6x support

Or test the proposed port so that we have increased confidence that it
actually does what it is supposed to ;-)

Kris

Kris Kennaway

unread,
Jun 9, 2007, 3:54:29 PM6/9/07
to Walter Vaughan, freebsd...@freebsd.org, Kris Kennaway
On Sat, Jun 09, 2007 at 03:29:56PM -0400, Walter Vaughan wrote:
> Kris Kennaway wrote:
>
> >>You probably need to wait for compat6x support
> >
> >
> >Or test the proposed port so that we have increased confidence that it
> >actually does what it is supposed to ;-)
>
> Actually I would LOVE to do that but I couldn't turn up instructions.
>
> How do I get the compat6x port into my ports collection. I just did a cvsup
> and its not in misc.

It's been posted on ports@ for evaluation, check the archives.

Walter Vaughan

unread,
Jun 9, 2007, 3:29:56 PM6/9/07
to Kris Kennaway, freebsd...@freebsd.org
Kris Kennaway wrote:

>>You probably need to wait for compat6x support
>
>
> Or test the proposed port so that we have increased confidence that it
> actually does what it is supposed to ;-)

Actually I would LOVE to do that but I couldn't turn up instructions.

How do I get the compat6x port into my ports collection. I just did a cvsup and
its not in misc.

Thanks
--

Walter

Marcus Alves Grando

unread,
Jun 9, 2007, 5:39:56 PM6/9/07
to Walter Vaughan, freebsd...@freebsd.org
Walter Vaughan wrote:
> Kris Kennaway wrote:
>
>>> You probably need to wait for compat6x support
>>
>>
>> Or test the proposed port so that we have increased confidence that it
>> actually does what it is supposed to ;-)
>
> Actually I would LOVE to do that but I couldn't turn up instructions.
>
> How do I get the compat6x port into my ports collection. I just did a
> cvsup and its not in misc.

fetch http://people.freebsd.org/~mnag/compat6x.shar
sh compat6x.shar
cd compat6x
make all install clean

Enjoy

>
> Thanks
> --
>
> Walter
> _______________________________________________
> freebsd...@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-curre...@freebsd.org"


--
Marcus Alves Grando
marcus(at)sbh.eng.br | Personal
mnag(at)FreeBSD.org | FreeBSD.org

Scott Robbins

unread,
Jun 9, 2007, 5:05:54 PM6/9/07
to freebsd...@freebsd.org
On Sat, Jun 09, 2007 at 03:29:56PM -0400, Walter Vaughan wrote:
> Kris Kennaway wrote:
>
> >>You probably need to wait for compat6x support
> >Or test the proposed port so that we have increased confidence that it
> >actually does what it is supposed to ;-)
>
> Actually I would LOVE to do that but I couldn't turn up instructions.
>
> How do I get the compat6x port into my ports collection. I just did a cvsup and
> its not in misc.

Actually, it was posted a couple of days ago on CURRENT.


http://people.freebsd.org/~mnag/compat6x.shar

cd /usr/ports/misc
sh /path_to_compat6x.shar

cd compat6x
make install clean


--

Scott Robbins

PGP keyID EB3467D6
( 1B48 077D 66F6 9DB0 FDC2 A409 FA54 EB34 67D6 )
gpg --keyserver pgp.mit.edu --recv-keys EB3467D6


Cordelia: What's going on? Oh god, is the world ending? I have to
research a paper on Bosnia for tomorrow, but if the world's ending,
I'm not gonna bother.

Walter Vaughan

unread,
Jun 9, 2007, 8:13:18 PM6/9/07
to freebsd...@freebsd.org
Marcus Alves Grando wrote:

> Walter Vaughan wrote:
>
>> Kris Kennaway wrote:
>>
>>>> You probably need to wait for compat6x support
>>>
>>>
>>>
>>> Or test the proposed port so that we have increased confidence that it
>>> actually does what it is supposed to ;-)
>>
>>
>> Actually I would LOVE to do that but I couldn't turn up instructions.
>>
>> How do I get the compat6x port into my ports collection. I just did a
>> cvsup and its not in misc.
>
>
> fetch http://people.freebsd.org/~mnag/compat6x.shar
> sh compat6x.shar
> cd compat6x
> make all install clean
>
> Enjoy

Argh.

Did that first w/o the "all" option

Then I fetched latest current
put option COMPAT_FREEBSD6 in MYKERNEL
make -j24 buildworld
make -j24 buildkernel KERNCONF=MYKERNEL
make installkernel
make installworld

deinstalled & distcleaned compat6x
then did make all install clean

ran the java class and same error...
whining about libpthread
and a core dump

got upset stomach

Then decided to re-compile the java file and re-execute the .class file
*NO MORE libpthread errors!
still a core dump though...

PROGRESS!

Thanks everyone

Abdullah Ibn Hamad Al-Marri

unread,
Jun 10, 2007, 4:16:02 AM6/10/07
to Walter Vaughan, freebsd...@freebsd.org

Did you try libthr instead of libpthread? check the java archive about
libmap.com if you want to give it a try ;)


--
Regards,

-Abdullah Ibn Hamad Al-Marri
Arab Portal
http://www.WeArab.Net/

Reply all
Reply to author
Forward
0 new messages