theimpossibleastronaut/modemu2k

modemu2k segfaults when started

Closed this issue · 8 comments

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!

@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.

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.

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

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

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

I've started a new ticket #44