Description of problem: trying to run astyle on the 3.10 kernel source files Version-Release number of selected component: astyle-2.02.1-4.fc19 Additional info: reporter: libreport-2.1.5 backtrace_rating: 4 cmdline: astyle -r *.c *.h crash_function: astyle::ASFormatter::nextLine executable: /usr/bin/astyle kernel: 3.9.9-302.fc19.x86_64 runlevel: N 5 uid: 1000 var_log_messages: Jul 30 09:25:50 mach1 abrt[2248]: Saved core dump of pid 2246 (/usr/bin/astyle) to /var/tmp/abrt/ccpp-2013-07-30-09:25:50-2246 (3788800 bytes) Truncated backtrace: Thread no. 1 (3 frames) #4 astyle::ASFormatter::nextLine at src/ASFormatter.cpp:719 #5 astyle::ASConsole::formatFile at src/astyle_main.cpp:501 #6 astyle::ASConsole::processFiles at src/astyle_main.cpp:1666
Created attachment 780673 [details] File: backtrace
Created attachment 780674 [details] File: cgroup
Created attachment 780675 [details] File: core_backtrace
Created attachment 780676 [details] File: dso_list
Created attachment 780677 [details] File: environ
Created attachment 780678 [details] File: limits
Created attachment 780679 [details] File: maps
Created attachment 780680 [details] File: open_fds
Created attachment 780681 [details] File: proc_pid_status
astyle-2.03-1.fc19 has been submitted as an update for Fedora 19. https://admin.fedoraproject.org/updates/astyle-2.03-1.fc19
Package astyle-2.03-1.fc19: * should fix your issue, * was pushed to the Fedora 19 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing astyle-2.03-1.fc19' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2013-13982/astyle-2.03-1.fc19 then log in and leave karma (feedback).
No, I have downloaded the recommended package. The result is: astyle: src/ASFormatter.cpp:5871: bool astyle::ASFormatter::isArrayOperator() const: Assertion `currentChar == '*' || currentChar == '&'' failed. I note also that when I run astyle -h two of the options now have the same short operator -xd. To eliminate any doubt I put delete-empty-lines in my ~/.astylerc. The result is as above, though.
I could reproduce this issue with the old version and it is gone with the update. The file seems to be: arch/xtensa/kernel/platform.c Could you maybe move your .astylerc out of the way and try it again? Maybe it is some flag that raises this issue again? Could you maybe point me to a file/flags that reproduce this issue for you?
Okay, I am doing this on the 3.10 kernel source. I execute astyle -r *.c *.h It makes it through quite a bit, but it does seem to die on drivers/scsi/ncr53c8xx.c I tried astyle "drivers/scsi/ncr53c8xx.c" and it does produce the error shown. Also tried the following: [root@mach2 linux-3.10]# mv ~/.astylerc ~/astyle.bak [root@mach2 linux-3.10]# astyle "drivers/scsi/ncr53c8xx.c" astyle: src/ASFormatter.cpp:5871: bool astyle::ASFormatter::isArrayOperator() const: Assertion `currentChar == '*' || currentChar == '&'' failed. Aborted [root@mach2 linux-3.10]# I've found 3 files that crash it: drivers/scsi/ncr53c8xx.c drivers/scsi/sym53c8xx_2/sym_fw1.h drivers/scsi/sym53c8xx_2/sym_fw2.h
astyle-2.03-1.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report.
I guess I forgot to mention that my Comment 14 was *after* I had downloaded astyle 2.03-1.fc19. So the problem is still there, specifically with the 3 files that I mentioned.
As the initial bug from comment #0 is gone, I'll leave this bug closed. Your next issue will be tracked in bug #996008. I can reproduce your issue with this file: https://raw.github.com/genesi/linux-legacy/master/drivers/scsi/ncr53c8xx.c