Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

modemu2k segfaults when started #39

Closed
aianson opened this issue Aug 8, 2022 · 8 comments · Fixed by #43
Closed

modemu2k segfaults when started #39

aianson opened this issue Aug 8, 2022 · 8 comments · Fixed by #43
Milestone

Comments

@aianson
Copy link
Collaborator

aianson commented Aug 8, 2022

I am getting a segfault when starting modemu2k.

alan@irondust:~$ modemu2k
modemu2k 0.0.6
Enter 'at%q' to quit

Segmentation fault
alan@irondust:~$

I built this modemu on slackware-15.0 using the SlackBuild from slackbuilds.org.

I am not sure why that happens or what my next steps should be. Help!

@andy5995
Copy link
Member

andy5995 commented Aug 9, 2022

@aianson Thanks for the report! I'll check it out very soon.

You could try building the git version from source. I think the only dependencies you'd need to install is meson and ninja (build instructions on the README).

Or use the appimage

If that works ok for you on Slackware, I'll probably do a release.

If you don't wanna do that, no worries. I'll see what's up with v0.0.6 on Slack.

@aianson
Copy link
Collaborator Author

aianson commented Aug 9, 2022 via email

@andy5995
Copy link
Member

andy5995 commented Aug 9, 2022

On Mon, 08 Aug 2022 17:55:01 -0700 Andy Alt @.***> wrote: @aianson Thanks for the report! I'll check it out very soon. You could try building the git version from source.
I tried this but I couldn't get either meson on ninja happy with my setup, I'm going to keep hacking away.. :)

What's the exact output?

I must be doing something wrong. Either I am not reading it right or I am misunderstanding something. Can you list the instructions for me? What directory to create and what commands to give. I am missing something, but I'm not sure what.

Might not be you. I might need to clarify the docs. We'll figure out for sure where the gap is after I see your output.

@andy5995
Copy link
Member

andy5995 commented Aug 9, 2022

I have a feeling this is related to #38 . The Slackbuild script adds some extra flags, such as -02. I did some testing in a Slackware 15.0 docker container and had the same results as you.

When I remove the 4 instances of '-02' from the Slackbuild script, the segfault doesn't happen.

With the current git version, the segfault doesn't happen regardless.

I'm going to do a release soon and submit the updated Slackbuild.

Thanks again @aianson

andy5995 added a commit that referenced this issue Aug 9, 2022
(closes #39)

Thanks to @aianson for the report
@andy5995 andy5995 added this to the 0.1.0 milestone Aug 9, 2022
@aianson
Copy link
Collaborator Author

aianson commented Aug 9, 2022 via email

andy5995 added a commit that referenced this issue Aug 9, 2022
(closes #39)

Thanks to @aianson for the report
@andy5995
Copy link
Member

For some reason it is not connecting for me. This is the result when I enter atd"localhost, "telnet localhost" works as expected. @.***:~/src/modemu2k/builddir$ ./modemu2k modemu2k 0.0.999 Enter 'at%q' to quit connect()-2: Connection refused NO CARRIER

I haven't been able to reproduce that yet on my Manjaro system or Slack docker container.

My results when using the container (I enabled telnetd from /etc/inetd.conf and started rc.inetd):

sh-5.1# telnet localhost
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Connection closed by foreign host.
modemu2k 0.1.0
Enter 'at%q' to quit

atd"localhost
CONNECT
To escape to command mode, use '+++'.
Use ATO to return to online mode.
recv(): Connection reset by peer

NO CARRIER
at%q
Goodbye.

@aianson Could you try the attached file?
modemu2k-0.1.0.tar.gz

  • Once downloaded, rename it to tar.xz instead of tar.gz (I had to rename it... GitHub doesn't support .xz attachments).
  • Extract it
  • copy the xz file into packaging/Slackbuilds/modemu2k
  • run ./modemu2k.Slackbuild

@aianson
Copy link
Collaborator Author

aianson commented Aug 10, 2022 via email

@andy5995
Copy link
Member

You're welcome, Alan. Thanks for testing the new package.

I've started a new ticket #44

andy5995 added a commit that referenced this issue Aug 18, 2022
* release v0.1.0 and fix Slackbuild (closes #39)

* update doxygen docs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants