Segmentation fault with -out=report #152

Closed
opened 2026-01-29 16:36:29 +00:00 by claunia · 3 comments
Owner

Originally created by @lelegard on GitHub (May 27, 2016).

Originally assigned to: @canihavesomecoffee on GitHub.

Hello,

I use ccextractor -out=report on various files. The report is generated but the execution always terminates with a segmentation fault.

I use a 64-bit Windows 10 machine. I tried with exactly the same result the following three builds:

  • Downloaded Windows binaries for v0.80 (VS2013)
  • Rebuilt from v0.80 sources using Msys2 64-bit, statically linked
  • Rebuilt from v0.80 sources using mingw32 on Msys2 64-bit, statically linked

Examples:

$ ./ccextractorwin -out=report atsc_field1.mpg
File: atsc_field1.mpg
Stream Mode: Transport Stream
Program Count: 1
Program Numbers: 1
PID: 33, Program: 1, MPEG-2 video
PID: 34, Program: 1, MPEG-1 audio
//////// Program #1: ////////
DVB Subtitles: No
Teletext: No
ATSC Closed Caption: Yes
EIA-608: Yes
XDS: No
CC1: Yes
CC2: No
CC3: No
CC4: No
CEA-708: No
Width: 720
Height: 480
Aspect Ratio: 02 - 4:3
Frame Rate: 04 - 29.97

MPEG-4 Timed Text: No
Segmentation fault
$
$ ./ccextractorwin -out=report cea608_field1.mpg
File: cea608_field1.mpg
Stream Mode: Transport Stream
Program Count: 1
Program Numbers: 1
PID: 33, Program: 1, MPEG-2 video
PID: 34, Program: 1, MPEG-1 audio
//////// Program #1: ////////
DVB Subtitles: No
Teletext: No
ATSC Closed Caption: Yes
EIA-608: Yes
XDS: No
CC1: Yes
CC2: No
CC3: No
CC4: No
CEA-708: No
Width: 720
Height: 480
Aspect Ratio: 02 - 4:3
Frame Rate: 04 - 29.97

MPEG-4 Timed Text: No
Segmentation fault
$

Cheers
Thierry

Originally created by @lelegard on GitHub (May 27, 2016). Originally assigned to: @canihavesomecoffee on GitHub. Hello, I use ccextractor -out=report on various files. The report is generated but the execution always terminates with a segmentation fault. I use a 64-bit Windows 10 machine. I tried with exactly the same result the following three builds: - Downloaded Windows binaries for v0.80 (VS2013) - Rebuilt from v0.80 sources using Msys2 64-bit, statically linked - Rebuilt from v0.80 sources using mingw32 on Msys2 64-bit, statically linked Examples: `$ ./ccextractorwin -out=report atsc_field1.mpg` `File: atsc_field1.mpg` `Stream Mode: Transport Stream` `Program Count: 1` `Program Numbers: 1` `PID: 33, Program: 1, MPEG-2 video` `PID: 34, Program: 1, MPEG-1 audio` `//////// Program #1: ////////` `DVB Subtitles: No` `Teletext: No` `ATSC Closed Caption: Yes` `EIA-608: Yes` `XDS: No` `CC1: Yes` `CC2: No` `CC3: No` `CC4: No` `CEA-708: No` `Width: 720` `Height: 480` `Aspect Ratio: 02 - 4:3` `Frame Rate: 04 - 29.97` ` ` `MPEG-4 Timed Text: No` `Segmentation fault` `$` `$ ./ccextractorwin -out=report cea608_field1.mpg` `File: cea608_field1.mpg` `Stream Mode: Transport Stream` `Program Count: 1` `Program Numbers: 1` `PID: 33, Program: 1, MPEG-2 video` `PID: 34, Program: 1, MPEG-1 audio` `//////// Program #1: ////////` `DVB Subtitles: No` `Teletext: No` `ATSC Closed Caption: Yes` `EIA-608: Yes` `XDS: No` `CC1: Yes` `CC2: No` `CC3: No` `CC4: No` `CEA-708: No` `Width: 720` `Height: 480` `Aspect Ratio: 02 - 4:3` `Frame Rate: 04 - 29.97` ` ` `MPEG-4 Timed Text: No` `Segmentation fault` `$` Cheers Thierry
Author
Owner

@canihavesomecoffee commented on GitHub (May 28, 2016):

Hey,

just to be sure, is this a Windows or Linux issue (or both)?

@canihavesomecoffee commented on GitHub (May 28, 2016): Hey, just to be sure, is this a Windows or Linux issue (or both)?
Author
Owner

@lelegard commented on GitHub (May 28, 2016):

Both Linux and Windows.

To be clear, the 3 tests I reported were on Windows with 3 different compilers. I just tried on Fedora 23 with version 0.80 and 0.81 (today's clone of github repo) with the same result.

I attached a gdb report in file segfault.txt. In fact, this is only a final debug trace that crashed the application. Probably easy to fix.

Cheers
Thierry

@lelegard commented on GitHub (May 28, 2016): Both Linux and Windows. To be clear, the 3 tests I reported were on Windows with 3 different compilers. I just tried on Fedora 23 with version 0.80 and 0.81 (today's clone of github repo) with the same result. I attached a gdb report in file [segfault.txt](https://github.com/CCExtractor/ccextractor/files/287640/segfault.txt). In fact, this is only a final debug trace that crashed the application. Probably easy to fix. Cheers Thierry
Author
Owner

@lelegard commented on GitHub (May 30, 2016):

I removed the faulty debug trace, recompiled and successfully run on Windows and Linux.

For the record, I attached a small patch ccextractor.0.80.outreport-segfault.patch.zip

This patch is just here to indicate where the error occurs. It removes the debug trace but you may probably want to properly fix it instead.

@lelegard commented on GitHub (May 30, 2016): I removed the faulty debug trace, recompiled and successfully run on Windows and Linux. For the record, I attached a small patch [ccextractor.0.80.outreport-segfault.patch.zip](https://github.com/CCExtractor/ccextractor/files/289815/ccextractor.0.80.outreport-segfault.patch.zip) This patch is just here to indicate where the error occurs. It removes the debug trace but you may probably want to properly fix it instead.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ccextractor#152