Code Monkey home page Code Monkey logo

Comments (16)

claucece avatar claucece commented on July 23, 2024 1

Ohh! @peterpalau ... can we pair tomorrow to check this?

from pidgin-otrng.

pedropalau avatar pedropalau commented on July 23, 2024 1

@claucece of course we can

from pidgin-otrng.

MauroVelasco avatar MauroVelasco commented on July 23, 2024 1

Hi @claucece, I think so, I was unable to replicate the issue after the modification.

from pidgin-otrng.

MauroVelasco avatar MauroVelasco commented on July 23, 2024 1

Hi @claucece, it's uploaded

from pidgin-otrng.

pedropalau avatar pedropalau commented on July 23, 2024

I realize that this happens mainly when you are using the prekey-server-docker-compose, maybe because of the issues with the permissions or something else.

I recently used some accounts from the jabber.otr.im server and this does not happen.

from pidgin-otrng.

pedropalau avatar pedropalau commented on July 23, 2024

This is one of error that appears when Alice request private conversation with Bob:

pidgin: client.c:826: otrng_client_get_client_profile: Assertion `client->client_profile != NULL' failed.
Aborted (core dumped)

from pidgin-otrng.

MauroVelasco avatar MauroVelasco commented on July 23, 2024

Hi @claucece, I notice this line: conv->conn as the culprit ;), looks like conn contains an invalid memory address. This is invoked in (libotr-ng/client.c):

expiration_time = get_session_expiry_time_from(conv->conn);

I added a validation in order to avoid this behavior:

`if( conv!=NULL && conv->conn!=NULL ){

    expiration_time = get_session_expiry_time_from(conv->conn);

    if (conv->conn->keys->last_generated < now - expiration_time) {

      otrng_client_expire_session(conv);

    }

}`

Although conv->conn is still producing the segmentation fault.

from pidgin-otrng.

claucece avatar claucece commented on July 23, 2024

Thanks @MauroVelasco !

What I did to fix it is:

  for (el = client->conversations; el; el = el->next) {
    if (!conv) {
      return;
    }
      conv = el->data;
    expiration_time = get_session_expiry_time_from(conv->conn);
    if (conv->conn->keys->last_generated < now - expiration_time) {
      otrng_client_expire_session(conv);
    }
  }

from pidgin-otrng.

MauroVelasco avatar MauroVelasco commented on July 23, 2024

Hi @claucece , this, Did you uploaded, to test it?

from pidgin-otrng.

MauroVelasco avatar MauroVelasco commented on July 23, 2024

Hi @claucece, I did the modification in client.c and testing.

from pidgin-otrng.

claucece avatar claucece commented on July 23, 2024

@MauroVelasco No, I did not upload hahaha.. Did you test it? Did it work?

from pidgin-otrng.

MauroVelasco avatar MauroVelasco commented on July 23, 2024

Hi @claucece, yes I did the change as suggested, don't have the issue until now, let you know if the issue comes again.

from pidgin-otrng.

claucece avatar claucece commented on July 23, 2024

woo!!! awesome! @MauroVelasco .. should we close it?

from pidgin-otrng.

claucece avatar claucece commented on July 23, 2024

Awesome! Closing it! <3

from pidgin-otrng.

claucece avatar claucece commented on July 23, 2024

I did not realized that the change is not pushed ahhaha.. want to push @MauroVelasco ?

from pidgin-otrng.

MauroVelasco avatar MauroVelasco commented on July 23, 2024

hi @claucece, yeah, sure I'll in minutes

from pidgin-otrng.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.