Author Topic: segmentation fault on romlist generation  (Read 3239 times)

muzzol

  • Newbie
  • *
  • Posts: 2
    • View Profile
segmentation fault on romlist generation
« on: February 23, 2022, 12:36:00 PM »
hi,

I compiled 2.6.2 version and it launches without any problem.

but when I try to generate romlist it crashes:

Code: [Select]
attract -b mame
*** Generating Collection/Rom List: mame
 - Found 9 files.
 - Obtaining -listxml info...111%
Segmentation fault (core dumped)

I've tried with diferent mame versions with same result, and I also tried to generate list directly from mame without any issue:
Code: [Select]
mame -listxml > /tmp/list1.xml
so I believe is related to AM.

any hints?



Mark Norville

  • Sr. Member
  • ****
  • Posts: 233
    • View Profile
Re: segmentation fault on romlist generation
« Reply #1 on: February 23, 2022, 01:01:00 PM »
You can have more than one install of AM. I would download 2.61 from the main page and try that and see if you get the same problem.

I run 2.6.2 and I generate my MAME list from the actual program and not via CLI and works fine for me.

It could be a bug, it could be user error, but I have not done it this way, so only offering what I would try.

Regards

Mark
Well I am back a new PC I7 4790K, 780 TI, 16 Gigs, Windows 10. Hopefully will get delivered at weekend.

Computer Specs : I7 3770K, 780 TI, 16 Gigs, Win 10
HD Specs : 1 x 1 TB SSD + 4 x 8 TB = 33 TB (fullish)
First system : ZX81 (Yes I am an old fart)
PS Network : MarkNorvile
Xbox : Mark Norville

muzzol

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: segmentation fault on romlist generation
« Reply #2 on: February 24, 2022, 12:43:41 PM »
I run 2.6.2 and I generate my MAME list from the actual program and not via CLI and works fine for me.

I didn't mention it on my post, but it crashes either from cli or from menu with exactly the same message.

I'll try another version and see if it gets better.

EDIT: Can't compile 2.6.1, I get this error:

Code: [Select]
Compiling obj/swf.o...
In file included from /usr/include/c++/11/backward/hash_map:60,
                 from extlibs/gameswf/base/container.h:75,
                 from extlibs/gameswf/base/tu_file.h:18,
                 from src/swf.cpp:26:
/usr/include/c++/11/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated. [-Wcpp]
   32 | #warning \
      |  ^~~~~~~
In file included from extlibs/gameswf/gameswf/gameswf_action.h:13,
                 from extlibs/gameswf/gameswf/gameswf_impl.h:14,
                 from src/swf.cpp:28:
extlibs/gameswf/gameswf/gameswf_environment.h:150:17: error: ‘class array<gameswf::as_value> array<gameswf::as_value>::array’ is private within this context
  150 |                 array<as_value> m_local_register;       // function2 uses this
      |                 ^~~~~~~~~~~~~~~
extlibs/gameswf/gameswf/gameswf_environment.h:51:16: note: declared private here
   51 |         struct vm_stack : private array<as_value>
      |                ^~~~~~~~
extlibs/gameswf/gameswf/gameswf_environment.h:162:17: error: ‘class array<gameswf::as_value> array<gameswf::as_value>::array’ is private within this context
  162 |                 array<frame_slot>       m_local_frames;
      |                 ^~~~~~~~~~~~~~~~~
extlibs/gameswf/gameswf/gameswf_environment.h:51:16: note: declared private here
   51 |         struct vm_stack : private array<as_value>
      |                ^~~~~~~~
extlibs/gameswf/gameswf/gameswf_environment.h:179:78: error: ‘class array<gameswf::as_value> array<gameswf::as_value>::array’ is private within this context
  179 |                 as_value        get_variable(const tu_string& varname, const array<with_stack_entry>& with_stack) const;
      |                                                                              ^~~~~~~~~~~~~~~~~~~~~~~
extlibs/gameswf/gameswf/gameswf_environment.h:51:16: note: declared private here
   51 |         struct vm_stack : private array<as_value>
      |                ^~~~~~~~
extlibs/gameswf/gameswf/gameswf_environment.h:181:82: error: ‘class array<gameswf::as_value> array<gameswf::as_value>::array’ is private within this context
  181 |                 as_value        get_variable_raw(const tu_string& varname, const array<with_stack_entry>& with_stack) const;
      |                                                                                  ^~~~~~~~~~~~~~~~~~~~~~~
extlibs/gameswf/gameswf/gameswf_environment.h:51:16: note: declared private here
   51 |         struct vm_stack : private array<as_value>
      |                ^~~~~~~~
extlibs/gameswf/gameswf/gameswf_environment.h:183:88: error: ‘class array<gameswf::as_value> array<gameswf::as_value>::array’ is private within this context
  183 |                 void    set_variable(const tu_string& path, const as_value& val, const array<with_stack_entry>& with_stack);
      |                                                                                        ^~~~~~~~~~~~~~~~~~~~~~~
extlibs/gameswf/gameswf/gameswf_environment.h:51:16: note: declared private here
   51 |         struct vm_stack : private array<as_value>
      |                ^~~~~~~~
extlibs/gameswf/gameswf/gameswf_environment.h:185:92: error: ‘class array<gameswf::as_value> array<gameswf::as_value>::array’ is private within this context
  185 |                 void    set_variable_raw(const tu_string& path, const as_value& val, const array<with_stack_entry>& with_stack);
      |                                                                                            ^~~~~~~~~~~~~~~~~~~~~~~
extlibs/gameswf/gameswf/gameswf_environment.h:51:16: note: declared private here
   51 |         struct vm_stack : private array<as_value>
      |                ^~~~~~~~
make: *** [Makefile:460: obj/swf.o] Error 1




relevant info:
Code: [Select]
$ lsb_release -a
No LSB modules are available.
Distributor ID: Pop
Description: Pop!_OS 21.10
Release: 21.10
Codename: impish
« Last Edit: February 24, 2022, 12:48:44 PM by muzzol »

Mark Norville

  • Sr. Member
  • ****
  • Posts: 233
    • View Profile
Re: segmentation fault on romlist generation
« Reply #3 on: February 24, 2022, 12:58:18 PM »
Just download it from the main AM page not the git hub page.

http://attractmode.org/download.html

You don't have to compile anything, that is for nightly builds

Regards

Mark
Well I am back a new PC I7 4790K, 780 TI, 16 Gigs, Windows 10. Hopefully will get delivered at weekend.

Computer Specs : I7 3770K, 780 TI, 16 Gigs, Win 10
HD Specs : 1 x 1 TB SSD + 4 x 8 TB = 33 TB (fullish)
First system : ZX81 (Yes I am an old fart)
PS Network : MarkNorvile
Xbox : Mark Norville

kent79

  • Hero Member
  • *****
  • Posts: 856
    • View Profile
Re: segmentation fault on romlist generation
« Reply #4 on: February 24, 2022, 02:30:00 PM »
Just download it from the main AM page not the git hub page.

http://attractmode.org/download.html

You don't have to compile anything, that is for nightly builds

Regards

Mark

I have same as problem. I think it is a bug of version 2.6.2

JonahUK

  • Full Member
  • ***
  • Posts: 32
  • Don't like what I say or how I answer? IDGAF.
    • View Profile
    • My Channel
Re: segmentation fault on romlist generation
« Reply #5 on: February 24, 2022, 03:46:29 PM »
hi,

I compiled 2.6.2 version and it launches without any problem.

but when I try to generate romlist it crashes:

Code: [Select]
attract -b mame
*** Generating Collection/Rom List: mame
 - Found 9 files.
 - Obtaining -listxml info...111%
Segmentation fault (core dumped)

I've tried with diferent mame versions with same result, and I also tried to generate list directly from mame without any issue:
Code: [Select]
mame -listxml > /tmp/list1.xml
so I believe is related to AM.

any hints?

Create the listxml using the mame exe directly before you create a romlist from it.

Just tested it with 2.6.2 and MAME .241 without issue

If I use "attract -b mame" I get nothing but whether that's a linux/windows thing I don't know
« Last Edit: February 24, 2022, 04:01:55 PM by JonahUK »