Description of problem: modulecmd aborts with segmentation fault if run directly without parameters. I know that this is not the intended usage, but it still shouldn't segfault. In this case, the code is calling strcmp on a NULL pointer. Version-Release number of selected component (if applicable): environment-modules-3.2.6-7.fc11.x86_64 How reproducible: Always Steps to Reproduce: 1. run /usr/bin/modulecmd without parameters Actual results: $ gdb /usr/bin/modulecmd GNU gdb (GDB) Fedora (6.8.50.20090302-38.fc11) ... (gdb) run Starting program: /usr/bin/modulecmd init.c(294):ERROR:11: Usage is '/usr/bin/modulecmd shellname' Program received signal SIGSEGV, Segmentation fault. 0x0000000000411c7e in OutputExit () at utility.c:3007 3007 if( !strcmp( shell_derelict, "csh")) { (gdb) bt #0 0x0000000000411c7e in OutputExit () at utility.c:3007 #1 0x0000000000414cb6 in main (argc=1, argv=0x7fffffffe298, environ=<value optimized out>) at main.c:358 (gdb) disp shell_derelict 1: shell_derelict = 0x0 Expected results: It should just exit with an error message without segfaulting.
This appears to be fixed in 3.2.7. I'll try to get an update out soon.
environment-modules-3.2.7-1.fc11 has been submitted as an update for Fedora 11. http://admin.fedoraproject.org/updates/environment-modules-3.2.7-1.fc11
environment-modules-3.2.7b-2.fc11 has been submitted as an update for Fedora 11. http://admin.fedoraproject.org/updates/environment-modules-3.2.7b-2.fc11
environment-modules-3.2.7b-2.fc11 has been pushed to the Fedora 11 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update environment-modules'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F11/FEDORA-2009-9947
environment-modules-3.2.7b-2.fc11 has been pushed to the Fedora 11 stable repository. If problems still persist, please make note of it in this bug report.