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

Crash on free() in AROS i386 #42

Closed
mattrust opened this issue Dec 31, 2019 · 9 comments
Closed

Crash on free() in AROS i386 #42

mattrust opened this issue Dec 31, 2019 · 9 comments

Comments

@mattrust
Copy link

Hi,

I'm trying to bring InstallerLG v40 into AROS core. It crashes in arg_done:

#4 0xd97ae6c4 in free (memory=0xd9fb06e7) at /home/mazze/projects/fullaros/aros-src/compiler/stdc/./free.c:62
#5 0xd9ff2e9e in arg_done ()
at /home/mazze/projects/fullaros/aros-linux-i386-dbg/bin/linux-i386/Ports/installerlg/alpha.40/sodero-InstallerLG-07832d6/src/args.c:286
#6 0xd9fdb018 in main (argc=0, argv=0xd9c500a0) at ../src/lexer.l:298

(gdb) p args
$25 = {0x0, 0x0, 0xd9fb06e7 "", 0x0, 0x0, 0x0, 0xda023e40 "System:Utilities", 0x0, 0x0, 0x0}
(gdb) p args[arg]
$26 = 0xd9fb06e7 ""

@sodero
Copy link
Owner

sodero commented Dec 31, 2019

Hi,

I'll try to reproduce this. The 'args' above look a bit strange. Did you start Installer as a tool from WB without a SCRIPT tooltype set?

@mattrust
Copy link
Author

I did just a double click on Utilities/Installer

@sodero
Copy link
Owner

sodero commented Dec 31, 2019 via email

@sodero
Copy link
Owner

sodero commented Jan 1, 2020

I couldn't reproduce the crash using the latest version, but I can clearly see that it doesn't work as it should when just double clicking on the tool like you did, when doing so it tries to interpret itself as an installer script :-(

I fixed this behaviour and hopefully this is the same problem that caused a crash on your side?

@mattrust
Copy link
Author

mattrust commented Jan 2, 2020

Still crashing.

(gdb) p args
$19 = {0x0, 0x0, 0xf544ae37 "\365= AVERAGE", 0x0, 0x0, 0x0, 0xf53d1660 "System:Utilities", 0x0, 0x0, 0x0}
(gdb) p args[arg]
$20 = 0xf544ae37 "\365= AVERAGE"

Here are the Tooltypes of the Installer Icon:

Bildschirmfoto von 2020-01-02 13-43-02

@mattrust mattrust closed this as completed Jan 2, 2020
@sodero
Copy link
Owner

sodero commented Jan 2, 2020

Ok, I think I found it.

Fixed in 3e677bd
and 46cafd4

@sodero sodero reopened this Jan 2, 2020
@sodero
Copy link
Owner

sodero commented Jan 2, 2020

What are you using to test BTW? Linux hosted i386? ABI_V1?

@mattrust
Copy link
Author

mattrust commented Jan 2, 2020

Yes. I've built it with --enable-debug=all

@sodero
Copy link
Owner

sodero commented Jan 2, 2020

Ok, good to know. My setup (Icaros desktop in a VM) doesn't crash as often as it should, obviously :)

@mattrust mattrust closed this as completed Jan 3, 2020
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

No branches or pull requests

2 participants