Problem with new SPA compilers under linux

Unanswered Question

Hi,

I've just downloaded new firmware and spc files to my phones. I'm running my provisioning under Linux (Debian etch). Old spc were working fine:

voip-srv:/var/www/config/src# ./spa962-6-1-3-spc-linux-i386.bin
  Sipura Profile Compiler -- SPA962 Revision 6.1.3

but new got "Segmentation fault"

the same situation with:

spa525g-sip-7-1-7-spc-linux-i386

spa942-6-1-5-a-spc-linux-i386.bin

spa962-6-1-5-a-spc-linux-i386.bin

spa941-5-1-8-spc-linux-i386

wip310-5-0-11-10301355-spc-linux-i386

Working fine:

spa8000-6-1-3-spc-linux-i386.bin

and other OLDER spc

Anyone can help me???

Best regrads

Piotr

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
icastrov Mon, 03/02/2009 - 09:27

Hi Piotr,

what are the options (commands) you are using with the SPC tool? In example, when you try to create a sample file with those "failing" SPC tools (

spc –-sample-profile plain.txt), do you get the "segmentation fault" message as well?

Thanks!

-nacho

Hi,

Thanks for quick reply. I've seg fault every time I'm trying to run (command line args doesn't matter):

voip-srv:/var/www/config/src# ./spa941-5-1-8-spc-linux-i386.bad --sample-profile 941-5-1-8.txt
Segmentation fault

voip-srv:/var/www/config/src# ./spa962-6-1-5-a-spc-linux-i386.bin.bad -h
Segmentation fault

voip-srv:/var/www/config/src# ./wip310-5-0-11-10301355-spc-linux-i386 -?
Segmentation fault

Best regards

Piotr

icastrov Tue, 03/03/2009 - 01:53

Hi Piotr,

it seems that those SPC tools got corrupted somewhere !

Would you please do an md5sum on each of them to compare to what they should be? On top of that, would you please tell me what's the Lunux kernel you are running? 2.4 or 2.6?

Thanks and regards!

-nacho

Hi,

Unfortunatelly md5sum for each file are correct (tha same as on the download page).

I'm using 2.6 kernel. The same situation under debian:

voip-srv:/var/www/config/src# cat /proc/version
Linux version 2.6.18-6-686 (Debian 2.6.18.dfsg.1-23) ([email protected]) (gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)) #1 SMP Mon Oct 13 16:13:09 UTC 2008

and Fedora 8

[[email protected]-bilbo tmp]$ cat /proc/version
Linux version 2.6.26.8-57.fc8 ([email protected]) (gcc version 4.1.2 20070925 (Red Hat 4.1.2-33)) #1 SMP Thu Dec 18 19:19:45 EST 2008

Any other ideas?

Best reagrds

Piotr

icastrov Thu, 03/05/2009 - 00:59

Hi Piotr,

can you please provide us with the md5sum of the spa941-5-1-8-spc-linux-i386 ?


We would also like to see the uname-a of the system on where you are running the tool.

Thanks and regards!

-nacho

Hi,

md5sum is:

73b96329e44ec4f1e99dcf1088e0d584  spa941-5-1-8-spc-linux-i386.bad

voip-srv:/var/www/config/src# ls -l spa941-5-1-8-spc-linux-i386.bad
-rwxrwxr-x 1 root root 1023504 2009-03-02 16:57 spa941-5-1-8-spc-linux-i386.bad

voip-srv:/var/www/config/src# uname -a
Linux voip-srv 2.6.18-6-686 #1 SMP Mon Oct 13 16:13:09 UTC 2008 i686 GNU/Linux

Best regards

Piotr

icastrov Fri, 03/06/2009 - 00:48

Piotr,

please find attached the remaining SPC tools you were asking for. On a side note, let me tell you that we are working on auditing the tools posted on cisco.com so we get them fixed.

Thanks!

-nacho

Patrick Born Mon, 03/09/2009 - 11:15

Hi Piotr,

I just wanted to provide you with a status update.

I'm working with Engineering to get you updated SPC tools for LINUX.

My hope was to have the tools available for you on Friday, but we ran in to some challenges.

I understand that this is urgent to your business and am treating the issue accordingly.

I appreciate your patience.

Regards,

Patrick

-----------

Patrick Born Tue, 03/17/2009 - 13:21

Hi Piotr,

I've attached a working version of spa942-6-1-5-a-spc-linux-i386 for you.

$ ./spa942-6-1-5-a-spc-linux-i386 -h
  Sipura Profile Compiler -- SPA942/SPA922 Revision 6.1.5(a)
  Copyright (c) 2006 Cisco-Linksys.  All rights reserved.

  usage 1: spc [opt_args] source_text_file target_binary_file

    --log file_name                 Log status messages to file

  spc profile syntax:  parName [ '!' | '?' ] [ "parValue" ] ';'
$

Regards,

Patrick

-----------

Patrick Born Fri, 03/27/2009 - 12:19

Hi Piotr,

We had a problem on the Community server with this thread. I sent you an email which I've included below:

********* start of email **********

From: Patrick 
Sent: Tuesday, March 24, 2009 8:12 AM

Subject: RE: [IP Phones] New message: "Problem with new SPA compilers under linux"

