Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] netsnmp: bump to 5.7.1 LTS
@ 2011-12-06  9:43 Luca Ceresoli
  2011-12-06 10:43 ` Gustavo Zacarias
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Luca Ceresoli @ 2011-12-06  9:43 UTC (permalink / raw)
  To: buildroot

---
 package/netsnmp/netsnmp.mk |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/package/netsnmp/netsnmp.mk b/package/netsnmp/netsnmp.mk
index 5d789b9..959e39f 100644
--- a/package/netsnmp/netsnmp.mk
+++ b/package/netsnmp/netsnmp.mk
@@ -4,7 +4,7 @@
 #
 #############################################################
 
-NETSNMP_VERSION = 5.6.1.1
+NETSNMP_VERSION = 5.7.1
 NETSNMP_SITE = http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/net-snmp
 NETSNMP_SOURCE = net-snmp-$(NETSNMP_VERSION).tar.gz
 NETSNMP_INSTALL_STAGING = YES
-- 
1.7.5.4

^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [Buildroot] [PATCH] netsnmp: bump to 5.7.1 LTS
  2011-12-06  9:43 [Buildroot] [PATCH] netsnmp: bump to 5.7.1 LTS Luca Ceresoli
@ 2011-12-06 10:43 ` Gustavo Zacarias
  2011-12-06 10:58   ` Peter Korsgaard
  2011-12-06 11:11   ` Luca Ceresoli
  2011-12-06 10:48 ` Peter Korsgaard
  2011-12-06 16:50 ` [Buildroot] [PATCH v2] " Luca Ceresoli
  2 siblings, 2 replies; 13+ messages in thread
From: Gustavo Zacarias @ 2011-12-06 10:43 UTC (permalink / raw)
  To: buildroot

On 06.12.2011 06:43, Luca Ceresoli wrote:

> -NETSNMP_VERSION = 5.6.1.1
> +NETSNMP_VERSION = 5.7.1
>  NETSNMP_SITE =
> 
> http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/net-snmp
>  NETSNMP_SOURCE = net-snmp-$(NETSNMP_VERSION).tar.gz
>  NETSNMP_INSTALL_STAGING = YES

NAK.
The 5.7 series (up to 5.7.1) fails miserably with a segfault on 
powerpc.
Regards.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Buildroot] [PATCH] netsnmp: bump to 5.7.1 LTS
  2011-12-06  9:43 [Buildroot] [PATCH] netsnmp: bump to 5.7.1 LTS Luca Ceresoli
  2011-12-06 10:43 ` Gustavo Zacarias
@ 2011-12-06 10:48 ` Peter Korsgaard
  2011-12-06 16:50 ` [Buildroot] [PATCH v2] " Luca Ceresoli
  2 siblings, 0 replies; 13+ messages in thread
From: Peter Korsgaard @ 2011-12-06 10:48 UTC (permalink / raw)
  To: buildroot

>>>>> "Luca" == Luca Ceresoli <luca@lucaceresoli.net> writes:

 Luca> ---
 Luca>  package/netsnmp/netsnmp.mk |    2 +-
 Luca>  1 files changed, 1 insertions(+), 1 deletions(-)

Committed, thanks.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Buildroot] [PATCH] netsnmp: bump to 5.7.1 LTS
  2011-12-06 10:43 ` Gustavo Zacarias
@ 2011-12-06 10:58   ` Peter Korsgaard
  2011-12-06 11:11   ` Luca Ceresoli
  1 sibling, 0 replies; 13+ messages in thread
From: Peter Korsgaard @ 2011-12-06 10:58 UTC (permalink / raw)
  To: buildroot

>>>>> "Gustavo" == Gustavo Zacarias <gustavo@zacarias.com.ar> writes:

 Gustavo> On 06.12.2011 06:43, Luca Ceresoli wrote:
 >> -NETSNMP_VERSION = 5.6.1.1
 >> +NETSNMP_VERSION = 5.7.1
 >> NETSNMP_SITE =
 >> 
 >> http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/net-snmp
 >> NETSNMP_SOURCE = net-snmp-$(NETSNMP_VERSION).tar.gz
 >> NETSNMP_INSTALL_STAGING = YES

 Gustavo> NAK.
 Gustavo> The 5.7 series (up to 5.7.1) fails miserably with a segfault on
 Gustavo> powerpc.

Uhh, that's bad. Any idea what's causing it?

I already committed the bump. I'll revert again if we cannot fix it.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Buildroot] [PATCH] netsnmp: bump to 5.7.1 LTS
  2011-12-06 10:43 ` Gustavo Zacarias
  2011-12-06 10:58   ` Peter Korsgaard
