Segmentation fault while running the server

5 views
Skip to first unread message

Davide

unread,
Feb 22, 2010, 5:53:56 PM2/22/10
to QWaveClient
Hi all!
I just downloaded and compiled the qwave client and server. I'm pretty
new to all this and was just trying to figure out how things works but
the server keeps crashing...
I run the server without config file, as from what i understood from
the readme, its a way to run with default options and no federation. I
have no certificate file and no idea on what is for or how to get one,
so maybe that could be a problem.
When i run the client, it connetcs and actually the server shows that
a message was received, but as soon as i create a wave, the second
message is received by the server and there comes the segmentation
fault.
Any idea?
thanks in advance
Davide

Torben Weis

unread,
Feb 22, 2010, 5:55:47 PM2/22/10
to qwave...@googlegroups.com
Hi,

on the command line do the following:

gdb ,/waveserver
run
bt

Please send the gdb output. This will help detecting the source of the problem.

Greetings
Torben


2010/2/22 Davide <francesco.dav...@gmail.com>



--
---------------------------
Prof. Torben Weis
Universitaet Duisburg-Essen
torbe...@gmail.com

Davide Carnovale

unread,
Feb 22, 2010, 7:08:24 PM2/22/10
to qwave...@googlegroups.com
The problem seems to be related to the missing certificates... here's gdb output

Program received signal SIGSEGV, Segmentation fault.
0xb7e39a21 in RSA_size () from /usr/lib/libcrypto.so.0.9.8
(gdb) bt
#0  0xb7e39a21 in RSA_size () from /usr/lib/libcrypto.so.0.9.8
#1  0x0806544d in LocalServerCertificate::sign(QByteArray const&) const ()
#2  0x08068e9e in SignedWaveletDelta::SignedWaveletDelta(protocol::ProtocolWaveletDelta const&) ()
#3  0x08085a26 in ClientSubmitRequestActor::execute() ()
#4  0x08069b38 in Actor::run() ()
#5  0xb7b4e295 in QObject::event(QEvent*) () from /usr/lib/qt4/libQtCore.so.4
#6  0xb7b3d94c in QCoreApplicationPrivate::notify_helper(QObject*, QEvent*) ()
   from /usr/lib/qt4/libQtCore.so.4
#7  0xb7b3e01c in QCoreApplication::notify(QObject*, QEvent*) ()
   from /usr/lib/qt4/libQtCore.so.4
#8  0xb7b3e3f5 in QCoreApplication::notifyInternal(QObject*, QEvent*) ()
   from /usr/lib/qt4/libQtCore.so.4
#9  0xb7b3f243 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/qt4/libQtCore.so.4
#10 0xb7b3f3e2 in QCoreApplication::sendPostedEvents(QObject*, int) ()
   from /usr/lib/qt4/libQtCore.so.4
#11 0xb7b67e3e in ?? () from /usr/lib/qt4/libQtCore.so.4
#12 0xb793bc9e in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#13 0xb793ef11 in ?? () from /usr/lib/libglib-2.0.so.0
#14 0x080de090 in ?? ()
#15 0x00000000 in ?? ()


and here's the "normal" server output
Got message of len 85
Got message number 1
Got message strlen 30
Got message: waveserver.ProtocolOpenRequest
Got message with payload size 52
msg<< participant_id: "francesco.davide.carnovale@localhost"
wave_id: "!indexwave"
wavelet_id_prefix: ""

Got message of len 311
Got message number 2
Got message strlen 32
Got message: waveserver.ProtocolSubmitRequest
Got message with payload size 275
EXECUTE SubmitRequestActor
msg<< wavelet_name: "wave://localhost/w+1074604601/conv+root"
delta {
  hashed_version {
    version: 0
    history_hash: "wave://localhost/w+1074604601/conv+root"
  }
  author: "francesco.davide.carnovale@localhost"
  operation {
    add_participant: "francesco.davide.carnovale@localhost"
  }
  operation {
    mutate_document {
      document_id: "b+b1"
      document_operation {
        component {
          element_start {
            type: "body"
          }
        }
        component {
          element_start {
            type: "line"
          }
        }
        component {
          element_end: true
        }
        component {
          element_end: true
        }
      }
    }
  }
  operation {
    mutate_document {
      document_id: "conversation"
      document_operation {
        component {
          element_start {
            type: "conversation"
          }
        }
        component {
          element_start {
            type: "blip"
            attribute {
              key: "id"
              value: "b+b1"
            }
          }
        }
        component {
          element_end: true
        }
        component {
          element_end: true
        }
      }
    }
  }
}


2010/2/22 Torben Weis <torbe...@gmail.com>

Davide

unread,
Mar 2, 2010, 8:49:10 AM3/2/10
to QWaveClient
any news on this?

On Feb 23, 1:08 am, Davide Carnovale

> 2010/2/22 Torben Weis <torben.w...@gmail.com>


>
> > Hi,
>
> > on the command line do the following:
>
> > gdb ,/waveserver
> > run
> > bt
>
> > Please send the gdb output. This will help detecting the source of the
> > problem.
>
> > Greetings
> > Torben
>

> > 2010/2/22 Davide <francesco.davide.carnov...@gmail.com>


>
> > Hi all!
> >> I just downloaded and compiled the qwave client and server. I'm pretty
> >> new to all this and was just trying to figure out how things works but
> >> the server keeps crashing...
> >> I run the server without config file, as from what i understood from
> >> the readme, its a way to run with default options and no federation. I
> >> have no certificate file and no idea on what is for or how to get one,
> >> so maybe that could be a problem.
> >> When i run the client, it connetcs and actually the server shows that
> >> a message was received, but as soon as i create a wave, the second
> >> message is received by the server and there comes the segmentation
> >> fault.
> >> Any idea?
> >> thanks in advance
> >> Davide
>
> > --
> > ---------------------------
> > Prof. Torben Weis
> > Universitaet Duisburg-Essen

> > torben.w...@gmail.com

Torben Weis

unread,
Mar 2, 2010, 9:02:25 AM3/2/10
to qwave...@googlegroups.com
Hi,

throughout the weekend the wave server got a major upgrade. As a result you need a certificate, otherwise the server cannot sign its deltas. However, you can create a self-signed certificate locally using the prodecure in http://code.google.com/p/wave-protocol/wiki/Certificates

Greetings
Torben

2010/3/2 Davide <francesco.dav...@gmail.com>

Davide Carnovale

unread,
Mar 2, 2010, 10:53:17 AM3/2/10
to qwave...@googlegroups.com
Thanks for the directions, i'll dig into certificates then =)

2010/3/2 Torben Weis <torbe...@gmail.com>
Reply all
Reply to author
Forward
0 new messages