[Bro-Dev] [JIRA] (BIT-1537) bro segfaults after compile in MacOS X 10.11 El Capitan

Robin Sommer (JIRA) jira at bro-tracker.atlassian.net
Fri Mar 4 08:37:00 PST 2016


    [ https://bro-tracker.atlassian.net/browse/BIT-1537?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=24607#comment-24607 ] 

Robin Sommer commented on BIT-1537:
-----------------------------------

Is it possible that broccoli needs some tweaking here to? After merging, I get lots of these:

{{{
../src/libbroccoli.so.5.1.0: undefined reference to `RAND_seed'
../src/libbroccoli.so.5.1.0: undefined reference to `RAND_pseudo_bytes'
../src/libbroccoli.so.5.1.0: undefined reference to `X509_STORE_CTX_get_error_depth'
../src/libbroccoli.so.5.1.0: undefined reference to `SSL_CTX_use_PrivateKey_file'
../src/libbroccoli.so.5.1.0: undefined reference to `SSL_CTX_set_cipher_list'
../src/libbroccoli.so.5.1.0: undefined reference to `CRYPTO_set_id_callback'
../src/libbroccoli.so.5.1.0: undefined reference to `SSL_CTX_free'
../src/libbroccoli.so.5.1.0: undefined reference to `SSL_load_error_strings'
../src/libbroccoli.so.5.1.0: undefined reference to `CRYPTO_set_dynlock_destroy_call
}}}

I pushed the cmake merge, without yet moving the submodules (so master won't pull it in yet). Can you try pulling those cmake updates into the all the submodules and see if it compiles fine for you then? 

> bro segfaults after compile in MacOS X 10.11 El Capitan
> -------------------------------------------------------
>
>                 Key: BIT-1537
>                 URL: https://bro-tracker.atlassian.net/browse/BIT-1537
>             Project: Bro Issue Tracker
>          Issue Type: Problem
>          Components: Bro
>    Affects Versions: 2.4
>            Reporter: Carlos Terrón
>            Assignee: Robin Sommer
>             Fix For: 2.5
>
>
> After compile with 
> {code}
> ./configure --prefix=/usr/local
> make
> make install
> {code}
> And try to execute bro with:
> {code}
> bro -i en4 local
> {code}
> bro segfaults with
> {code}
> Program received signal SIGSEGV, Segmentation fault.
> 0x00000001003045d2 in file_analysis::X509::ParseCertificate (
>     cert_val=<optimized out>, fid=<optimized out>)
>     at /Users/terron/tmp/bro-2.4.1/src/file_analysis/analyzer/x509/X509.cc:175
> 175				char *exponent = BN_bn2dec(pkey->pkey.rsa->e);
> (gdb) bt
> #0  0x00000001003045d2 in file_analysis::X509::ParseCertificate (
>     cert_val=<optimized out>, fid=<optimized out>)
>     at /Users/terron/tmp/bro-2.4.1/src/file_analysis/analyzer/x509/X509.cc:175
> #1  0x0000000100303e5d in file_analysis::X509::EndOfFile (this=0x105f8b710)
>     at /Users/terron/tmp/bro-2.4.1/src/file_analysis/analyzer/x509/X509.cc:56
> #2  0x000000010033f57a in file_analysis::File::EndOfFile (this=0x100961090)
>     at /Users/terron/tmp/bro-2.4.1/src/file_analysis/File.cc:522
> #3  0x000000010033bc6e in file_analysis::Manager::RemoveFile (
>     this=0x105f8b710, file_id=...)
>     at /Users/terron/tmp/bro-2.4.1/src/file_analysis/Manager.cc:395
> #4  0x00000001002d910a in binpac::TLSHandshake::Handshake_Conn::proc_certificate (this=0x105f8a220, is_orig=false, certificates=0x100961f90)
>     at /Users/terron/tmp/bro-2.4.1/build/src/analyzer/protocol/ssl/tls-handshake_pac.cc:180
> #5  0x00000001002d99d4 in binpac::TLSHandshake::Handshake_Conn::proc_v3_certificate (this=0x105f8b710, is_orig=16, cl=<optimized out>)
>     at /Users/terron/tmp/bro-2.4.1/build/src/analyzer/protocol/ssl/tls-handshake_pac.cc:323
> #6  0x00000001002dc430 in binpac::TLSHandshake::Certificate::Parse (
>     this=0x105f8a220, t_begin_of_data=<optimized out>, 
>     t_end_of_data=0x101022f2e "", t_context=0x10095e480)
>     at /Users/terron/tmp/bro-2.4.1/build/src/analyzer/protocol/ssl/tls-handshake_pac.cc:1977
> {code}



--
This message was sent by Atlassian JIRA
(v7.2.0-OD-03-010#72000)



More information about the bro-dev mailing list