@ 2011-12-06 11:11   ` Luca Ceresoli
  2011-12-06 11:15     ` Gustavo Zacarias
  2011-12-06 12:20     ` Gustavo Zacarias
  1 sibling, 2 replies; 13+ messages in thread
From: Luca Ceresoli @ 2011-12-06 11:11 UTC (permalink / raw)
  To: buildroot

Gustavo Zacarias wrote:
> On 06.12.2011 06:43, Luca Ceresoli wrote:
>
>> -NETSNMP_VERSION = 5.6.1.1
>> +NETSNMP_VERSION = 5.7.1
>> NETSNMP_SITE =
>>
>> http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/net-snmp
>> NETSNMP_SOURCE = net-snmp-$(NETSNMP_VERSION).tar.gz
>> NETSNMP_INSTALL_STAGING = YES
>
> NAK.
> The 5.7 series (up to 5.7.1) fails miserably with a segfault on powerpc.

Thanks for your information.

Did you report this to the net-snmp mailing list to get help and, 
hopefully, a fix?
It's disappointing that all buildroot users must stick to an old
version of a package because it's not working in some configurations.

Luca

--------------------------------------------------------------------------
Luca Ceresoli
Comelit R&D - Progettazione Software

COMELIT??
?
?
Phone???????
Fax??????????
Mail?????????luca.ceresoli at comelit.it
Web????????http://www.comelitgroup.com/
YouTube??http://www.youtube.com/comelitgroup
--------------------------------------------------------------------------
Buon Natale - Merry Christmas - Joyeux Noel - Feliz Navidad - Feliz Natal - Vrolijk Kerstfeest - Fr?hliche Weihnachten
Comelit informa che gli uffici saranno chiusi da sabato 24 dicembre 2011 a luned? 9 gennaio 2012
Comelit informs that the office will be closed from 24th December 2011 till 8th January 2012 included
Comelit vous informe que ses bureaux seront ferm?s du 24 D?cembre 2011 au 8 Janvier inclus
Prima di stampare pensa all'ambiente / Think about environment before printing
AVVISO DI CONFIDENZIALIT?
Questo messaggio ed i suoi eventuali allegati pu? contenere informazioni confidenziali, di propriet?, legalmente protette.? destinato all'utilizzo esclusivo del destinatario sopra indicato; privatezza e confidenzialit? non sono modificati da eventuali errori di trasmissione. Se il messaggio non ? a lei destinato, non deve utilizzarlo, diffonderlo, copiarlo con qualunque mezzo, o intraprendere azioni basandosi su di esso. Se ha ricevuto questo messaggio per errore, la preghiamo di volerlo distruggere (unitamente ad eventuali copie dello stesso) e di volerci cortesemente informare del fatto scrivendo al mittente.
CONFIDENTIALITY NOTICE
This message and its attachments (if any) may contain confidential, proprietary or legally privileged information and it is intended only for the use of the addressee named above. No confidentiality or privilege is waived or lost by any erroneous transmission. If you are not the intended recipient of this message you are hereby notified that you must not use, disseminate, copy it in any form or take any action in reliance on it. If you have received this message in error, please, delete it (and any copies of it) and kindly inform the sender.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Buildroot] [PATCH] netsnmp: bump to 5.7.1 LTS
  2011-12-06 11:11   ` Luca Ceresoli
@ 2011-12-06 11:15     ` Gustavo Zacarias
  2011-12-06 12:20     ` Gustavo Zacarias
  1 sibling, 0 replies; 13+ messages in thread
From: Gustavo Zacarias @ 2011-12-06 11:15 UTC (permalink / raw)
  To: buildroot

On 06.12.2011 08:11, Luca Ceresoli wrote:

>> NAK.
>> The 5.7 series (up to 5.7.1) fails miserably with a segfault on 
>> powerpc.
>
> Thanks for your information.
>
> Did you report this to the net-snmp mailing list to get help and,
> hopefully, a fix?
> It's disappointing that all buildroot users must stick to an old
> version of a package because it's not working in some configurations.
>
> Luca

Not yet, i need a meaningful trace rather than just pointing fingers.
I'll try to give it some time today but no promises, i'm pretty 
stretched lately.
Regards.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Buildroot] [PATCH] netsnmp: bump to 5.7.1 LTS
  2011-12-06 11:11   ` Luca Ceresoli
  2011-12-06 11:15     ` Gustavo Zacarias
@ 2011-12-06 12:20     ` Gustavo Zacarias
  2011-12-06 18:09       ` Peter Korsgaard
  1 sibling, 1 reply; 13+ messages in thread
From: Gustavo Zacarias @ 2011-12-06 12:20 UTC (permalink / raw)
  To: buildroot

On 06.12.2011 08:11, Luca Ceresoli wrote:

>> NAK.
>> The 5.7 series (up to 5.7.1) fails miserably with a segfault on 
>> powerpc.
>
> Thanks for your information.
>
> Did you report this to the net-snmp mailing list to get help and,
> hopefully, a fix?
> It's disappointing that all buildroot users must stick to an old
> version of a package because it's not working in some configurations.
>
> Luca

