dannagle / PacketSender

Network utility for sending / receiving TCP, UDP, SSL, HTTP
https://packetsender.com
GNU General Public License v2.0
2.31k stars 361 forks source link

Aborted (core dumped) #38

Closed bartounet16 closed 7 years ago

bartounet16 commented 8 years ago

I have compiled packetSender on Ubuntu 15.10 The compilation work good but at the execution i have Aborted (core dumped) Could you help me

dannagle commented 8 years ago

Are you using the server edition of Ubuntu? Compiling has known issues with the server edition.

bartounet16 commented 8 years ago

Hello i have the same problem with

Ubuntu server root@www:~/PacketSender-4.9/src# ./PacketSender -h Aborted (core dumped) root@www:~/PacketSender-4.9/src

cat /etc/issue.net

Ubuntu 14.04.4 LTS

Unbuntu Desktop 15.10 root@bartounet-HVM-domU:/home/bartounet/PacketSender-Linux/PacketSender-4.9/src

cat /etc/issue.net

Ubuntu 15.10

dannagle commented 8 years ago

Packet Sender does not work on Ubuntu Server. There is a graphics library dependency that has not been fixed. Are you having problems on Ubuntu Desktop too?

bartounet16 commented 8 years ago

Yes but i want only use command line for a script and no gui it does not works with ssh

dannagle commented 8 years ago

OK, then it won't work for you in its current state. All the graphics dependencies would need to be removed. I don't have time for that right now. I'll leave this bug open.

RobertWojtowicz commented 8 years ago

I have the same problem with version 5.0 on the distribution Raspbian Jessie and Jessie Lite (Debian), you can ask for a solution to the problem ... it does not works with ssh :(

dannagle commented 8 years ago

@Jufo84 What particular ISO are you using? I can install in a VM.

This issue keeps popping up, so you are not that small a minority. I think a few ifdef macros and Makefile tweaks would fix this pretty easily.

RobertWojtowicz commented 8 years ago

The program only works in graphic mode on Raspbian Jessy and Jessy Lite (kernel 4.1, https://www.raspberrypi.org/downloads/raspbian/). With SSH connection, I get a message "aborted" The installation from script "BuildPacketSender.sh" is done properly :) A much needed feature in this program to run through SSH

RobertWojtowicz commented 8 years ago

Hi,

Any progress in resolving this bug?

Best Regards, Robert

dannagle commented 8 years ago

Yes, I have a fix. I haven't had time to put together a release, fix the Makefile, or anything like that. Packet Sender is a volunteer effort. Paid gigs get priority. I'm sure you understand.

If you are comfortable tweaking code, here is what to do. This is removing the GUI stuff that happens during console mode causing it to crash. QApplication is now QCoreApplication . Then stylesheet stuff is removed.

Edit lines 48 through 62 in main.cpp to look like this

    //QApplication a(argc, argv);
    QCoreApplication a(argc, argv);
    QStringList args = a.arguments();
    QDEBUGVAR(args);

    qRegisterMetaType<Packet>();
/*

    QFile file(":/packetsender.css");
    if(file.open(QFile::ReadOnly)) {
       QString StyleSheet = QLatin1String(file.readAll());
     //  qDebug() << "stylesheet: " << StyleSheet;
       a.setStyleSheet(StyleSheet);
    }
*/

Recompile, and it should work for you. I tested it on an Ubuntu Server that does not have a GUI.

dannagle commented 8 years ago

main.cpp has been updated in the master branch. It bypasses starting the GUI if using console params. Hopefully, that is the ultimate fix.

RobertWojtowicz commented 8 years ago

Yuupi :) It works! (Raspbian Jessie Lite,kernel 4.4) Thank you very, very much :)

dannagle commented 7 years ago

Release published. Closing this issue.