This is the mail archive of the cygwin-apps mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

std::bad_alloc since 1.24 using pipe


version with this bug
(./astyle.exe is a backup before i downgrade it)
$ ./astyle.exe --version
Artistic Style Version 1.24

version without this bug
$ astyle.exe --version
Artistic Style Version 1.23

reproduced with:
$ cat a | ./astyle.exe
(.........)
terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc
Aborted (core dumped)

can't reproduce with:
$ ./astyle.exe < a
(.........)
terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc
Aborted (core dumped)

window xp, 32bit, cygwin

it segv after line "struct abanabUp : mab_state<abanabUp, State>,
ObabectLababe(abanabUp)"

tell me if the attachment is not attached correctly due to mailing list

Attachment: reproduce.c.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]