Digging up found that bad mojo with closedir() and uclibc was to blame.
It's already been reported and a patch available at 
http://sourceforge.net/tracker/?func=detail&aid=3436528&group_id=12694&atid=312694
Tested working so add up the patch, respin and we're good to go.
Regards.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Buildroot] [PATCH v2] netsnmp: bump to 5.7.1 LTS
  2011-12-06  9:43 [Buildroot] [PATCH] netsnmp: bump to 5.7.1 LTS Luca Ceresoli
  2011-12-06 10:43 ` Gustavo Zacarias
  2011-12-06 10:48 ` Peter Korsgaard
@ 2011-12-06 16:50 ` Luca Ceresoli
  2011-12-06 16:54   ` Gustavo Zacarias
  2011-12-06 19:01   ` Peter Korsgaard
  2 siblings, 2 replies; 13+ messages in thread
From: Luca Ceresoli @ 2011-12-06 16:50 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
---
Changed in v2:
 - added patch to fix crash on uClibc. Thanks Gustavo Zacarias for reporting,
   with request to test it as I do not have a target where I can reproduce the
   problem.

PS: Peter, I wonder if Gustavo should have a SoB line on this patch, since he
did a significant part of the work. If it is the case, is it something
that I should have done, or is this your role as a maintainer? Thanks.

 package/netsnmp/netsnmp-swinst-crash.patch |   17 +++++++++++++++++
 package/netsnmp/netsnmp.mk                 |    2 +-
 2 files changed, 18 insertions(+), 1 deletions(-)
 create mode 100644 package/netsnmp/netsnmp-swinst-crash.patch

diff --git a/package/netsnmp/netsnmp-swinst-crash.patch b/package/netsnmp/netsnmp-swinst-crash.patch
new file mode 100644
index 0000000..f7298a6
--- /dev/null
+++ b/package/netsnmp/netsnmp-swinst-crash.patch
@@ -0,0 +1,17 @@
+Fixes runtime error with uClibc (and possibly others).
+
+Original patch and bug description:
+http://sourceforge.net/tracker/?func=detail&aid=3436528&group_id=12694&atid=312694
+
+--- net-snmp-5.7.1/agent/mibgroup/host/data_access/swinst_pkginfo.c
++++ /home/fabled//net-snmp-5.7.1.patched/agent/mibgroup/host/data_access/swinst_pkginfo.c
+@@ -140,7 +140,8 @@
+         memcpy( entry->swDate, cp, date_len );
+         entry->swDate_len = date_len;
+     }
+-    closedir( d );
++    if (d != NULL)
++        closedir( d );
+ 
+     DEBUGMSGTL(("swinst:load:arch"," loaded %d entries\n",
+                 (int)CONTAINER_SIZE(container)));
diff --git a/package/netsnmp/netsnmp.mk b/package/netsnmp/netsnmp.mk
index 5d789b9..959e39f 100644
--- a/package/netsnmp/netsnmp.mk
+++ b/package/netsnmp/netsnmp.mk
@@ -4,7 +4,7 @@
 #
 #############################################################
 
-NETSNMP_VERSION = 5.6.1.1
+NETSNMP_VERSION = 5.7.1
 NETSNMP_SITE = http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/net-snmp
 NETSNMP_SOURCE = net-snmp-$(NETSNMP_VERSION).tar.gz
 NETSNMP_INSTALL_STAGING = YES
-- 
1.7.5.4

^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [Buildroot] [PATCH v2] netsnmp: bump to 5.7.1 LTS
  2011-12-06 16:50 ` [Buildroot] [PATCH v2] " Luca Ceresoli
@ 2011-12-06 16:54   ` Gustavo Zacarias
  2011-12-06 19:01   ` Peter Korsgaard
  1 sibling, 0 replies; 13+ messages in thread
From: Gustavo Zacarias @ 2011-12-06 16:54 UTC (permalink / raw)
  To: buildroot

On 06.12.2011 13:50, Luca Ceresoli wrote:

> Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>

> PS: Peter, I wonder if Gustavo should have a SoB line on this patch, 
> since he
> did a significant part of the work. If it is the case, is it 
> something
> that I should have done, or is this your role as a maintainer? 
> Thanks.