Hi Piotr,

Something appears to be wrong with the Community server. I am unable to access the "Problem with new SPA compilers under linux" thread so I decided to contact you directly.

The following Linux versions of the files were replaced on Cisco.com late last week:

SPA525G - 7.1.7 SIP

SPA941 5.1.8

SPA921 5.1.8

SPA901 5.1.11

SPA962 6.1.5a

SPA942 6.1.5a

SPA3102 5.1.10

PAP2T 5.1.6

SPA8000 6.1.3

The date on the server does not change because the posted file was overwritten.

Please download the versions you need and let me know if you experience any more difficulties.

I apologize for the inconvenience that we've put you through.

Regards,

Patrick

-------

********* end of email **********

Please let me know of any progress.

Regards,

Patrick

----------



Hi,

I've just downloaded all possible spc compliers (just to test it)  from cisco site and resulats are:

working:

spa2102-5-2-3-spc-linux-i386

spa8000-6-1-3-spc-linux-i386.bin

spa9000-6-1-5-spc-linux-i386.bin

spa901-5-1-5-spc-linux-i386

wrp400-2-00-05-spc-linux-i386.bin

NOT WORKING (core dump):

pap2t-5-1-6-LS-spc-linux-i386

spa3102-5-1-10-GW-spc-linux-i386

spa525g-sip-7-1-7-spc-linux-i386

spa941-5-1-8-spc-linux-i386

spa942-6-1-5-a-spc-linux-i386.bin

spa962-6-1-5-a-spc-linux-i386.bin

wip310-5-0-11-10301355-spc-linux-i386




So it looks that new (fixed) versions of compilers are not there.

Best regrads

Piotr

Patrick Born Wed, 04/01/2009 - 07:14

Hi Piotr,

Thanks for alerting us to this problem [again!].

We're working on resolving this expeditiously.

Apologies,

Patrick

----------

Patrick Born Wed, 04/01/2009 - 12:47

Hi Piotr,

I've been working with the team to troubleshoot this issue. It turns out that good versions of the SPC are being pushed to the server, yet bad versions are being served. In my case, the bad files are 1200B smaller than the working versions of the files.

The team is actively investigating the problem.

I will personally test every SPC file before updating you once the issue is resolved.

Regards,

Patrick

----------

Patrick Born Wed, 04/01/2009 - 13:22

Piotr,

I don't want to impact your business any more than we already have so I've attached the latest 7 spc files that you are missing.

I will let you know once the Cisco.com server is serving working spc files.

Regards,

Patrick

----------

$ zip spc.zip *386
  adding: pap2t-5-1-6-LS-spc-linux-i386 (deflated 76%)
  adding: spa3102-5-1-10-GW-spc-linux-i386 (deflated 76%)
  adding: spa525g-sip-7-1-7-spc-linux-i386 (deflated 76%)
  adding: spa941-5-1-8-spc-linux-i386 (deflated 76%)
  adding: spa942-6-1-5-a-spc-linux-i386 (deflated 76%)
  adding: spa962-6-1-5-a-spc-linux-i386 (deflated 76%)
  adding: wip310-5-0-11-10301355-spc-linux-i386 (deflated 76%)

$

Attachment: 
jmcguirl Sun, 03/14/2010 - 21:24

FYI... these files as of today, 3-14-2010, have NOT been updated on cisco's site.  Fortunately, after some Googling I found this link here to working linux SPC's.

For example...   http://www.cisco.com/en/US/products/ps10039/index.html is still serving the broken SPC.

I would say that someone should check all the zip files at http://www.cisco.com/en/US/products/ps10033/prod_models_home.html should be checked.

It's pretty sad that this hasn't ever been taken care of yet.

edgaredgar5 Mon, 06/22/2009 - 11:48

Hi everyone

I`ve problem with those scripts on FreeBSD platform...

When I try execute:

freebsd# ./spa3102-5-1-10-GW-spc-linux-i386

then I get:

ELF binary type "0" not known.
./spa3102-5-1-10-GW-spc-linux-i386: Exec format error. Binary file not executable.

what can I do to solve those problem?

Patrick Born Tue, 06/23/2009 - 06:21

Hi edgaredgar5,

The SPC tools are for SystemV-based flavors of *NIX.

If you don't have a systemV-based *NIX to use with the SPC utilities try the following to run the SPC utility in your BSD environment:

freebsd# brandelf -t Linux

Alternatively, as a work-around, consider using XML profiles. On a non-BSD system do the following:

spc --sample-xml

Use the textfile.xml as a template for the device's profile.

Regards,

Patrick

-----------

edgaredgar5 Tue, 06/23/2009 - 10:36

i put:

brandelf -t Linux spa3102-5-1-10-GW-spc-linux-i386

but nothing happend (without error of course)

Patrick Born Thu, 06/25/2009 - 10:56

I put together a FreeBSD system and tested this without any success, just like you reported.

You could try:

1. Installing Linux compatibility on your FreeBSD system

2. Using the available Windows SPC utilities

3. Using the available Linux [system-V] utilities, perhaps in a virtual machine such as VMWare or Sun's VirtualBox

Regards,

Patrick

----------

Actions

This Discussion