EPrints Technical Mailing List Archive

See the EPrints wiki for instructions on how to join this mailing list and related information.

Message: #09972


< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First

Re: [EP-tech] Issue with bin/generate_apacheconf during EPrints 3.4.6 Installation on RHEL 9.5


Hi Francis,

malloc related issues are very low-level.  This is unlikely to be an issue with the EPrints software itself.  I would check that you have a enough free memory and disk space.  This may be an intermittent issue so a simple reboot may stop you getting this issue if you run generate_apacheconf again after a reboot.

The only significant change to generate_apacheconf in recent versions (specifically 3.4.6, I think) is creating an archive level cfg/static/javascript/auto/99_uploadmethod_file_max_size.js file and setting LimitRequestBody in the Apache config.  By default these will both be set to 1 GiB and restrict the maximum size of file that can be uploaded to your EPrints repository. These are set by the setting $c->{max_upload_filesize} in lib/cfg.d/upload.pl.  There is more information about a potential bug with this in 3.4.6 [1].  However, this potential bug could not cause a malloc error when running generate_apacheconf.

If neither a reboot nor increasing memory (and potentially disk space) fixes you issue let me know.  I cannot really think of anything else I could advise.  It is worth checking to see if any newly created Apache config files/directories have been created in EPRINTS_PATH/cfg/, as that may give a clue to when the error is occurring.

Regards

David Newman

[1] https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwiki.eprints.org%2Fw%2FEPrints_3.4.6%23Running_generate_apacheconf_with_an_archive_without_a_cfg.2Fstatic.2Fjavascript.2Fauto.2F_directory&data=05%7C02%7Ceprints-tech%40ecs.soton.ac.uk%7C379266aed30344e5f06d08dd4cfd7814%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638751373735372538%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=a8LJNHUnQ5sxSZBe4bsn%2FJzQ3sYvXiintnAE7wvlX2g%3D&reserved=0

On 14/02/2025 12:08, Francis Jayakanth wrote:
CAUTION: This e-mail originated outside the University of Southampton.

CAUTION: This e-mail originated outside the University of Southampton.

Dear List Members, I am installing EPrints version 3.4.6 on a RHEL 9.5
system, and I’ve encountered an issue when executing the script
bin/generate_apacheconf. Specifically, I am seeing the following error
message:
malloc(): unaligned fastbin chunk detected 2
Aborted (core dumped)

This error causes the script to abort and prevents me from proceeding
with the installation. I have tried several steps to resolve this,
including ensuring all dependencies are installed and attempting to
reinstall related packages (such as Apache and mod_perl), but the
issue persists.

Here are the details of my environment:

Operating System: RHEL 9.5
EPrints version: 3.4.6
Apache version: 2.4.62
Perl version: 5.32

Please provide guidance or troubleshooting steps to resolve this error.

Thank you in advance for your support.

Best regards, Francis

*** Options: https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwiki.eprints.org%2Fw%2FEprints-tech_Mailing_List&data=05%7C02%7Ceprints-tech%40ecs.soton.ac.uk%7C379266aed30344e5f06d08dd4cfd7814%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638751373735401497%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=TfqZek2LNUYM1LXd3zTrV24azueApiLXOKvkdM2tl2Y%3D&reserved=0
*** Archive: https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&data=05%7C02%7Ceprints-tech%40ecs.soton.ac.uk%7C379266aed30344e5f06d08dd4cfd7814%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638751373735414223%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=HsM6ErPYiv%2FCsDOrHTzdutEIGCa0AOaDkeio8NjhF0Q%3D&reserved=0
*** EPrints community wiki: https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwiki.eprints.org%2F&data=05%7C02%7Ceprints-tech%40ecs.soton.ac.uk%7C379266aed30344e5f06d08dd4cfd7814%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638751373735426251%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=L1HSwCY%2B3jlbjp%2FBtvLm%2FrsSuxA9A5JPq3SH%2B0LgGCM%3D&reserved=0