It's actually something i should do as above :)
Thanks!

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Buildroot] [PATCH] netsnmp: bump to 5.7.1 LTS
  2011-12-06 12:20     ` Gustavo Zacarias
@ 2011-12-06 18:09       ` Peter Korsgaard
  2011-12-06 18:18         ` Gustavo Zacarias
  0 siblings, 1 reply; 13+ messages in thread
From: Peter Korsgaard @ 2011-12-06 18:09 UTC (permalink / raw)
  To: buildroot

>>>>> "Gustavo" == Gustavo Zacarias <gustavo@zacarias.com.ar> writes:

Hi,

 Gustavo> Digging up found that bad mojo with closedir() and uclibc was
 Gustavo> to blame.  It's already been reported and a patch available at
 Gustavo> http://sourceforge.net/tracker/?func=detail&aid=3436528&group_id=12694&atid=312694
 Gustavo> Tested working so add up the patch, respin and we're good to
 Gustavo> go.  Regards.

Thanks, but I don't think that's the culprint as closedir() in uClibc
checks for NULL pointers (and have done so for 10 years).

int closedir(DIR * dir)
{
        int fd;

        if (!dir) {
                __set_errno(EBADF);
                return -1;
        }

        ..
}

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Buildroot] [PATCH] netsnmp: bump to 5.7.1 LTS
  2011-12-06 18:09       ` Peter Korsgaard
@ 2011-12-06 18:18         ` Gustavo Zacarias
  2011-12-06 19:00           ` Peter Korsgaard
  0 siblings, 1 reply; 13+ messages in thread
From: Gustavo Zacarias @ 2011-12-06 18:18 UTC (permalink / raw)
  To: buildroot

On 06.12.2011 15:09, Peter Korsgaard wrote:

> Thanks, but I don't think that's the culprint as closedir() in uClibc
> checks for NULL pointers (and have done so for 10 years).
>
> int closedir(DIR * dir)
> {
>         int fd;
>
>         if (!dir) {
>                 __set_errno(EBADF);
>                 return -1;
>         }
>
>         ..
> }

Simple testcase for my failure:
Run snmpd with a basic config and run a snmpwalk against localhost 
"snmpwalk -v 1 -c something localhost".
The snmpd daemon will die before the walk is done.
Rebuilding net-snmp with the patch fixes it.
And a gdb backtrace points at closedir() exactly.
Powerpc e300c3 target with latest gcc/binutils and uclibc 0.9.32.
Regards.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Buildroot] [PATCH] netsnmp: bump to 5.7.1 LTS
  2011-12-06 18:18         ` Gustavo Zacarias
@ 2011-12-06 19:00           ` Peter Korsgaard
  0 siblings, 0 replies; 13+ messages in thread
From: Peter Korsgaard @ 2011-12-06 19:00 UTC (permalink / raw)
  To: buildroot

>>>>> "Gustavo" == Gustavo Zacarias <gustavo@zacarias.com.ar> writes:

Hi,

 Gustavo> Simple testcase for my failure:
 Gustavo> Run snmpd with a basic config and run a snmpwalk against localhost
 Gustavo> "snmpwalk -v 1 -c something localhost".
 Gustavo> The snmpd daemon will die before the walk is done.
 Gustavo> Rebuilding net-snmp with the patch fixes it.
 Gustavo> And a gdb backtrace points at closedir() exactly.
 Gustavo> Powerpc e300c3 target with latest gcc/binutils and uclibc 0.9.32.

Sorry, I missed the fact that include/dirent.h annotates closedir() with
__attribute__((nonnull)), which probably makes GCC drop the redundant if
(!dir) check.

I don't see any specific requirement in susv3 that it should handle NULL
pointers, so the patch seems OK:

http://www.bcs.zp.ua/manuals/en/susv3/functions/closedir.html

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Buildroot] [PATCH v2] netsnmp: bump to 5.7.1 LTS
  2011-12-06 16:50 ` [Buildroot] [PATCH v2] " Luca Ceresoli
  2011-12-06 16:54   ` Gustavo Zacarias
@ 2011-12-06 19:01   ` Peter Korsgaard
  1 sibling, 0 replies; 13+ messages in thread
From: Peter Korsgaard @ 2011-12-06 19:01 UTC (permalink / raw)
  To: buildroot

>>>>> "Luca" == Luca Ceresoli <luca@lucaceresoli.net> writes:

 Luca> Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>

Committed, thanks.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2011-12-06 19:01 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-06  9:43 [Buildroot] [PATCH] netsnmp: bump to 5.7.1 LTS Luca Ceresoli
2011-12-06 10:43 ` Gustavo Zacarias
2011-12-06 10:58   ` Peter Korsgaard
2011-12-06 11:11   ` Luca Ceresoli
2011-12-06 11:15     ` Gustavo Zacarias
2011-12-06 12:20     ` Gustavo Zacarias
2011-12-06 18:09       ` Peter Korsgaard
2011-12-06 18:18         ` Gustavo Zacarias
2011-12-06 19:00           ` Peter Korsgaard
2011-12-06 10:48 ` Peter Korsgaard
2011-12-06 16:50 ` [Buildroot] [PATCH v2] " Luca Ceresoli
2011-12-06 16:54   ` Gustavo Zacarias
2011-12-06 19:01   ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox