Many core dumps in pthread_getspecific.

2015-06-03 Thread Andre Meiser
Hi,

I'm new to FreeBSD and I'm running into a lot of core dumps (mainly from Xorg, 
but also from vim, firefox, ...).
That's why I asked on freebsd-questions:

https://lists.freebsd.org/pipermail/freebsd-questions/2015-June/266138.html
https://lists.freebsd.org/pipermail/freebsd-questions/2015-June/266141.html

The last Xorg crash was less than 2h ago. :(

It looks like that there is a missing check for NULL in 
lib/libkse/thread/thr_spec.c (line 211-214):

pthread = _get_curthread();

/* Check if there is specific data: */
if (pthread->specific != NULL && (unsigned int)key < PTHREAD_KEYS_MAX) {

If pthread is NULL it will core dump. So maybe something like this would help:

if (pthread != NULL && pthread->specific != NULL && (unsigned int)key < 
PTHREAD_KEYS_MAX) {

But as I'm said, I'm new to FreeBSD I can't evaluate it yet.

I'm running the most recent stable:

% uname -a
FreeBSD andre 10.1-RELEASE-p10 FreeBSD 10.1-RELEASE-p10 #0: Wed May 13 06:54:13 
UTC 2015

I haven't compiled the base system so far. Maybe a more experienced FreeBSD guy 
can verify this and decide if it makes any sense or if I have to dig any deeper 
into it.

Sincerely yours Andre.
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


iwn & Intel Centrino Advanced-N 6235 support in 10-stable

2015-06-03 Thread Ronald Klop

Hello,

I see support for the 6235 in iwn(4) is committed in Dec 2013 to CURRENT  
[1]. I would like to buy one of these for a reasonable price [2]. Will it  
be easy to use the driver from current in 10-stable? Or is there a reason  
support for this hardware is not MFC'ed?


[1] http://svnweb.freebsd.org/base?view=revision&revision=259116
[2]  
http://www.routercenter.nl/product/294857/intel-centrino-advanced-n-6235.html


A recommendation for a better supported card is also welcome.

Regards,
Ronald.
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: iwn & Intel Centrino Advanced-N 6235 support in 10-stable

2015-06-03 Thread Oliver Pinter
On 6/3/15, Ronald Klop  wrote:
> Hello,
>
> I see support for the 6235 in iwn(4) is committed in Dec 2013 to CURRENT
> [1]. I would like to buy one of these for a reasonable price [2]. Will it
> be easy to use the driver from current in 10-stable? Or is there a reason
> support for this hardware is not MFC'ed?
>
> [1] http://svnweb.freebsd.org/base?view=revision&revision=259116
> [2]
> http://www.routercenter.nl/product/294857/intel-centrino-advanced-n-6235.html
>
> A recommendation for a better supported card is also welcome.

Hi Ronald!

Try this branch:
https://github.com/opntr/opBSD/tree/op/stable/10-stable-hbsd-iwn .

I backported most of the net80211 and iwn related changes till 2014.
August to 10-STABLE in this branch.

>
> Regards,
> Ronald.
> ___
> freebsd-stable@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-stable
> To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"
>
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Xeon D-1540 Support

2015-06-03 Thread Will Green
Hello,

Has anyone had any success running FreeBSD 10.1 on the Xeon D-1540 [1]? It’s a 
8-core Broadwell-based Xeon SOC with integrated GigE or 10GigE.

The combination of low power and support for 128 GB of ram makes them quite 
attractive. An example motherboard with this CPU is the Supermicro X10SDV-F 
[2]. The Supermicro web site shows support for FreeBSD 10.1 [3], but I haven’t 
seen any use in the wild. I will try to get hold of a board to test, but any 
advance information on support would be useful.

Thanks,
Will

[1] 
http://ark.intel.com/products/87039/Intel-Xeon-Processor-D-1540-12M-Cache-2_00-GHz
[2] http://www.supermicro.co.uk/products/motherboard/Xeon/D/X10SDV-F.cfm
[3] http://www.supermicro.co.uk/support/resources/OS/Broadwell-DE.cfm
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"

Re: Many core dumps in pthread_getspecific.

2015-06-03 Thread Konstantin Belousov
On Wed, Jun 03, 2015 at 01:34:04PM +0200, Andre Meiser wrote:
> Hi,
> 
> I'm new to FreeBSD and I'm running into a lot of core dumps (mainly from 
> Xorg, but also from vim, firefox, ...).
> That's why I asked on freebsd-questions:
> 
> https://lists.freebsd.org/pipermail/freebsd-questions/2015-June/266138.html
> https://lists.freebsd.org/pipermail/freebsd-questions/2015-June/266141.html
> 
> The last Xorg crash was less than 2h ago. :(
> 
> It looks like that there is a missing check for NULL in 
> lib/libkse/thread/thr_spec.c (line 211-214):
> 
> pthread = _get_curthread();
> 
> /* Check if there is specific data: */
> if (pthread->specific != NULL && (unsigned int)key < PTHREAD_KEYS_MAX) {
> 
> If pthread is NULL it will core dump. So maybe something like this would help:
> 
> if (pthread != NULL && pthread->specific != NULL && (unsigned int)key < 
> PTHREAD_KEYS_MAX) {
> 
> But as I'm said, I'm new to FreeBSD I can't evaluate it yet.
> 
> I'm running the most recent stable:
> 
> % uname -a
> FreeBSD andre 10.1-RELEASE-p10 FreeBSD 10.1-RELEASE-p10 #0: Wed May 13 
> 06:54:13 UTC 2015
> 
> I haven't compiled the base system so far. Maybe a more experienced FreeBSD 
> guy can verify this and decide if it makes any sense or if I have to dig any 
> deeper into it.

The backtraces you posted do not make any sense, e.g. pthread_mutex_unlock()
does not call pthread_getspecific(), and pthread_getspecific() is not
recursive.

You should recompile both libc and libthr with debugging symbols, like
cd /usr/src
(cd lib/libc && make all install DEBUG_FLAGS=-g)
(cd lib/libthr && make all install DEBUG_FLAGS=-g)
then obtain the core dump and post backtraces.
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: Xeon D-1540 Support

2015-06-03 Thread Eric Joyner
Yeah; you can run FreeBSD 10.1 and 11-CURRENT on an X10SDV-TLN4F. If you
use stable/10 or CURRENT, you can also use the 10gig ethernet ports out of
the box, too.

On Wed, Jun 3, 2015 at 6:31 AM Will Green  wrote:

> Hello,
>
> Has anyone had any success running FreeBSD 10.1 on the Xeon D-1540 [1]?
> It’s a 8-core Broadwell-based Xeon SOC with integrated GigE or 10GigE.
>
> The combination of low power and support for 128 GB of ram makes them
> quite attractive. An example motherboard with this CPU is the Supermicro
> X10SDV-F [2]. The Supermicro web site shows support for FreeBSD 10.1 [3],
> but I haven’t seen any use in the wild. I will try to get hold of a board
> to test, but any advance information on support would be useful.
>
> Thanks,
> Will
>
> [1]
> http://ark.intel.com/products/87039/Intel-Xeon-Processor-D-1540-12M-Cache-2_00-GHz
> [2] http://www.supermicro.co.uk/products/motherboard/Xeon/D/X10SDV-F.cfm
> [3] http://www.supermicro.co.uk/support/resources/OS/Broadwell-DE.cfm
> ___
> freebsd-stable@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-stable
> To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"

Jenkins build is back to normal : Build-UFS-image #1765

2015-06-03 Thread jenkins-admin
See 

___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"