Error Starting Argus Daemon
Carter Bullard
carter at qosient.com
Mon Jan 28 17:15:45 EST 2013
Hey Neal,
Best I can do in interpreting the error, is that EPERM is being returned as the error
code for the call to pthread_create(), which is an error with permissions on setting the
scheduling priority of the ArgusOutput thread.
The scheduling assignments are done in argus.c, around line #605.
One way to get past this is to comment out all the scheduling logic, and see if
we get farther. To do this, apply this patch:
==== //depot/argus/argus/argus/argus.c#90 - /Volumes/Users/carter/argus/argus/argus/argus.c ====
605a606
> #ifdef ARGUS_NOT_DEFINED
635a637
> #endif
which says add an ' #ifdef ARGUS_NOT_DEFINED ' to line 605 in your ./argus/argus.c, which will be false,
and close the logic with an #endif on line 635. This basically comments out all references to pthread_attr_getschedpolicy()
and pthread_attr_setschedpolicy() calls in the code.
After you comment out this and compile, you should get farther?
Hope all is most excellent, and sorry for the inconvenience,
Carter
On Jan 28, 2013, at 6:45 AM, "Welland, Neal" <N.Welland at warwick.ac.uk> wrote:
> Good morning,
>
> Apologies for the delay. Had to get gdb installed!
>
> I eventually got argus to recompile with debugging symbols. I had to tweak bin/mkdep - it explicitly sets the PATH, but did not include the location of gcc on our installation!
>
> Anyway, here is the output from the gdb session:
>
> bash-3.2$ sudo /opt/csw/bin/gdb bin/argus
> Password:
> GNU gdb (GDB) 7.2
> Copyright (C) 2010 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law. Type "show copying"
> and "show warranty" for details.
> This GDB was configured as "i386-pc-solaris2.10".
> For bug reporting instructions, please see:
> <http://www.gnu.org/software/gdb/bugs/>...
> Reading symbols from /var/tmp/argus-3.0.4/bin/argus...done.
> (gdb) break ArgusShutDown
> Breakpoint 1 at 0x805a927: file argus.c, line 810.
> (gdb) run -X
> Starting program: /var/tmp/argus-3.0.4/bin/argus -X
> [Thread debugging using libthread_db enabled]
> [New Thread 1 (LWP 1)]
> [New LWP 2 ]
> [Switching to Thread 1 (LWP 1)]
>
> Breakpoint 1, ArgusShutDown (sig=1) at argus.c:810
> 810 ArgusShutDownFlag++;
> (gdb) where
> #0 ArgusShutDown (sig=1) at argus.c:810
> #1 0x08085256 in ArgusLog (priority=3, fmt=0x809f62c "ArgusInitOutput() pthread_create error %s\n") at argus_util.c:1952
> #2 0x08075419 in ArgusInitOutput (output=0x84c9a68) at ArgusOutput.c:381
> #3 0x0805a766 in main (argc=2, argv=0x8047d40) at argus.c:614
> (gdb)
>
> I hope this helps pin-point the problem.
>
> Regards, Neal.
>
> -----Original Message-----
> From: Carter Bullard [mailto:carter at qosient.com]
> Sent: 25 January 2013 15:57
> To: Welland, Neal
> Cc: argus-info at lists.andrew.cmu.edu
> Subject: Re: [ARGUS] Error Starting Argus Daemon
>
> * PGP - S/MIME Signed by an unverified key: 25/01/2013 at 15:57:22
>
> Hey Neal,
> That is much better, although still perplexing. The " ArgusShutDown(SIGHUP) ", is a problem, and figuring that out is the next step.
>
> Are you happy to run gdb() on this to see what is up? If so, compiling argus with the required debugging symbols, demands another recompile. In the argus distribution root directory:
>
> % make clobber
> % touch .devel
> % ./configure
> % make
>
> Then starting argus in gdb() and setting it up, involves:
>
> % sudo gdb bin/argus
> (gdb) break ArgusShutDown
> (gdb) run -X
> Starting program: /Volumes/Users/carter/argus/argus/bin/argus -X
>
> Breakpoint 1, ArgusShutDown (.....
> (gdb)
>
> When it breaks, I need to know where argus is, when it generates, the error, ..., so:
>
> (gdb) where
>
> If I can get the printout, that will help a great deal.
> Carter
>
> * Carter Bullard <carter at qosient.com>
> * Issuer: "VeriSign - Unverified
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4367 bytes
Desc: not available
URL: <https://pairlist1.pair.net/pipermail/argus/attachments/20130128/45cb71d5/attachment.bin>
More information about the argus
mailing list